Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tshaddox
on Jan 18, 2012
|
parent
|
context
|
favorite
| on:
Wikipedia blackout page
Since you're using jQuery, you might as well just use show() and hide() or remove().
th
on Jan 18, 2012
|
next
[–]
Also chaining:
https://gist.github.com/1631368
tshaddox
on Jan 18, 2012
|
parent
|
next
[–]
I think that looks and scans worse. I didn't count characters, but it also seems like more characters. I bet it performs worse too (not that performance matters in this case).
WickyNilliams
on Jan 18, 2012
|
prev
|
next
[–]
or even better, use toggle():
jQuery("#mw-sopaOverlay, .noprint, #footer, #content").toggle();
artursapek
on Jan 18, 2012
|
prev
[–]
And execute the first command just on $('div')
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: