Skip to content

Commit

Permalink
Examples update
Browse files Browse the repository at this point in the history
  • Loading branch information
xfra35 authored and joonas-lahtinen committed Nov 17, 2015
1 parent 0ac5f7b commit d04a375
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
td { border: 1px solid #eee; padding: 15px; }
td pre { margin: 0; }

body > .modal {
display: none;
}

/* Example 2 (login form) */
.login_form.modal {
border-radius: 0;
Expand Down Expand Up @@ -134,8 +138,8 @@ <h3>Please login to continue</h3>

<hr />

<h2>Example 3: resizing</h2>
<p>This <a href="#ex3" rel="modal:open">example</a> shows how <code>resize()</code> can be invoked on a modal.</p>
<h2>Example 3: adjusting to content</h2>
<p>This <a href="#ex3" rel="modal:open">example</a> shows how modals are centered automatically. It also demonstrates how a vertical scrollbar appears whenever the modal content overflows.</p>
<div id="ex3" class="modal">
<p><a id="more" href="#more">More!</a></p>
<p>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.</p>
Expand Down Expand Up @@ -325,7 +329,6 @@ <h2>Example 10: Custom Class for Close Button</h2>

$('#more').click(function() {
$(this).parent().after($(this).parent().next().clone());
$.modal.resize();
return false;
});

Expand Down

0 comments on commit d04a375

Please sign in to comment.