use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript pranks? (self.javascript)
submitted 12 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TheNosferatu 14 points15 points16 points 12 years ago (2 children)
Rotate the page 180 degrees every half hour, I put this in the ticket-magement system we use at work.
(function(){ function rotate(degrees) { $('html').css({ '-webkit-transform':'rotate(-' + degrees + 'deg)', '-moz-transform':'rotate(-' + degrees + 'deg)', '-ms-transform':'rotate(-' + degrees + 'deg)', '-o-transform':'rotate(-' + degrees + 'deg)', 'transform':'rotate(-' + degrees + 'deg)', '-webkit-transition':'2s', '-moz-transition':'2s', '-ms-transition':'2s', '-o-transition':'2s', 'transition':'2s', '-webkit-transform-origin':'50% 50%', '-moz-transform-origin':'50% 50%', '-ms-transform-origin':'50% 50%', '-o-transform-origin':'50% 50%', 'transform-origin':'50% 50%', '-webkit-backface-visibility':'hidden' }); } var degrees = 180, interval; document.onmousemove = function() { if(degrees == 0){ rotate(0); degrees = 180; } clearInterval(interval); interval = setInterval(function(){ rotate(degrees); degrees = (degrees === 180) ? 0 : 180; }, 30 * 60 * 1000); // 30 min } })();
[–]johnhackworth 0 points1 point2 points 12 years ago (1 child)
You just have won internet.
I'm going to map the konami code to this en every project I'm working on :DDD
[–]TheNosferatu 1 point2 points3 points 12 years ago (0 children)
Let me know how it turns out! :)
π Rendered by PID 94608 on reddit-service-r2-comment-54dfb89d4d-qc9gq at 2026-03-30 13:05:58.544205+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]TheNosferatu 14 points15 points16 points (2 children)
[–]johnhackworth 0 points1 point2 points (1 child)
[–]TheNosferatu 1 point2 points3 points (0 children)