summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-04-15 19:17:49 -0400
committerJules Laplace <jules@okfoc.us>2016-04-15 19:17:49 -0400
commita27733aa03ae637b60e1763aedda6d651e96adfb (patch)
tree65662e408970a8e479f1df9830761733378f6099 /public
parentaaff8ffeea504a44e6250374720754010a684b5a (diff)
program time stuff but also remove the time
Diffstat (limited to 'public')
-rw-r--r--public/assets/js/app.js2
-rw-r--r--public/assets/js/lib/HeaderView.js26
-rw-r--r--public/assets/ok.css3
3 files changed, 31 insertions, 0 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index 11c541b..c2806a6 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -73,6 +73,8 @@ var app = (function() {
setTimeout(function(){
$("body").removeClass("loading")
}, 20)
+
+ // app.header.startTime()
app.router = new SiteRouter ()
diff --git a/public/assets/js/lib/HeaderView.js b/public/assets/js/lib/HeaderView.js
index 7efac50..4390ac8 100644
--- a/public/assets/js/lib/HeaderView.js
+++ b/public/assets/js/lib/HeaderView.js
@@ -18,6 +18,32 @@ var HeaderView = View.extend({
$("#curtain").click(this.toggleNav)
},
+// startTime: function(){
+// this.updateTime()
+// this.$time.show()
+// },
+//
+// lastTime: +new Date() - 1000,
+// updateTime: function(){
+// setTimeout( this.updateTime.bind(this), 500 )
+// var t = new Date()
+// var secs = +t
+// if (secs - this.lastTime < 1000) { return }
+// this.lastTime = secs
+// var y = t.getYear() + 1900
+// var mm = t.getMonth() + 1
+// var d = t.getDate()
+// var h = t.getHours() % 12
+// var m = t.getMinutes()
+// var s = t.getSeconds()
+// if (mm < 10) mm = "0" + mm
+// if (d < 10) d = "0" + d
+// if (h < 10) h = "0" + h
+// if (m < 10) m = "0" + m
+// if (s < 10) s = "0" + s
+// this.$hours.html(""+y+"/"+mm+"/"+d+" "+h+":"+m+":"+s)
+// },
+
updateSlideNumber: function(n){
n += 1
if (n < 10) n = "0" + n
diff --git a/public/assets/ok.css b/public/assets/ok.css
index db17b69..672e1e7 100644
--- a/public/assets/ok.css
+++ b/public/assets/ok.css
@@ -779,6 +779,9 @@ ul li {
#time .dots {
animation: blink 1.0s;
}
+#time b {
+ font-weight: normal;
+}
@keyframes blink {
0%{ opacity: 1.0 }
50% {opacity: 1.0 }