diff options
Diffstat (limited to 'static')
| -rwxr-xr-x | static/css/dump.css | 1 | ||||
| -rw-r--r-- | static/js/pichat.js | 1 | ||||
| -rwxr-xr-x | static/js/register.js | 24 | ||||
| -rw-r--r-- | static/js/src/_main.js | 1 |
4 files changed, 26 insertions, 1 deletions
diff --git a/static/css/dump.css b/static/css/dump.css index acf9ea6..de64bbb 100755 --- a/static/css/dump.css +++ b/static/css/dump.css @@ -2515,6 +2515,7 @@ a#disregister:hover { .nick_aids_enoch a:link, .nick_aids_enoch .content, .nick_aids_enoch .msg-hover { color: transparent; text-shadow: 0 0 5px #857E96; } .nick_aids_enoch { opacity: 0.3; } +.nick_aids_enoch img { -webkit-filter: blur(4px); } .bigimage { max-width: none!important; max-height: none!important;width:100% } diff --git a/static/js/pichat.js b/static/js/pichat.js index 1003880..0ed479a 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -246,6 +246,7 @@ window.Preferences = { $.cookie(prop, null, { domain: Preferences.Domain, path: '/' }); } }; + window.Away = { "UnseenMsgCounter": 0, "OrigTitle": "", diff --git a/static/js/register.js b/static/js/register.js index d2d513d..4352c19 100755 --- a/static/js/register.js +++ b/static/js/register.js @@ -64,8 +64,30 @@ function submitRegistration() { }); } +function hasLocalStorage() { + try { + return 'localStorage' in window && window['localStorage'] !== null; + } catch (e) { + return false; + } +} + function initRegister() { - $('#submit').click(submitRegistration); + var date = new Date () + var open_reg = false || ! ('LoggedIn' in window) + if (hasLocalStorage() && localStorage.is_banned == "true") { + $('.regopen').remove() + $('.log-in').remove() + $('#forgetpw').remove() + return + } + if (open_reg || ( date.getHours() >= 8 && date.getHours() <= 17 )) { + $('.regclosed').remove() + $('#submit').click(submitRegistration); + } + else { + $('.regopen').remove() + } } // sha1.js diff --git a/static/js/src/_main.js b/static/js/src/_main.js index b2fe1a9..c95b98a 100644 --- a/static/js/src/_main.js +++ b/static/js/src/_main.js @@ -46,3 +46,4 @@ window.Preferences = { $.cookie(prop, null, { domain: Preferences.Domain, path: '/' }); } }; + |
