#ctcountdown {
text-align: center;
font-size: 200%;
+}
+
+.reqjs {
+ display: none !important;
}
\ No newline at end of file
--- /dev/null
+(function(){
+ 'use strict';
+
+ $( document ).ready(function() {
+ $('.reqjs').removeClass('reqjs');
+ });
+})();
}
$( 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"); });
}
$( 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'))
'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;
<dt>Contest stop time</dt> <dd id="stop">stop</dd>
</dl>
-<div id="ctcountdown">
+<div id="ctcountdown" class="reqjs">
Contest <span id="status">starts/ends</span> in: <span class="timer" data-stop="...">
</div>
<div id="description">description</div>
<dt>Owner</dt> <dd id="owner">owner</dd>
<dt>Level</dt> <dd id="level">Easy</dd>
<dt>Time limit (seconds)</dt> <dd smap="timeout">1</dd>
-<dt class="rc">Score</dt> <dd id="score" class="timer" data-start="..." data-stop="..." data-value="100" class="rc">50</dd>
-<dt class="rc">Contest ends in</dt> <dd id="countdown" class="timer" data-stop="..." class="rc">01:30</dd>
+<dt class="rc reqjs">Score</dt> <dd id="score" class="timer reqjs rc" data-start="..." data-stop="..." data-value="100">50</dd>
+<dt class="rc reqjs">Contest ends in</dt> <dd id="countdown" class="timer reqjs rc" data-stop="...">01:30</dd>
</dl>
<a href="/log/?problem=problem_id" id="job_log">Job log</a><br>
<li id="nav-log"><a href="/log/">Job log</a>
<li id="nav-us"><a href="/us/">Users</a>
<li id="nav-account"><a href="/account">Account</a>
-<li id="theme-selector" class="hidden"><a class="dropdown-toggle" data-toggle="dropdown"> Theme <span class="caret"></span></a>
+<li id="theme-selector" class="reqjs"><a class="dropdown-toggle" data-toggle="dropdown"> Theme <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#" id="theme_slate">Gunmetal gray</a>
<li><a href="#" id="theme_cyborg">Black</a>
<div id="content">Content goes here</div>
-<div id="login" class="hidden"><a href="/login">Log in</a></div>
+<div id="login" class="reqjs"><a href="/login">Log in</a></div>
-<div id="tracker" class="hidden">
+<div id="tracker" class="reqjs">
<h3>Track user</h3>
<div id="tracker_form">
<div class="form-group">
<dt>Level</dt> <dd smap="level">Level</dd>
</dl>
-<a href="#" id="track_user" data-user="id" class="hidden">Track user</a><br>
+<a href="#" id="track_user" data-user="id" class="reqjs">Track user</a><br>
<a href="/log/?owner=id" id="log">Job log</a><br>
<a href="/pb/?owner=id" id="pb">Owned problems</a>