-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
23 lines (22 loc) · 972 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import RevealOnRadioButton from "./app/javascript/components/RevealOnRadioButton";
import { initAll } from "govuk-frontend";
import "govuk-frontend/dist/govuk/assets/images/favicon.ico"
import "govuk-frontend/dist/govuk/assets/images/favicon.svg"
import "govuk-frontend/dist/govuk/assets/images/govuk-icon-mask.svg"
import "govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png"
require('turbolinks').start();
import './stylesheet'
import Components from './app/javascript/components'
const EtGdsDesignSystem = {
Components: Components
};
EtGdsDesignSystem.initAll = () => {
console.log("EdGdsDesignSystem.initAll was called");
const onPageLoad = () => {
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
initAll();
Components.RevealOnRadioButton.init();
}
document.addEventListener("turbolinks:load", onPageLoad);
};
export { EtGdsDesignSystem, Components };