-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
149 lines (124 loc) · 4.96 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- TITLE -->
<title>Chess Defense</title>
<!-- VIEWPORT -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- MANIFEST -->
<link rel="manifest" href="manifest.json">
<!-- DESCRIPTION -->
<meta name="description" content="ChessDefense is a New Type of Game, a cross between Chess + Tower Defense!">
<!-- Redux assumes `process.env.NODE_ENV` exists in the ES module build. https://github.com/reactjs/redux/issues/2907 -->
<script async>
window.process = { env: { NODE_ENV: 'production' }, nav: {} };
console.log('process ',window.process);
</script>
<!-- Force Polyfills -->
<script
async
Set-Cookie: polyr=poly; SameSite=Lax>
// Force Polyfills
if (window.customElements) window.customElements.forcePolyfill = true;
ShadyDOM = { force: true };
ShadyCSS = { shimcssproperties: true};
</script>
<!-- Web Components -->
<script
async
src="node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"
Set-Cookie: second="second" SameSite="Lax"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-73943527-8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-73943527-8');
</script>
<!-- Service Worker -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator
.serviceWorker
.register('/sw.js')
.then(registration => { console.log(`Service Worker registered! Scope: ${registration.scope}`); })
.catch(error => { console.log(`Service Worker registration failed: ${error}`); });
});
}
</script>
<style>
body {
margin: 0px;
background-color: #303030;
}
.site {
height: 100vh;
width: 100vw;
display: grid;
grid-template-rows: 64px auto 64px;
}
main {
margin: auto;
}
</style>
</head>
<body>
<application-shell></application-shell>
<script
type="module"
src="./deploy/application-shell.js"></script>
<!-- Firebase -->
<script
src="https://www.gstatic.com/firebasejs/7.22.0/firebase-app.js"
Set-Cookie: __Secure-ID=8; SameSite=None; Secure; Domain=gstatic.com ></script>
<script
src="https://www.gstatic.com/firebasejs/7.22.0/firebase-auth.js"
Set-Cookie: __Secure-ID=9; SameSite=None; Secure; Domain=gstatic.com ></script>
<script
src="https://www.gstatic.com/firebasejs/7.22.0/firebase-firestore.js"
Set-Cookie: __Secure-ID=10; SameSite=None; Secure; Domain=gstatic.com ></script>
<script
src="https://www.gstatic.com/firebasejs/7.22.0/firebase-storage.js"
Set-Cookie: __Secure-ID=11; SameSite=None; Secure; Domain=gstatic.com ></script>
<script
src="https://www.gstatic.com/firebasejs/7.22.0/firebase-messaging.js"
Set-Cookie: __Secure-ID=12; SameSite=None; Secure; Domain=gstatic.com ></script>
<script
src="https://www.gstatic.com/firebasejs/7.22.0/firebase-analytics.js"
Set-Cookie: __Secure-ID=13; SameSite=None; Secure; Domain=gstatic.com ></script>
<script>
// Initialize Firebase
var admin = {
apiKey: "AIzaSyAWXOpxGc_GbTYckgNPpRhEWzOpeRxMAOg",
authDomain: "chess-defense.firebaseapp.com",
databaseURL: "https://chess-defense.firebaseio.com",
projectId: "chess-defense",
storageBucket: "chess-defense.appspot.com",
messagingSenderId: "1056334501744",
appId: "1:1056334501744:web:7d256ce8e20946d4e1a1b5"
};
const application = firebase.initializeApp(admin);
firebase
.firestore()
.settings({ cacheSizeBytes: firebase.firestore.CACHE_SIZE_UNLIMITED })
const firestore = firebase.firestore(application);
const usersCollection = firestore.collection('users');
const contractors = firestore.collection('contractors');
</script>
</body>
</html>
<!--
<script type="module" src="src/one-square.js" async></script>
<script type="module" src="src/four-square.js" async></script>
<script type="module" src="src/board-square.js" async></script>
<script type="module" src="src/chess-king.js" async></script>
<script type="module" src="src/chess-queen.js" async></script>
<script type="module" src="src/chess-rook.js" async></script>
<script type="module" src="src/chess-knight.js" async></script>
<script type="module" src="src/chess-bishop.js" async></script>
<script type="module" src="src/chess-pawn.js" async></script>
<script type="module" src="src/box-block.js" async></script>
-->