Sha256: 234b45d6365445ff88f690443656ed30528efcb9753890e7114cb496510719c2
Contents?: true
Size: 702 Bytes
Versions: 40
Compression:
Stored size: 702 Bytes
Contents
$(window).bind load: -> adjustFooter() clickChecker() resize: -> adjustFooter() clickChecker() adjustFooter = -> $("footer").css({ 'margin-top': calcHeight() + 'px' }) clickChecker = -> checkClicks(".close-button", 250) checkClicks("a.asset-link.clearfix", 1) checkClicks = (tag_to_check, delay) -> $(tag_to_check).click -> i = delay while i >= 0 readjust(i) i-- readjust = (delay) -> setTimeout -> adjustFooter() , delay calcHeight = -> footer = $("footer") position = footer.position() footer_top = if position is undefined then 0 else position.top height = $(window).height() - footer_top - footer.height() Math.max(height, 50)
Version data entries
40 entries across 40 versions & 1 rubygems