com web/php: Easter eggs: js/common.js
| From: | Paul Dragoonis | 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-22252@lists.php.net to get a copy of this message | ||
Commit: 1b9341df2c9002167cd77bdf5521381742d6208a
Author: Hannes Magnusson <bjori@mongodb.com> Sat, 28 Dec 2013 21:59:33 -0800
Parents: 1827b3bbb3942a85487ba6e4efe2924b446a64de
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=1b9341df2c9002167cd77bdf5521381742d6208a
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()
{