From 2d5a49fc7d61e2a7353ece540c3f12f2f08a0ba0 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 8 Feb 2015 12:48:02 +0200 Subject: [PATCH] Mark everything that requires javascript with class reqjs --- css/custom.css | 4 ++++ js/90-reqjs.js | 7 +++++++ js/90-themes.js | 1 - js/90-tracker.js | 3 +-- js/95-login.js | 2 +- tmpl/ct_entry.en | 2 +- tmpl/pb_entry.en | 4 ++-- tmpl/skel.en | 6 +++--- tmpl/us_entry.en | 2 +- 9 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 js/90-reqjs.js diff --git a/css/custom.css b/css/custom.css index f784c4e..f9ccad3 100644 --- a/css/custom.css +++ b/css/custom.css @@ -91,4 +91,8 @@ ul.inline li:last-child:after { #ctcountdown { text-align: center; font-size: 200%; +} + +.reqjs { + display: none !important; } \ No newline at end of file diff --git a/js/90-reqjs.js b/js/90-reqjs.js new file mode 100644 index 0000000..df21b15 --- /dev/null +++ b/js/90-reqjs.js @@ -0,0 +1,7 @@ +(function(){ + 'use strict'; + + $( document ).ready(function() { + $('.reqjs').removeClass('reqjs'); + }); +})(); diff --git a/js/90-themes.js b/js/90-themes.js index 74506c8..5ec968a 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -6,7 +6,6 @@ } $( document ).ready(function() { - $('#theme-selector').removeClass('hidden'); $('#theme_slate' ).on('click', function () { set_style("slate"); }); $('#theme_cerulean').on('click', function () { set_style("cerulean"); }); $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); }); diff --git a/js/90-tracker.js b/js/90-tracker.js index 3ef0ac1..2f8271c 100644 --- a/js/90-tracker.js +++ b/js/90-tracker.js @@ -96,10 +96,9 @@ } $( document ).ready(function(){ - $('#tracker').detach().prependTo($('#sidebar')).removeClass('hidden'); + $('#tracker').detach().prependTo($('#sidebar')); $('#tracker_button').on('click', function() { start_tracking($('#tracker_username').val()) }); $('#tracker_stop').on('click', stop_tracking); - $('#track_user').removeClass('hidden'); $('#track_user').on('click', function() { stop_tracking(); start_tracking($(this).data('user')) }); if(localStorage.getItem('tracker_username')) diff --git a/js/95-login.js b/js/95-login.js index adbeb1d..81e4533 100644 --- a/js/95-login.js +++ b/js/95-login.js @@ -2,7 +2,7 @@ 'use strict'; $( document ).ready(function(){ - $('#login').detach().prependTo($('#sidebar')).removeClass('hidden'); + $('#login').detach().prependTo($('#sidebar')); document.cookie = "cookietest=1"; var cookie = document.cookie.indexOf("cookietest=") != -1; diff --git a/tmpl/ct_entry.en b/tmpl/ct_entry.en index c30a503..c18fba2 100644 --- a/tmpl/ct_entry.en +++ b/tmpl/ct_entry.en @@ -3,7 +3,7 @@
Contest stop time
stop
-
+
Contest starts/ends in:
description
diff --git a/tmpl/pb_entry.en b/tmpl/pb_entry.en index 0d7c2a1..2798544 100644 --- a/tmpl/pb_entry.en +++ b/tmpl/pb_entry.en @@ -9,8 +9,8 @@
Owner
owner
Level
Easy
Time limit (seconds)
1
-
Score
50
-
Contest ends in
01:30
+
Score
50
+
Contest ends in
01:30
Job log
diff --git a/tmpl/skel.en b/tmpl/skel.en index d726345..19f3180 100644 --- a/tmpl/skel.en +++ b/tmpl/skel.en @@ -16,7 +16,7 @@
  • Theme