Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ianstormtaylor
on Nov 13, 2012
|
parent
|
context
|
favorite
| on:
Show HN: Socrates.io - clean and shareable markdow...
Just fixed it to use the page visibility API to do just that. Thanks for the idea!
benjoffe
on Nov 13, 2012
[–]
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.
ianstormtaylor
on Nov 13, 2012
|
parent
[–]
Yup good call, the first call to the interval shouldn't assume focus
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: