aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
diff options
context:
space:
mode:
authorMaZderMind2015-12-02 18:17:18 +0100
committerMaZderMind2015-12-02 18:17:18 +0100
commit9d434af7f2ce972a65043d5fa3c7f476b91c1fda (patch)
tree984d0a33e8b61a3b2b3c2bd847a551c5f8bc3a6e /assets/js/lustiges-script.js
parent8a4fc337510ddaeb8ea3f27b7b5e807416c001ae (diff)
generate closed-page countdown on server-side
Diffstat (limited to 'assets/js/lustiges-script.js')
-rw-r--r--assets/js/lustiges-script.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
index aa817d2..3b3ab6d 100644
--- a/assets/js/lustiges-script.js
+++ b/assets/js/lustiges-script.js
@@ -554,23 +554,3 @@ $(function() {
$(this).select();
});
});
-
-// closed-countdown
-$(function() {
- var
- $el = $('.countdown'),
- dt = moment($el.data('dt'));
-
- $el.attr('title', 'on '+dt.format('dddd, MMM Do YYYY'))
- function update() {
- setTimeout(update, 5000);
-
- var now = moment();
-
- if(dt.dayOfYear() == now.dayOfYear() && dt.year() == now.year())
- $el.text('today');
- else
- $el.text( dt.from(now) );
- }
- update();
-});