Outage notice on home page
This commit is contained in:
@@ -279,11 +279,14 @@
|
||||
{{template `TextViewer.js`}}
|
||||
{{template `FileViewer.js`}}
|
||||
|
||||
// This info gets filled in on the server side to prevent having to make an API call right after the page loads.
|
||||
// Just to slice another few milliseconds from the load time :)
|
||||
window.addEventListener("load", function(){
|
||||
new Viewer('{{.Other.Type}}', '{{.Other.ViewToken}}', {{.Other.APIResponse}});
|
||||
});
|
||||
// DOMContentLoaded fires when the DOM tree has been parsed, but
|
||||
// before the assets have loaded
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
// This info gets filled in on the server side to prevent having to
|
||||
// make an API call right after the page loads. Just to slice
|
||||
// another few milliseconds from the load time :)
|
||||
new Viewer('{{.Other.Type}}', '{{.Other.ViewToken}}', {{.Other.APIResponse}})
|
||||
})
|
||||
</script>
|
||||
|
||||
{{template "analytics"}}
|
||||
@@ -292,13 +295,17 @@
|
||||
{{ if eq .Other.AdType 5 }}
|
||||
<!-- AdMaven -->
|
||||
<script data-cfasync="false" async src="//d227cncaprzd7y.cloudfront.net/?acncd=905608"></script>
|
||||
{{ else if eq .Other.AdType 7}}
|
||||
{{ else if eq .Other.AdType 7 }}
|
||||
<!-- PropellerAds -->
|
||||
<script>
|
||||
(function(d,z,s){
|
||||
s.src='//'+d+'/400/'+z
|
||||
try{(document.body||document.documentElement).appendChild(s)}catch(e){}
|
||||
})('in-page-push.com',3724132,document.createElement('script'))
|
||||
// Load fires when the page is completely finished loading,
|
||||
// including assets
|
||||
window.addEventListener("load", () => {
|
||||
(function(d,z,s){
|
||||
s.src='//'+d+'/400/'+z
|
||||
try{(document.body||document.documentElement).appendChild(s)}catch(e){}
|
||||
})('in-page-push.com',3724132,document.createElement('script'))
|
||||
})
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user