- commit
- f593eb6e6a2f2d5183262cf59bad78331a3b5263
- parent
- a4f62c0a39fbcc6e8ac5ea2d0fe369e025323efd
- Author
- leaf corcoran <leafot@gmail.com>
- Date
- 2014-11-24 07:11
add semicolons to site
Diffstat
| M | site/index.html | 16 | ++++++++-------- |
1 files changed, 8 insertions, 8 deletions
diff --git a/site/index.html b/site/index.html
@@ -41,7 +41,7 @@ no more worrying if a sticky element will accidentally cover your footer. 41 41 <button>Scroll it!</button> 42 42 $markdown{[[ 43 43 ```js44 -1 $("#sidebar").stick_in_parent()-1 44 $("#sidebar").stick_in_parent(); 45 45 ``` 46 46 ]]} 47 47 </div> @@ -68,7 +68,7 @@ Have a lot of sticky columns, or different sticky portions of the page? Call 68 68 <button>Scroll it!</button> 69 69 $markdown{[[ 70 70 ```js71 -1 $(".sticky_column").stick_in_parent()-1 71 $(".sticky_column").stick_in_parent(); 72 72 ``` 73 73 ]]} 74 74 </div> @@ -93,7 +93,7 @@ don't take up the entire height of their parent. 93 93 <button>Scroll it!</button> 94 94 $markdown{[[ 95 95 ```js96 -1 $("#sidebar, #main_column").stick_in_parent()-1 96 $("#sidebar, #main_column").stick_in_parent(); 97 97 ``` 98 98 ]]} 99 99 </div> @@ -119,7 +119,7 @@ sticky element be too tall or the user's resolution too small. 119 119 <button>Scroll it!</button> 120 120 $markdown{[[ 121 121 ```js122 -1 $("#sidebar").stick_in_parent()-1 122 $("#sidebar").stick_in_parent(); 123 123 ``` 124 124 ]]} 125 125 </div> @@ -144,9 +144,9 @@ To install include `jquery.sticky-kit.js` after including jQuery. 144 144 Usage: 145 145 146 146 ```js147 -1 $("#sticky_item").stick_in_parent()-1 147 $("#sticky_item").stick_in_parent(); 148 148 // or149 -1 $("#sticky_item").stick_in_parent(options)-1 149 $("#sticky_item").stick_in_parent(options); 150 150 ``` 151 151 152 152 You can pass a hash of options to configure how Sticky Kit works. The following @@ -225,7 +225,7 @@ You can manually cause a recalculation to happen by triggering an event on 225 225 `document.body`: 226 226 227 227 ```js228 -1 $(document.body).trigger("sticky_kit:recalc")-1 228 $(document.body).trigger("sticky_kit:recalc"); 229 229 ``` 230 230 231 231 Typically you only need to trigger a recalculation if you are changing the @@ -248,7 +248,7 @@ Setting it to 1 will cause a recalculation to happen on every scroll event, 248 248 preventing the state from ever being out of date. 249 249 250 250 ```js251 -1 $("#sticky_item").stick_in_parent({recalc_every: 1})-1 251 $("#sticky_item").stick_in_parent({recalc_every: 1}); 252 252 ``` 253 253 254 254 ### About Columns