-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (23 loc) · 1.06 KB
/
index.js
File metadata and controls
28 lines (23 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import "./components/sw-main/sw-learn/element.mjs";
import "./components/sw-main/sw-practice/element.mjs";
import "./components/sw-main/sw-review/element.mjs";
import "./components/sw-main/sw-home/element.mjs";
import "./components/sw-footer/element.mjs";
import "./components/sw-progress/element.mjs";
import "./components/sw-music/element.mjs";
import "./components/sw-header/element.mjs";
import "./components/sw-main/element.mjs";
import { BACKGROUND, getGitHub } from "/global.mjs";
document.querySelector('sw-main').addEventListener("sw-main", async event => {
if (!window.TESTING) window.clearCache();
const github = await getGitHub();
await event.detail.component.render(github);
document.documentElement.style.backgroundImage = BACKGROUND;
document.body.style.display = 'flex';
await document.querySelector('sw-header').render(github);
await document.querySelector('sw-progress').render(github);
});
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ZGWZ1ZWQKX');