Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 691 Bytes

File metadata and controls

52 lines (38 loc) · 691 Bytes

JohnCena.JS

JohnCena.JS Bring the full power of John Cena to your webapp

Just include the john-cena.js file and make sure you have a class="Button" in one of your tags

<script src="john-cena.js"></script>

and

<script>
$(window).load(function() {
	$('.button').cena();
});
</script>

For the Konami Code version

<script>
$(window).load(function() {
	$('.button').cena({
		'enterOn': 'konami-code'
	});
});
</script>

For the Timer version

<script>
$(window).load(function() {
	$('.button').cena({
		'enterOn': 'timer',
		'delayTime': 2000
	});
});
</script>

Enjoy!