1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < base href ="{{ basePath }} " />
5
+ {{ metadata|raw }}
6
+ <!-- Start Single Page Apps for GitHub Pages -->
7
+ < script >
8
+ // Single Page Apps for GitHub Pages
9
+ // https://github.com/rafrex/spa-github-pages
10
+ // Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
11
+ // ----------------------------------------------------------------------
12
+ // This script checks to see if a redirect is present in the query string
13
+ // and converts it back into the correct url and adds it to the
14
+ // browser's history using window.history.replaceState(...),
15
+ // which won't cause the browser to attempt to load the new url.
16
+ // When the single page app is loaded further down in this file,
17
+ // the correct url will be waiting in the browser's history for
18
+ // the single page app to route accordingly.
19
+ ( function ( l ) {
20
+ if ( l . search ) {
21
+ var q = { } ;
22
+ l . search . slice ( 1 ) . split ( '&' ) . forEach ( function ( v ) {
23
+ var a = v . split ( '=' ) ;
24
+ q [ a [ 0 ] ] = a . slice ( 1 ) . join ( '=' ) . replace ( / ~ a n d ~ / g, '&' ) ;
25
+ } ) ;
26
+ if ( q . p !== undefined ) {
27
+ window . history . replaceState ( null , null ,
28
+ l . pathname . slice ( 0 , - 1 ) + ( q . p || '' ) +
29
+ ( q . q ? ( '?' + q . q ) : '' ) +
30
+ l . hash
31
+ ) ;
32
+ }
33
+ }
34
+ } ( window . location ) )
35
+ </ script >
36
+ <!-- End Single Page Apps for GitHub Pages -->
37
+ {{ serviceWorkerScript|raw }}
38
+ < style >
39
+ body {
40
+ margin : 0 ;
41
+ min-height : 98vh ;
42
+ }
43
+ .use-modern-browser a {
44
+ font-size : 22px ;
45
+ }
46
+ .use-modern-browser {
47
+ font-size : 22px ;
48
+ text-align : center;
49
+ width : 100% ;
50
+ }
51
+ </ style >
52
+ < style id ="loadingstyles ">
53
+ haxcms-site-builder {
54
+ display : block;
55
+ }
56
+ body [no-js ] haxcms-site-builder {
57
+ display : none !important ;
58
+ }
59
+ # loading {
60
+ background-color : white;
61
+ bottom : 0px ;
62
+ left : 0px ;
63
+ opacity : 1 ;
64
+ position : absolute;
65
+ right : 0px ;
66
+ top : 0px ;
67
+ transition : all linear 300ms ;
68
+ -webkit-transition : all linear 300ms ;
69
+ z-index : 99999999 ;
70
+ }
71
+
72
+ # loading .loaded {
73
+ animation : fade-out .7s ease-in-out;
74
+ animation-fill-mode : forwards;
75
+ }
76
+ # loading div .messaging {
77
+ color : rgba (255 , 255 , 255 , 0.7 );
78
+ font-family : Roboto;
79
+ left : 0px ;
80
+ margin-top : -75px ;
81
+ position : absolute;
82
+ right : 0px ;
83
+ text-align : center;
84
+ top : 50% ;
85
+ transform : translateY (-50% );
86
+ }
87
+ # loading div .messaging h1 {
88
+ color : white;
89
+ font-family : 'Open Sans' , 'arial' , 'serif' ;
90
+ font-size : 40px ;
91
+ background-color : orange;
92
+ transition : .4s ease-in-out all;
93
+ }
94
+ # loading img {
95
+ transition : .4s all ease-in-out;
96
+ width : 300px ;
97
+ height : 300px ;
98
+ margin-bottom : 50px ;
99
+ border-radius : 50% ;
100
+ border : 8px solid orange;
101
+ box-shadow : 0 4px 12px 0 rgba (0 , 0 , 0 , 0.45 );
102
+ -moz-box-shadow : 0 4px 12px 0 rgba (0 , 0 , 0 , 0.45 );
103
+ -webkit-box-shadow : 0 4px 12px 0 rgba (0 , 0 , 0 , 0.45 );
104
+ -ms-filter : "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#444444')" ;
105
+ }
106
+ .progress-line ,
107
+ .progress-line : before {
108
+ height : 8px ;
109
+ width : 100% ;
110
+ margin : auto;
111
+ }
112
+ .progress-line {
113
+ background-color : rgba (0 , 0 , 0 , 0.05 );
114
+ display : -webkit-flex;
115
+ display : flex;
116
+ width : 300px ;
117
+ }
118
+ .progress-line : before {
119
+ background-color : orange;
120
+ content : '' ;
121
+ animation : running-progress 2s cubic-bezier (0.4 , 0 , 0.2 , 1 ) infinite;
122
+ }
123
+ @keyframes running-progress {
124
+ 0% {
125
+ margin-left : 0px ;
126
+ margin-right : 100% ;
127
+ }
128
+ 50% {
129
+ margin-left : 25% ;
130
+ margin-right : 0% ;
131
+ }
132
+ 100% {
133
+ margin-left : 100% ;
134
+ margin-right : 0 ;
135
+ }
136
+ }
137
+ @keyframes fade-out {
138
+ 0% {
139
+ opacity : 1 ;
140
+ }
141
+ 99% {
142
+ opacity : 0 ;
143
+ }
144
+ 100% {
145
+ opacity : 0 ;
146
+ }
147
+ }
148
+ </ style >
149
+ < script id ="loadingscript ">
150
+ window . addEventListener ( 'haxcms-ready' , function ( e ) {
151
+ // give the web components a second to build
152
+ setTimeout ( function ( ) {
153
+ document . querySelector ( '#loading' ) . classList . add ( 'loaded' ) ;
154
+ setTimeout ( function ( ) {
155
+ document . querySelector ( '#loading' ) . parentNode . removeChild ( document . querySelector ( '#loading' ) ) ;
156
+ document . querySelector ( '#loadingstyles' ) . parentNode . removeChild ( document . querySelector ( '#loadingstyles' ) ) ;
157
+ document . querySelector ( '#loadingscript' ) . parentNode . removeChild ( document . querySelector ( '#loadingscript' ) ) ;
158
+ } , 600 ) ;
159
+ } , 100 )
160
+ } ) ;
161
+ </ script >
162
+ </ head >
163
+ < body no-js {{ bodyAttrs|raw }} >
164
+ < div id ="loading ">
165
+ < div class ="messaging ">
166
+ < img src ="{{ logo256x256 }} " alt ="" loading ="lazy " height ="300px " width ="300px " />
167
+ < div class ="progress-line "> </ div >
168
+ < h1 > Loading {{ title }}</ h1 >
169
+ </ div >
170
+ </ div >
171
+ < haxcms-site-builder id ="site " file ="site.json "> </ haxcms-site-builder >
172
+ < div id ="haxcmsoutdatedfallback ">
173
+ < div id ="haxcmsoutdatedfallbacksuperold ">
174
+ < iframe id ="outline " style ="width:18%;float:left;height:90vh;padding:0;margin:0; " name ="outline " id ="frame1 "
175
+ src ="legacy-outline.html " loading ="lazy "> </ iframe >
176
+ < iframe id ="content " style ="width:80%;float:left;height:90vh;padding:0;margin:0; " name ="content " id ="frame2 " src ="" loading ="lazy "> </ iframe >
177
+ < div class ="use-modern-browser "> Please use a modern browser to
178
+ view our website correctly. < a href ="http://outdatedbrowser.com/ "> Update my browser now</ a > </ div >
179
+ </ div >
180
+ </ div >
181
+ < script >
182
+ window . HAXCMSContext = "published" ;
183
+ document . body . removeAttribute ( 'no-js' ) ;
184
+ window . __appCDN = "https://{{ cdn }}/" ;
185
+ window . __appForceUpgrade = { { forceUpgrade } } ;
186
+ </ script >
187
+ < script src ="https://{{ cdn }}/build-haxcms.js "> </ script >
188
+ < script src ="https://{{ cdn }}/build.js "> </ script >
189
+ </ body >
190
+ </ html >
0 commit comments