Skip to content

Commit df8d513

Browse files
2 parents cbf20d2 + b838a21 commit df8d513

File tree

2 files changed

+1580
-1506
lines changed

2 files changed

+1580
-1506
lines changed

index.html

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
h1,h2,h3{ margin: 10px 0; }
1717
h1{}
1818
h2{ color: #f66; }
19-
h3{ color: #7b94b2; }
19+
h3{ color: #6b84a2; }
2020
p{ margin: 10px 0; }
2121
a{ color: #7b94b2; }
2222
ul,ol{ margin: 10px 0 10px 40px; }
2323
li{ margin: 4px 0; }
2424
dl.defs{ margin: 10px 0 10px 40px; }
2525
dl.defs dt{ font-weight: bold; line-height: 20px; margin: 10px 0 0 0; }
2626
dl.defs dd{ margin: -20px 0 10px 160px; padding-bottom: 10px; border-bottom: solid 1px #eee;}
27-
pre{ font-size: 12px; padding: 0 0 0 10px; margin: 10px 0; border-left: solid 5px #9EC45F; overflow: auto; }
27+
pre{ font-size: 12px; line-height: 16px; padding: 5px 5px 5px 10px; margin: 10px 0; background-color: #e4f4d4; border-left: solid 5px #9EC45F; overflow: auto; }
2828

2929
.wrapper{ background-color: #ffffff; width: 800px; border: solid 1px #eeeeee; padding: 20px; margin: 0 auto; }
3030
#tabs{ margin: 20px -20px; border: none; }
@@ -114,6 +114,9 @@ <h3>Requirements</h3>
114114
<li>Timepicker</li>
115115
</ol>
116116

117+
<h3>Highly Recommended</h3>
118+
<p><a href="http://trentrichardson.com" title="Subscribe to TrentRichardson.com via email">Subscribe to my blog via email</a>. I post an article for nearly every timepicker update, so you know when a new one is released.</p>
119+
117120
<h3>Version</h3>
118121
<p>Version 1.0.3</p>
119122

@@ -130,7 +133,7 @@ <h3>Version</h3>
130133
<div id="tp-options">
131134
<h2>Options</h2>
132135

133-
<p>The timepicker does inherit all options from datepicker, however there are many options that are shared by them both and many timepicker only options:</p>
136+
<p>The timepicker does inherit all options from datepicker. However, there are many options that are shared by them both, and many timepicker only options:</p>
134137

135138
<h3>Localization Options</h3>
136139
<dl class="defs">
@@ -150,7 +153,7 @@ <h3>Localization Options</h3>
150153
<dd><em>Default: ['PM', 'P'], A Localization Setting</em> - Array of strings to try and parse against to determine PM.</dd>
151154

152155
<dt>timeFormat</dt>
153-
<dd><em>Default: "hh:mm tt", A Localization Setting</em> - String of format tokens to be replaced with the time. <a href="#tp-formatting" title="Formatting">See Formatting</a>.</dd>
156+
<dd><em>Default: "hh:mm tt", A Localization Setting</em> - String of format tokens to be replaced with the time. <a href="#tp-formatting" title="Formatting" onclick="$('#tabs').tabs('select',2);">See Formatting</a>.</dd>
154157

155158
<dt>timeSuffix</dt>
156159
<dd><em>Default: "", A Localization Setting</em> - String to place after the formatted time.</dd>
@@ -468,7 +471,7 @@ <h3 id="basic_examples">Basic Initializations</h3>
468471
<input type="text" name="basic_example_2" id="basic_example_2" value="" />
469472
</div>
470473
<pre>
471-
$('#basic_example_2').timepicker({});
474+
$('#basic_example_2').timepicker();
472475
</pre>
473476
</div>
474477

@@ -581,7 +584,7 @@ <h3 id="slider_examples">Slider Modifications</h3>
581584
<div class="example-container">
582585
<p>Add sliderAccess plugin for touch devices:</p>
583586
<div>
584-
<div id="slider_example_3"></div>
587+
<input type="text" name="slider_example_3" id="slider_example_3" value="" />
585588
</div>
586589
<pre>
587590
$('#slider_example_3').datetimepicker({
@@ -632,6 +635,7 @@ <h3 id="alt_examples">Alternate Fields</h3>
632635
$('#alt_example_3').datetimepicker({
633636
altField: "#alt_example_3_alt",
634637
altFieldTimeOnly: false,
638+
altFormat: "yy-mm-dd",
635639
altTimeFormat: "h:m",
636640
altSeparator: " @ "
637641
});
@@ -736,15 +740,17 @@ <h3 id="utility_examples">Utilities</h3>
736740
<div class="example-container">
737741
<p>Get and Set Datetime:</p>
738742
<div>
739-
<input type="text" name="utility_example_1" id="utility_example_1" value="" />
743+
<input type="text" name="utility_example_1" id="utility_example_1" value="08/25/2012 08:41 pm" />
740744
<button id="utility_example_1_setdt" value="1">Set Datetime</button>
741745
<button id="utility_example_1_getdt" value="1">Get Datetime</button>
742746
</div>
743747

744748
<pre>
745749
var ex13 = $('#utility_example_1');
746750

747-
ex13.datetimepicker();
751+
ex13.datetimepicker({
752+
ampm: true
753+
});
748754

749755
$('#utility_example_1_setdt').click(function(){
750756
ex13.datetimepicker('setDate', (new Date()) );
@@ -790,9 +796,9 @@ <h3 id="utility_examples">Utilities</h3>
790796
</div>
791797

792798
<pre>
793-
$('#utility_example_3').text(
794-
JSON.stringify( $.datepicker.parseTime('hh:mm:ss:l z', "14:36:21:765 +2000", { ampm: false }) )
795-
);
799+
$('#utility_example_3').text(JSON.stringify(
800+
$.datepicker.parseTime('hh:mm:ss:l z', "14:36:21:765 +2000", { ampm: false })
801+
));
796802
</pre>
797803
</div>
798804

0 commit comments

Comments
 (0)