Live data from Hacker News

Lemmings 404 page

romainbrasier.fr

71–78 of 78 posts

Re: Lemmings 404 page

#71

Half on-topic, half off-topic: WebGL Lemmings port: http://webglgaming.com/lemmings/index.php

Actually, that is a copy of DHTML lemmings from before the age of WebGL, Ajax, CSS sprites (alistapart only came up with an article about CSS sprites a year later), html5, or any of that fancy modern stuff kids these days play with. The original is at http://www.elizium.nu/scripts/lemmings/ . And background info / blogpost, written seven years later by the author: http://crisp.tweakblogs.net/blog/3881/dhtml-lemmings-…

Here's a more up-to-date version which uses HTML5 and AJAX - http://bombsite.org/jslems/

Re: Lemmings 404 page

#72
post #45

I've said it before, but: What's the deal with 404 pages? If the content has moved, I should get a 30x redirect. If the server has a way of guessing what I wanted, I should get 300 Multiple Choices. If the server knows that what I'm looking for isn't anywhere, I should get 410 Gone. 404 is supposed to mean that the server has no idea what I'm looking for, no idea how to find it, no idea where to look. In that case, I…

What it boils down to is that 403, 404, 500, etc. pages are there to identify a problem loading the resource you're after. In the case of a 500, I might agree, but with the 404, you're getting what it's supposed to give you, and that's a heads up that the url you were shooting for was not found. Some companies get creative while others create useful links and guesses, but either way, you got the intended message, "not found".

Re: Lemmings 404 page

#73
post #48

Save them all! (firefox only) MutationObserver(function(event) { $(event[0].addedNodes[0]).mouseover(); }).observe($('body')[0], {childList: true}); $('img').mouseover();

I just resized my browser to be about an inch wide, and then they all fall in a straight line past the cursor. I guess you could call that a workaround :-)

hmm... i was planning to run out and buy a taller monitor, but your workaround just saved me hours!

Re: Lemmings 404 page

#74

var ims = document.getElementsByTagName('img'); var event = document.createEvent("MouseEvent"); event.initMouseEvent("mouseover", true, true, window); for(var i=0;i :(

setInterval( function() { var ims = document.getElementsByTagName('img'); var event = document.createEvent("MouseEvent"); event.initMouseEvent("mouseover", true, true, window); for(var i=0;i<ims.length; i++){ ims[i].dispatchEvent(event); }}, 2000 )

Re: Lemmings 404 page

#75
post #51

Earlier quoted context omitted.

You're spot on that's the cleanest conceptual way to do it in jQuery. In more recent versions of jQuery, though, $.live is technically deprecated (1.7+). The equivalent new syntax is: $(document).on('mouseover', 'img', function() {});

That creates a event handler for all images on mouseover, even images that haven't been created yet. You want to trigger the mouseover event, not bind to it. And you want to trigger it after the image has been inserted. Unfortunately there's no jquery event for dom insertions. But on firefox you can use a MutationObserver: MutationObserver(function(event) { $(event[0].addedNodes[0]).mouseover(); }).observe($('body')[…

Whoops, you're 100% correct.

Re: Lemmings 404 page

#76
post #45

I've said it before, but: What's the deal with 404 pages? If the content has moved, I should get a 30x redirect. If the server has a way of guessing what I wanted, I should get 300 Multiple Choices. If the server knows that what I'm looking for isn't anywhere, I should get 410 Gone. 404 is supposed to mean that the server has no idea what I'm looking for, no idea how to find it, no idea where to look. In that case, I…

You're heartless, those poor lemmings were plummeting to their deaths!

I didn't have a choice, according to CFAA I was probably breaking the law just viewing the page!

Re: Lemmings 404 page

#77
post #45

I've said it before, but: What's the deal with 404 pages? If the content has moved, I should get a 30x redirect. If the server has a way of guessing what I wanted, I should get 300 Multiple Choices. If the server knows that what I'm looking for isn't anywhere, I should get 410 Gone. 404 is supposed to mean that the server has no idea what I'm looking for, no idea how to find it, no idea where to look. In that case, I…

You're heartless, those poor lemmings were plummeting to their deaths!

Don't you worry my friend, I saved them all: http://i.imgur.com/EbvgPyT.png
Post reply on HN