     while str.length < length
       str = "0#{str}"
     str
+
+  pause: () =>
+    @$timer.toggle()
+    if @$switcherStopper.hasClass('fa-pause')
+      @$switcherStopper.removeClass('fa-pause').addClass('fa-play')
+    else
+      @$switcherStopper.removeClass('fa-play').addClass('fa-pause')
 
   resetCountdown: () ->
     # Get time from form

    if @currentTime < 0
      @currentTime = 0


# Dashboard loaded and ready
Dashing.on 'ready', ->
  # If multiple widgets per list item, switch them periodically
  $('.gridster li').each (index, listItem) ->
    $listItem = $(listItem)


    # If timer is complete, trigger alert
    if @currentTime is 0
      @pause()
      @resetCountdown()
      return

