Rev1287, Display error for unsupported browsers
This commit is contained in:
parent
9f5917325b
commit
81f196647b
4 changed files with 6 additions and 3 deletions
|
@ -8,7 +8,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.3.7"
|
||||
self.rev = 1286
|
||||
self.rev = 1287
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -2,6 +2,7 @@ body { margin: 0; padding: 0; height: 100%; background-color: #D2CECD; overflow:
|
|||
body.back { background-color: #090909 }
|
||||
a { color: black }
|
||||
|
||||
.unsupported { text-align: center; z-index: 999; position: relative; margin: auto; width: 480px; background-color: white; padding: 20px; border-bottom: 2px solid #e74c3c; box-shadow: 0px 0px 15px #DDD; font-family: monospace; }
|
||||
.template { display: none !important }
|
||||
|
||||
#inner-iframe { width: 100%; height: 100%; position: absolute; border: 0 } /*; transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease-in-out*/
|
||||
|
@ -36,7 +37,6 @@ a { color: black }
|
|||
.fixbutton-bg:hover { background-color: #AF3BFF }
|
||||
.fixbutton-bg:active { background-color: #9E2FEA; top: 1px; transition: none }
|
||||
|
||||
|
||||
/* Notification */
|
||||
|
||||
.notifications { position: absolute; top: 0; right: 80px; display: inline-block; z-index: 999; white-space: nowrap }
|
||||
|
|
|
@ -7,6 +7,7 @@ body { margin: 0; padding: 0; height: 100%; background-color: #D2CECD; overflow:
|
|||
body.back { background-color: #090909 }
|
||||
a { color: black }
|
||||
|
||||
.unsupported { text-align: center; z-index: 999; position: relative; margin: auto; width: 480px; background-color: white; padding: 20px; border-bottom: 2px solid #e74c3c; -webkit-box-shadow: 0px 0px 15px #DDD; -moz-box-shadow: 0px 0px 15px #DDD; -o-box-shadow: 0px 0px 15px #DDD; -ms-box-shadow: 0px 0px 15px #DDD; box-shadow: 0px 0px 15px #DDD ; font-family: monospace; }
|
||||
.template { display: none !important }
|
||||
|
||||
#inner-iframe { width: 100%; height: 100%; position: absolute; border: 0 } /*; transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease-in-out*/
|
||||
|
@ -41,7 +42,6 @@ a { color: black }
|
|||
.fixbutton-bg:hover { background-color: #AF3BFF }
|
||||
.fixbutton-bg:active { background-color: #9E2FEA; top: 1px; -webkit-transition: none ; -moz-transition: none ; -o-transition: none ; -ms-transition: none ; transition: none }
|
||||
|
||||
|
||||
/* Notification */
|
||||
|
||||
.notifications { position: absolute; top: 0; right: 80px; display: inline-block; z-index: 999; white-space: nowrap }
|
||||
|
|
|
@ -69,6 +69,9 @@ file_inner_path = "{file_inner_path}"
|
|||
permissions = {permissions}
|
||||
show_loadingscreen = {show_loadingscreen}
|
||||
server_url = '{server_url}'
|
||||
|
||||
if (typeof WebSocket === "undefined")
|
||||
document.body.innerHTML += "<div class='unsupported'>Your browser is not supported please use <a href='http://outdatedbrowser.com'>Chrome or Firefox</a>.</div>";
|
||||
</script>
|
||||
<script type="text/javascript" src="/uimedia/all.js?rev={rev}"></script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue