com web/php: Easter eggs: js/common.js
| From: | Hannes Magnusson | Date: | Sun, 29 Dec 2013 05:59:33 +0000 |
| Subject: | com web/php: Easter eggs: js/common.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17875@lists.php.net to get a copy of this message | ||
Commit: ae561b8a7a656768c5dc160190fef434312c5965
Author: Hannes Magnusson <bjori@mongodb.com> 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()
{