Skip to content

Commit

Permalink
Updated instructions on demo page for notify function
Browse files Browse the repository at this point in the history
  • Loading branch information
walmik committed Jul 22, 2014
1 parent 8697b0c commit ca1126a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<body>`
<div class="container">
<h1>jQuery Timer</h1>
<p>Start/Stop/Resume a timer inside any HTML element.</p>
<p>Start/Stop/Resume/Remove a timer inside any HTML element. <br>
Get notified at a set time or at regular intervals.</p>
<br /><br />
<h4>Demo</h4>
<div class='row'>
Expand All @@ -33,7 +34,7 @@ <h4>Usage</h4>
<tr>
<td>Start:</td>
<td>
<pre>$("#divId").timer("start")</pre>
<pre>$("#divId").timer() <em>//Same as $('#divId').timer('start')</em></pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -63,21 +64,21 @@ <h4>Usage</h4>
<tr>
<td>Get notified:</td>
<td>
<pre>$('div').timer("notify", "5m"); <em>//shows an alert box in 5 minutes</em></pre>
<pre>$("#divId").timer("notify", "5m"); <em>//start a timer & show an alert box in 5 minutes</em></pre>
</td>
</tr>
<tr>
<td>Get notified:</td>
<td>
<pre>$('div').timer("notify", "5m", "Hello World!");<em>//shows an alert box with the text Hello World in 5 minutes</em></pre>
<pre>$("#divId").timer("notify", "5m", "Hello World!");<em>//start a timer & show an alert box with the text Hello World in 5 minutes</em></pre>
</td>
</tr>
<tr>
<td>Get notified:</td>
<td>
<pre>
<em>//executes the provided function in 5 minutes</em>
$('div').timer("notify", "5m", function() {
<em>//start a timer & execute a function in 15 minutes & 30 seconds</em>
$("#divId").timer("notify", "15m30s", function() {
alert('Howdy!');
});
</pre>
Expand Down

0 comments on commit ca1126a

Please sign in to comment.