Skip to content

Commit aaad83c

Browse files
committed
Example for compare
1 parent 834d935 commit aaad83c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ if( $('#foo').compare($('#bar')) & 4 ) {
148148
}
149149
{% endhighlight %}
150150

151-
This is useful to rapidly compare element positions which is common when widgets can reorder themselves (drag-drop) or with nested widgets (trees).
151+
This is useful to rapidly compare element positions which is common when widgets can reorder themselves (drag-drop) or with nested widgets (trees). In the following example, select two elements to see how they compare to each other and what bitmask the result represents:
152+
153+
<iframe style="width: 100%; height: 520px" src="http://jsfiddle.net/n5b5q/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0">JSFiddle</iframe>
152154

153155
## cookie `$.cookie(name, [value], [options]) -> Object|String`
154156

@@ -527,7 +529,7 @@ The following key names are mapped by default:
527529

528530
The following example shows the keyname for `keydown`, `keyup` and `keypress` events on the input field:
529531

530-
<iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/9eE7D/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0">JSFiddle</iframe>
532+
<iframe style="width: 100%; height: 230px" src="http://jsfiddle.net/9eE7D/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0">JSFiddle</iframe>
531533

532534
## pause
533535

0 commit comments

Comments
 (0)