Sha256: 7e6bbb8513c1a9697ece0fc1099602970951dee378588236b1e6c662dea06517
Contents?: true
Size: 656 Bytes
Versions: 8
Compression:
Stored size: 656 Bytes
Contents
(function($){ function demoLoad (){ var currentValue = false, el = $('#demo-content span'); el.focus(function(){ currentValue = $(this).text(); }); el.keypress(function (e) { if (e.which == 13) { e.preventDefault(); updateIMG($(this)); } }) el.focusout(function() { updateIMG($(this)); }); function updateIMG(argu) { if (argu.text() !== currentValue) { var keywords = $('#keywords').text(); $('#demo-splash').html('<img src="flickr://' + keywords + '" width="940px" height="250px" style="display:none"><span>Loading New Demo Content</span>'); startFlickrBomb(); } else { return false; } } } demoLoad(); })(jQuery);
Version data entries
8 entries across 7 versions & 1 rubygems