News for hackers. Stuff that matters.
Re:Show HN: Socrates.io - clean and shareable markdown by infogulch on Tuesday November 13, 2012 @03:21PM (#4780367)
Oh my god. That website has javascript that adds and removes a pipe "|" to the end of the page title, and it looks like a blinking caret for text input.

My OCD is going insane.

Re:Show HN: Socrates.io - clean and shareable markdown by JasonFruit on Tuesday November 13, 2012 @03:26PM (#4780397)
The effect would be a lot nicer if it stopped when the tab lost focus. I would prefer not doing it at all, but my tastes are not everyone's.
Re:Show HN: Socrates.io - clean and shareable markdown by ianstormtaylor on Tuesday November 13, 2012 @03:42PM (#4780485)
Just fixed it to use the page visibility API to do just that. Thanks for the idea!
Re:Show HN: Socrates.io - clean and shareable markdown by benjoffe on Tuesday November 13, 2012 @05:11PM (#4780926)
Looks like it only alternates between the two states (flashing and not flashing), so if the page is opened as a new tab (i.e. not focused to begin with) then the flashing occurs when the tab is not focused.
Re:Show HN: Socrates.io - clean and shareable markdown by ianstormtaylor on Tuesday November 13, 2012 @05:39PM (#4781053)
Yup good call, the first call to the interval shouldn't assume focus
Re:Show HN: Socrates.io - clean and shareable markdown by fmoralesc on Tuesday November 13, 2012 @04:19PM (#4780666)
If I place it as an application tab in Firefox (16), it will highlight the tab because it assumes the content has changed... it doesn't happen always, though.