Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 6753

A JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.

2 votes

More efficient way of doing this hide()/show() jQuery

Try this: jsBin demo $('.container').hide(); $('.btn').click(function() { $('.container').hide(); $('#'+this.id.split('-')[1]+'_container').show(); });
Roko C. Buljan's user avatar
1 vote
Accepted

Setting header color on scroll for each post

var r = this.getBoundingClientRect(); return r.top + r.height - 100 > 0; // ...matches this }) (100 is the header height in this demo; set as desired or calculate dynamically) Now, since jQuery … solid currentColor; } #content{ margin-top:100px; } section{ min-height: 1000px; min-height: calc(100vh - 100px); border-top:1px solid #000; } <script src="https://ajax.googleapis.com/ajax/libs/jquery
Roko C. Buljan's user avatar