Commit: ae561b8a7a656768c5dc160190fef434312c5965 Author: Hannes Magnusson <[email protected]> Sat, 28 Dec 2013 21:59:33 -0800 Parents: 0337e3e25e089f357372d618d776319941fcc50c Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=ae561b8a7a656768c5dc160190fef434312c5965 Log: Easter eggs Changed paths: M js/common.js Diff: diff --git a/js/common.js b/js/common.js index b817556..0909c12 100755 --- a/js/common.js +++ b/js/common.js @@ -265,6 +265,37 @@ Mousetrap.bind("/", function(e) { } $("input[type=search]").focus() }); +var rotate = 0; +Mousetrap.bind("r o t a t e enter", function(e) { + rotate += 90; + if (rotate > 360) { + rotate = 0; + } + $("html").css("-webkit-transform", "rotate(" + rotate + "deg)"); + $("html").css("-moz-transform", "rotate(" + rotate + "deg)"); + $("html").css("-o-transform", "rotate(" + rotate + "deg)"); + $("html").css("-ms-transform", "rotate(" + rotate + "deg)"); + $("html").css("transform", "rotate(" + rotate + "deg)"); +}); +var scale = 1; +Mousetrap.bind("m i r r o r enter", function(e) { + scale *= -1; + $("html").css("-webkit-transform", "scaleX(" + scale + ")"); + $("html").css("-moz-transform", "scaleX(" + scale + ")"); + $("html").css("-o-transform", "scaleX(" + scale + ")"); + $("html").css("-ms-transform", "scaleX(" + scale + ")"); + $("html").css("transform", "scaleX(" + scale + ")"); +}); +Mousetrap.bind("I space h a t e space P H P enter", function(e) { + window.location = "http://python.org"; +}); +Mousetrap.bind("I space l o v e space P H P enter", function(e) { + flashMessage({text: 'Live long and prosper !'}); +}); +Mousetrap.bind("l o g o enter", function(e) { + var time = new Date().getTime(); + $(".brand img").attr("src", "/images/logo.php?refresh&time=" + time); +}); $(window).load(function() { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
