Skip to content
This repository was archived by the owner on Mar 7, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions templates/project/assets/javascripts/application.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ Dashing.on 'ready', ->
Dashing.widget_margins ||= [5, 5]
Dashing.widget_base_dimensions ||= [300, 360]
Dashing.numColumns ||= 4
# hide mouse after 5 sec of inactivity
timeout = null
$(document).on "mousemove", ->
if timeout isnt null
$("body").css cursor: ""
$(".gs_w").css cursor: ""
clearTimeout timeout
timeout = setTimeout(->
timeout = null
$("body").css cursor: "none"
$(".gs_w").css cursor: "none"
, 5000)

contentWidth = (Dashing.widget_base_dimensions[0] + Dashing.widget_margins[0] * 2) * Dashing.numColumns

Expand Down