summaryrefslogtreecommitdiff
path: root/public/assets
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets')
-rw-r--r--public/assets/css/bucky.css4
-rw-r--r--public/assets/js/lib/views/index/countdown.js48
-rw-r--r--public/assets/js/lib/views/index/index.js1
3 files changed, 2 insertions, 51 deletions
diff --git a/public/assets/css/bucky.css b/public/assets/css/bucky.css
index d06988f..bc35ddd 100644
--- a/public/assets/css/bucky.css
+++ b/public/assets/css/bucky.css
@@ -1145,7 +1145,7 @@ audio {
/* mobile css and errata */
-@media (min-width: 700px) and (max-width: 1000px) {
+@media (min-width: 700px) and (max-width: 1025px) {
#sidebar {
display: none;
}
@@ -1159,7 +1159,7 @@ audio {
display: block;
}
}
-@media (max-width: 700px) {
+@media (max-width: 1025px) {
html {
padding-bottom: 0px;
}
diff --git a/public/assets/js/lib/views/index/countdown.js b/public/assets/js/lib/views/index/countdown.js
deleted file mode 100644
index 4f840eb..0000000
--- a/public/assets/js/lib/views/index/countdown.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var Countdown = View.extend({
-
- el: ".countdown",
- countdownTo: new Date(2019, 9, 5, 0, 0, 0),
-
- events: {
- },
-
- initialize: function(){
- this.__super__.initialize.call(this)
- this.update()
- },
-
- update() {
- var now = (this.countdownTo - new Date()) / 1000
- if (now < 0) {
- if (now > -86400) {
- this.$el.html("<b><i><big>today's the day!</big></i></b>")
- } else {
- this.$el.html("<b><i><big>bucky says congrats!!!!</big></i></b>")
- }
- return
- }
- var seconds = Math.floor(now % 60)
- now /= 60
- var minutes = Math.floor(now % 60)
- now /= 60
- var hours = Math.floor(now % 24)
- now /= 24
- var days = Math.floor(now % 7)
- now /= 7
- var weeks = Math.floor(now)
- var date_string = [
- '<big><b>',
- (weeks ? (
- (weeks && days) ? weeks + ' week' + courtesy_s(weeks) + ',' : weeks + ' week' + courtesy_s(weeks) + ''
- ) : ''
- ),
- (days ? days + ' day' + courtesy_s(days) : ''),
- '</big></b>',
- hours, 'hour' + courtesy_s(hours) + ',',
- minutes, 'minute' + courtesy_s(minutes) + ',',
- seconds, 'second' + courtesy_s(seconds),
- ].join(' ')
- this.$el.html( date_string + "<br><i style='display: block;margin-top: 4px;'>until the big day!</i>")
- setTimeout(this.update.bind(this), 1000)
- },
-}) \ No newline at end of file
diff --git a/public/assets/js/lib/views/index/index.js b/public/assets/js/lib/views/index/index.js
index 08da455..985f990 100644
--- a/public/assets/js/lib/views/index/index.js
+++ b/public/assets/js/lib/views/index/index.js
@@ -11,7 +11,6 @@ var IndexView = View.extend({
this.hootbox = new HootBox ({ parent: this })
this.threadbox = new ThreadBox ({ parent: this })
this.lastlog = new LastLog ({ parent: this })
- this.countdown = new Countdown ({ parent: this })
},
load: function(keyword){