Sha256: 5de065bf55df8ce90401d3cb9153c432e45aad3c3f87e791ccc632ac6c5eb07a
Contents?: true
Size: 568 Bytes
Versions: 15
Compression:
Stored size: 568 Bytes
Contents
window.percentage = applyPercentage: -> ($ '.percentage_img').each (index, element) -> width = ($ element).attr('data-width') percentage.animateGrowth(element, width * 3) animateGrowth: (domId, width, overGrow = false) -> overGrowth = width + 50 overGrowth = 300 if overGrowth > 300 if overGrow ($ domId).effect 'size', { to: { width: width } }, 1000 else ($ domId).effect 'size', { to: { width: overGrowth } }, 1000, -> percentage.animateGrowth domId, width, true jQuery -> percentage.applyPercentage()
Version data entries
15 entries across 15 versions & 1 rubygems