-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (64 loc) · 2.91 KB
/
index.html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<title>ProxifyJS</title>
</head>
<body>
<script rel="modulepreload" type="module">
import { ProxifyHook } from './JavaScript/Classes/Helper/ProxifyHook.js'
import { InitBasic } from './JavaScript/Classes/Controller/InitBasic.js'
// Docs
import TitleDocs from './Docs/TitleDocs.js'
import HowDocs from './Docs/HowDocs.js'
import WhyDocs from './Docs/WhyDocs.js'
import TrapsDocs from './Docs/TrapsDocs.js'
import ChainDocs from './Docs/Examples/ChainDocs.js'
import CssDocs from './Docs/Examples/CssDocs.js'
import DebugDocs from './Docs/Examples/DebugDocs.js'
import EventsDocs from './Docs/Examples/EventsDocs.js'
import HtmlDocs from './Docs/Examples/HtmlDocs.js'
import SubscribeDocs from './Docs/Examples/SubscribeDocs.js'
import LocalStorageDocs from './Docs/Examples/LocalStorageDocs.js'
import TryCatchDocs from './Docs/Examples/TryCatchDocs.js'
import TypesDocs from './Docs/Examples/TypesDocs.js'
import WebWorkersDocs from './Docs/Examples/WebWorkersDocs.js'
// Menu
import AnchorMenu from './Docs/AnchorMenu.js'
import Scroll from './Docs/Scroll.js'
class Index {
constructor() {
this.makeGlobal('__', new ProxifyHook(InitBasic).get())
const body = __(document.getElementsByTagName('body')[0])
.$setStyle('background: GhostWhite; font-family: "Open Sans", sans-serif;')
.$appendChildren([
new TitleDocs,
new HowDocs,
new WhyDocs,
new TrapsDocs,
new ChainDocs(this.makeGlobal),
new CssDocs(this.makeGlobal),
new DebugDocs(this.makeGlobal),
new EventsDocs(this.makeGlobal),
new HtmlDocs(this.makeGlobal),
new SubscribeDocs(this.makeGlobal),
new LocalStorageDocs(this.makeGlobal),
new TryCatchDocs(this.makeGlobal),
new TypesDocs(this.makeGlobal),
new WebWorkersDocs(this.makeGlobal)
])
// above renders out, so that AnchorMenu can grab body.h2 tags
body.insertBefore(new AnchorMenu(body), body.children[2])
new Scroll()
}
makeGlobal(name, obj) {
return window[name] = obj
}
}
new Index()
</script>
</body>
</html>