2019-01-16 05:57:47 +00:00
|
|
|
webpass = document.location.hash.replace('#', '')
|
2019-01-17 05:31:56 +00:00
|
|
|
nowebpass = false
|
2019-01-16 05:57:47 +00:00
|
|
|
if (typeof webpass == "undefined"){
|
|
|
|
webpass = localStorage['webpass']
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
localStorage['webpass'] = webpass
|
|
|
|
document.location.hash = ''
|
|
|
|
}
|
|
|
|
if (typeof webpass == "undefined" || webpass == ""){
|
|
|
|
alert('Web password was not found in memory or URL')
|
2019-01-17 05:31:56 +00:00
|
|
|
nowebpass = true
|
2019-01-16 05:57:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function httpGet(theUrl) {
|
2019-01-14 06:14:02 +00:00
|
|
|
var xmlHttp = new XMLHttpRequest()
|
|
|
|
xmlHttp.open( "GET", theUrl, false ) // false for synchronous request
|
|
|
|
xmlHttp.setRequestHeader('token', webpass)
|
|
|
|
xmlHttp.send( null )
|
|
|
|
if (xmlHttp.status == 200){
|
|
|
|
return xmlHttp.responseText
|
|
|
|
}
|
|
|
|
else{
|
2019-01-16 05:57:47 +00:00
|
|
|
return ""
|
2019-01-14 06:14:02 +00:00
|
|
|
}
|
2019-01-16 05:57:47 +00:00
|
|
|
}
|
|
|
|
function overlay(overlayID) {
|
|
|
|
el = document.getElementById(overlayID)
|
|
|
|
el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible"
|
|
|
|
}
|