Sha256: e89a1727131690e27d63be2362ae14ba8b3390b6c5213fd2b9e3f325ddb89559
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
// Generated by CoffeeScript 1.6.1 /* * Requires jquery.responsiveText.js */ $(function() { return $('.responsive').not('table').each(function(index, object) { var $this, compression, max, min, scrollReset, scrollTime; compression = 10; min = 10; max = 200; scrollTime = 650; scrollReset = 200; compression = parseFloat($(this).attr('data-compression') || compression); min = parseFloat($(this).attr('data-min') || min); max = parseFloat($(this).attr('data-max') || max); $(object).responsiveText({ compressor: compression, minSize: min, maxSize: max }); $this = $(this); return $(this).hover((function() { var difference; difference = $this.get(0).scrollWidth - $this.width(); console.log(difference); if (difference > 0) { return $this.stop().animate({ "text-indent": -difference }, scrollTime); } }), function() { return $this.stop().animate({ "text-indent": 0 }, scrollReset); }); }); });
Version data entries
2 entries across 2 versions & 1 rubygems