From 6ca9552ac361d276ffdb3085eed10e513e8c6bf7 Mon Sep 17 00:00:00 2001
From: Alex Xu
Date: Wed, 29 Jan 2014 17:57:22 -0500
Subject: More stuff.
---
www/css/index.css | 4 ++--
www/js/html5ks.js | 6 +++---
www/warn.html | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
(limited to 'www')
diff --git a/www/css/index.css b/www/css/index.css
index 1210e28..3b9a420 100644
--- a/www/css/index.css
+++ b/www/css/index.css
@@ -41,11 +41,11 @@ h2 {
/* interstitial */
#interstitial {
- visibility: hidden;
+ display: none;
cursor: auto;
}
html.no-js #interstitial {
- visibility: visible;
+ display: block;
}
#warn {
background-color: rgb(128, 128, 128);
diff --git a/www/js/html5ks.js b/www/js/html5ks.js
index 50555b3..ab5fcd4 100644
--- a/www/js/html5ks.js
+++ b/www/js/html5ks.js
@@ -29,7 +29,7 @@ window.html5ks = {
return v;
},
set: function (value) {
- v = '' + value;
+ v = value;
localStorage.persistent = JSON.stringify(html5ks.persistent);
},
enumerable: true
@@ -153,7 +153,7 @@ window.html5ks = {
for (var i = 0; i < warns.length; i++) {
var warn = warns[i];
if (window.getComputedStyle(warns[i]).getPropertyValue("display") !== "none") {
- warn.style.visibility = "visible";
+ warn.style.display = "block";
return true;
}
}
@@ -167,9 +167,9 @@ window.html5ks = {
if (!this.warnUnsupported()) {
this.start();
}
+ this.i18n.init();
this.api.init();
this.menu.init();
- this.i18n.init();
},
start: function () {
this.fetch("json", "script").then(function (d) {
diff --git a/www/warn.html b/www/warn.html
index 5c7c898..8601eb7 100644
--- a/www/warn.html
+++ b/www/warn.html
@@ -13,7 +13,7 @@
FYI, this site sets a single anonymous cookie (warned=1) so that you won't have to keep seeing this page. It also sets localStorage to keep your settings and saves. The latter always stays on your computer and never goes anywhere. If you live in the EU, please don't sue me.
--
cgit v1.2.3-70-g09d2