Commit | Line | Data |
---|---|---|
625022fd BA |
1 | import Vue from "vue"; |
2 | import App from "./App.vue"; | |
3 | import router from "./router"; | |
c66a829b | 4 | import { store } from "./store"; |
625022fd BA |
5 | |
6 | Vue.config.productionTip = false; | |
7 | ||
8 | new Vue({ | |
9 | router, | |
10 | render: function(h) { | |
11 | return h(App); | |
98db2082 | 12 | }, |
c66a829b BA |
13 | created: function() { |
14 | window.doClick = (elemId) => { document.getElementById(elemId).click() }; | |
63ca2b89 BA |
15 | document.addEventListener("keydown", (e) => { |
16 | if (e.code === "Escape") | |
17 | { | |
18 | let modalBoxes = document.querySelectorAll("[id^='modal']"); | |
19 | modalBoxes.forEach(m => { | |
5b852870 | 20 | if (m.checked && m.id != "modalWelcome") |
63ca2b89 BA |
21 | m.checked = false; |
22 | }); | |
23 | } | |
24 | }); | |
8418f0d7 | 25 | store.initialize(); |
c66a829b | 26 | }, |
625022fd | 27 | }).$mount("#app"); |