Permalink
Browse files

Cleaned up the js a bit

  • Loading branch information...
davidlbatey committed Feb 25, 2012
1 parent 5f88f01 commit 25c9df85596844967c12d3c331e60c9a7ece9554
Showing with 8 additions and 4 deletions.
  1. +0 −3 app/assets/javascripts/display.js.coffee
  2. +8 −1 app/assets/javascripts/tweets.js.coffee
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -5,9 +5,16 @@
Tweet =
+ page_refresh: 120000
+ slide_delay: 6000
+
+ init: ->
+ setTimeout((->window.location.reload()), @page_refresh)
+ setInterval(Tweet.next, @slide_delay)
+
next: ->
impress().next()
$ ->
- setInterval(Tweet.next, 6000)
+ Tweet.init()
impress()

0 comments on commit 25c9df8

Please sign in to comment.