-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
201 lines (199 loc) · 7.17 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="preload" href="./build.js" as="script" crossorigin="anonymous">
<link rel="preload" href="./custom/build/custom.es6.js" as="script" crossorigin="anonymous">
<link rel="preload" href="./build/es6/node_modules/@lrnwebcomponents/haxcms-elements/lib/core/haxcms-site-builder.js"
as="script" crossorigin="anonymous">
<link rel="preload" href="./build/es6/dist/my-custom-elements.js" as="script" crossorigin="anonymous">
<link rel="preload" href="./build/es6/node_modules/@lrnwebcomponents/haxcms-elements/lib/base.css" as="style">
<link rel="preload" href="./theme/theme.css" as="style">
<link rel="preconnect" crossorigin href="https://fonts.googleapis.com">
<link rel="preconnect" crossorigin href="https://cdnjs.cloudflare.com">
<link rel="preconnect" crossorigin href="https://i.creativecommons.org">
<link rel="preconnect" crossorigin href="https://licensebuttons.net">
<script>
// attempt to correctly set the base without knowing where we're installed fully...
if (document.location.pathname.indexOf('/_sites/') != -1) {
document.write("<base href='" + document.location.pathname.substring(0, document.location.pathname.indexOf('/', document.location.pathname.indexOf('/_sites/') + 8)) + "/' />");
}
else if (document.location.pathname.indexOf('/sites/') != -1) {
document.write("<base href='" + document.location.pathname.substring(0, document.location.pathname.indexOf('/', document.location.pathname.indexOf('/sites/') + 7)) + "/' />");
}
else {
document.write("<base href='/' />");
}
</script>
<!-- import config -->
<script src="./config.js"></script>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes">
<meta name="generator" content="HAXcms">
<meta name="description" content="Office of Digital Learning">
<meta name="theme-color" content="#3f51b5">
<meta name="mobile-web-app-capable" content="yes">
<meta name=”robots” content=”index, follow”>
<meta name="application-name" content="My site">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="My App">
<meta name="msapplication-TileImage" content="assets/icon-144x144.png">
<meta name="msapplication-TileColor" content="#3f51b5">
<meta name="msapplication-tap-highlight" content="no">
<link rel="icon" href="assets/favicon.ico">
<link rel="apple-touch-icon" href="assets/icon-48x48.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/icon-72x72.png">
<link rel="apple-touch-icon" sizes="96x96" href="assets/icon-96x96.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/icon-144x144.png">
<link rel="apple-touch-icon" sizes="192x192" href="assets/icon-192x192.png">
<title>Office of Digital Learning - Eberly College of Science at Penn State</title>
<style>
body {
margin: 0;
min-height: 100vh;
}
haxcms-site-builder {
display: block;
}
haxcms-site-builder:not(:defined) div.loading {
width: 100vw;
display: block;
position: initial;
height: 100vh;
background: white;
}
haxcms-site-builder:not(:defined) div {
font-size: 6vw;
line-height: 1;
margin: 0 auto;
top: calc(50vh - 8vw);
width: 100%;
justify-content: center;
display: grid;
text-align: center;
padding: 0;
position: relative;
font-family: "Courier New", Courier, monospace;
color: black;
}
body[no-js] haxcms-site-builder {
display: none !important;
}
#loading-logo {
width: 200px;
height: auto;
}
</style>
</head>
<body no-js vocab="http://schema.org/" prefix="oer:http://oerschema.org cc:http://creativecommons.org/ns dc:http://purl.org/dc/terms/">
<div id="pre-bootstrap">
<div class="messaging">
<img id="loading-logo" src="files/theme-images/logos/odl-logo.png" alt="Office of Digital Learning">
<div class="progress-line"></div>
</div>
<style>
#pre-bootstrap {
background-color: white;
bottom: 0px;
left: 0px;
opacity: 1;
position: fixed;
right: 0px;
top: 0px;
transition: all linear 300ms;
-webkit-transition: all linear 300ms;
z-index: 999999;
}
body[no-js] #pre-bootstrap {
display: none !important;
}
#pre-bootstrap.loaded {
animation: fade-out .7s ease-in-out;
animation-fill-mode: forwards;
}
#pre-bootstrap div.messaging {
color: rgba(255,255,255, 0.7);
font-family: Roboto;
left: 0px;
margin-top: -75px;
position: absolute;
right: 0px;
text-align: center;
top: 50%;
transform: translateY(-50%);
}
#pre-bootstrap img {
width: 300px;
padding-bottom: 50px;
}
.progress-line,
.progress-line:before {
height: 5px;
width: 100%;
margin: auto;
}
.progress-line {
background-color: rgba(0,0,0, 0.05);
display: -webkit-flex;
display: flex;
width: 300px;
}
.progress-line:before {
background-color: orange;
content: '';
animation: running-progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes running-progress {
0% {
margin-left: 0px;
margin-right: 100%;
}
50% {
margin-left: 25%;
margin-right: 0%;
}
100% {
margin-left: 100%;
margin-right: 0;
}
}
@keyframes fade-out {
0% {
opacity: 1;
}
99% {
opacity: 0;
}
100% {
opacity: 0;
}
}
</style>
<script>
window.addEventListener('load', (event) => {
// give the web components a second to build
setTimeout(function() {
document.querySelector('#pre-bootstrap').classList.add('loaded');
setTimeout(function() {
document.querySelector('#pre-bootstrap').setAttribute('style', 'display: none !important');
}, 700)
}, 1000)
});
</script>
</div>
<haxcms-site-builder id="site" file="site.json"><div class="loading"><img src="files/theme-images/logos/odl-logo.png" alt="Office of Digital Learning"></div></haxcms-site-builder>
<script>document.body.removeAttribute('no-js');window.__appCDN="./";window.__appForceUpgrade=false;</script>
<script src="./build.js"></script>
<script src="./build-haxcms.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-72373482-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-72373482-2');
</script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<!-- <script defer type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-601477720d06b1b0"></script> -->
</body>
</html>