diff --git a/examples/index.html b/examples/index.html index b49a053..527acd9 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1,11 +1,11 @@ - - -
+ + + - - + + - + @@ -24,7 +24,7 @@ table {width:100%;border-collapse:collapse;} td { border: 1px solid #eee; padding: 15px; } td pre { margin: 0; } - + /* Example 2 (login form) */ .login_form.modal { border-radius: 0; @@ -32,7 +32,7 @@ padding: 0; font-family: "Lucida Grande", Verdana, sans-serif; } - + .login_form h3 { margin: 0; padding: 10px; @@ -41,9 +41,9 @@ background: -moz-linear-gradient(top, #2e5764, #1e3d47); background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #1e3d47),color-stop(1, #2e5764)); } - + .login_form.modal p { padding: 20px 30px; border-bottom: 1px solid #ddd; margin: 0; - background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #eee),color-stop(1, #fff)); + background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #eee),color-stop(1, #fff)); overflow: hidden; } .login_form.modal p:last-child { border: none; } @@ -55,17 +55,17 @@ border: 1px solid #ddd; width: 200px; } - - + + .part { display: none; } - +the simplest modal you ever did see. – Code on GitHub »
rel="modal:open"
and set the href
attribute to the modal's DOM id.rel="modal:open"
and set the href
attribute to the modal's DOM id.<!DOCTYPE html>
<html>
@@ -116,8 +116,8 @@ Example 1: Open & Close with links
-
-
+
+
Example 2: styled login form & events
@@ -160,24 +160,24 @@ Example 4: AJAX
$(html).appendTo('body').modal();
});
});
-
+
<!-- AJAX response must be wrapped in the modal's root class. -->
<div class="modal">
<p>Second AJAX Example!</p>
</div>
-
-If you want more spinner styles, check out ajaxload.info.
+ +If you want more spinner styles, check out ajaxload.info.
This example demonstrates how to disable the default methods of closing the modal: - +
$("#sticky").modal({
escapeClose: false,
clickClose: false,
showClose: false
});
-
-
+
+
If you do this, be sure to provide the user with an alternate method of closing the window.
@@ -201,14 +201,32 @@I'm the third modal. You get the idea.
This example shows how you can do a simple fade by specifying the fadeDuration
option.
$("#fade").modal({
+ fadeDuration: 100
+});
+
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, + quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo + consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse + cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non + proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+