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

Version Path
survivalkit-0.3.4 templates/project/sources/flickrbomb/js/app.js
survivalkit-0.3.3 templates/project/sources/flickrbomb/js/app.js
survivalkit-0.3.3 templates/drupal/sources/flickrbomb/js/app.js
survivalkit-0.3.2 templates/project/sources/flickrbomb/js/app.js
survivalkit-0.3.1 templates/project/sources/flickrbomb/js/app.js
survivalkit-0.3 templates/project/sources/flickrbomb/js/app.js
survivalkit-0.2.1 templates/project/sources/flickrbomb/js/app.js
survivalkit-0.1 templates/project/sources/flickrbomb/js/app.js