Skip to content

Commit 0f709e7

Browse files
Updates docs
1 parent 97930a1 commit 0f709e7

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

index.html

+8-24
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ <h4>Handling Time eBook</h4>
9999
<h4>Subscribe to Blog and Twitter</h4>
100100
<p><a href="http://trentrichardson.com" title="Subscribe to TrentRichardson.com via email">Subscribe to my blog via email</a> and follow <a href="http://twitter.com/practicalweb" title="Follow Me on Twitter">@PracticalWeb</a> on Twitter. I post for nearly every new version, so you know about updates.</p>
101101
<div class="clear"></div>
102+
<br />
102103

103104
<h3>Download</h3>
104105
<p><a href="jquery-ui-timepicker-addon.js" title="Download Timepicker Addon">Download Timepicker Addon</a></p>
@@ -116,7 +117,8 @@ <h3>Download</h3>
116117
.ui-timepicker-rtl dl { text-align: right; }
117118
.ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }
118119
</pre>
119-
120+
<br />
121+
120122
<h3>Requirements</h3>
121123
<p>You also need to include jQuery and jQuery UI with datepicker and slider wigits. You should include them in your page in the following order:</p>
122124
<ol>
@@ -125,7 +127,7 @@ <h3>Requirements</h3>
125127
<li>Timepicker</li>
126128
</ol>
127129

128-
130+
<br />
129131
<h3>Version</h3>
130132
<p>Version 1.3</p>
131133

@@ -816,38 +818,20 @@ <h3 id="rest_examples">Time Restraints</h3>
816818
maxDate: new Date(2010, 11, 31, 17, 30)
817819
});
818820
</pre>
819-
</div>
821+
</div>
820822

821823
<!-- ============= example -->
822824
<div class="example-container">
823-
<p>Restrict a start and end date with timepicker's built in restraint methods:</p>
825+
<p>Restrict a start and end date by using onSelect and onClose events for more control over functionality:</p>
826+
<p>For more examples and advanced usage grab the <a href="http://trentrichardson.com/ebooks/handling-time/" title="Handling Time eBook">Handling Time eBook</a>.</p>
824827
<div>
825828
<input type="text" name="rest_example_4_start" id="rest_example_4_start" value="" />
826829
<input type="text" name="rest_example_4_end" id="rest_example_4_end" value="" />
827-
</div>
830+
</div>
828831
<pre>
829832
var startDateTextBox = $('#rest_example_4_start');
830833
var endDateTextBox = $('#rest_example_4_end');
831834

832-
$.timepicker.datetimeRange(startDateTextBox, endDateTextBox, {
833-
minInterval: (1000*60*60),
834-
start: { }, // start datetime options
835-
end: { } // end datetime options
836-
});
837-
</pre>
838-
</div>
839-
840-
<!-- ============= example -->
841-
<div class="example-container">
842-
<p>Restrict a start and end date by using onSelect and onClose events for more control over functionality:</p>
843-
<div>
844-
<input type="text" name="rest_example_5_start" id="rest_example_5_start" value="" />
845-
<input type="text" name="rest_example_5_end" id="rest_example_5_end" value="" />
846-
</div>
847-
<pre>
848-
var startDateTextBox = $('#rest_example_5_start');
849-
var endDateTextBox = $('#rest_example_5_end');
850-
851835
startDateTextBox.datetimepicker({
852836
onClose: function(dateText, inst) {
853837
if (endDateTextBox.val() != '') {

0 commit comments

Comments
 (0)