Live data from Hacker News

Animating URLs with JavaScript and Emojis

matthewrayfield.com

31–40 of 173 posts

Re: Animating URLs with JavaScript and Emojis

#32
post #17

This is very cute and all but... you know... don't actually do this! Please. Even if you make it so that it doesn't break the back button or history, URLs are things that people copy and paste and send to people. They are put into Word-documents, bookmarks and archive.org. It's not a place for dynamic animations. URLs should be static, simple, and as short as is reasonable.

Would you approve animating the title?

Re: Animating URLs with JavaScript and Emojis

#37

Cool! It did however completely break my back button....

Somewhat fixable (this is for moon.html):

            var n = 0;

            function loop() {
                location.hash = f[Math.floor((Date.now()/100)%f.length)];
                if (n++ > f.length) {
                    n = 0;
                    window.history.go(-f.length);
                }
                setTimeout(loop, 50);
            }
This actually doesn't work properly and jumps back too far sometimes because the URLs move with time and not a counter, but you get the idea.

Re: Animating URLs with JavaScript and Emojis

#38

This reminds me of putting marquees in the window.status like 20 years ago

The spirit is there definitely.

My take is that it's only a matter of time before emojis creep into every area where text is used.

Let's hope they won't ever become a mainstream part of programming languages.

Re: Animating URLs with JavaScript and Emojis

#39
post #30

Company checks on Employee's search history So what's so interesting about matthewrayfield.com that you had to go there 59,000 times in the last hour?

Updating the hash of a URL doesn't (or shouldn't) make a request to the server, so your abstract employee hero is safe.
Post reply on HN