mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
change locale on test page
This commit is contained in:
parent
c2851bc2a9
commit
89a7db8985
13
index.html
13
index.html
@ -63,8 +63,16 @@
|
|||||||
<h3>Dark theme</h3>
|
<h3>Dark theme</h3>
|
||||||
<p>thank for this <a href="https://github.com/lampslave">https://github.com/lampslave</a></p>
|
<p>thank for this <a href="https://github.com/lampslave">https://github.com/lampslave</a></p>
|
||||||
<input type="text" id="datetimepicker_dark"/>
|
<input type="text" id="datetimepicker_dark"/>
|
||||||
<h3>Date time format</h3>
|
<h3>Date time format and locale</h3>
|
||||||
<p></p>
|
<p></p>
|
||||||
|
<select id="datetimepicker_format_locale">
|
||||||
|
<option value="en">English</option>
|
||||||
|
<option value="de">German</option>
|
||||||
|
<option value="ru">Russian</option>
|
||||||
|
<option value="uk">Ukrainian</option>
|
||||||
|
<option value="fr">French</option>
|
||||||
|
<option value="es">Spanish</option>
|
||||||
|
</select>
|
||||||
<input type="text" value="D, l, M, F, Y-m-d H:i:s" id="datetimepicker_format_value"/>
|
<input type="text" value="D, l, M, F, Y-m-d H:i:s" id="datetimepicker_format_value"/>
|
||||||
<input type="button" value="applay =>" id="datetimepicker_format_change"/>
|
<input type="button" value="applay =>" id="datetimepicker_format_change"/>
|
||||||
<input type="text" id="datetimepicker_format" class="input input-wide"/>
|
<input type="text" id="datetimepicker_format" class="input input-wide"/>
|
||||||
@ -82,6 +90,9 @@ $('#datetimepicker_format').datetimepicker({value:'2015/04/15 05:03', format: $(
|
|||||||
$("#datetimepicker_format_change").on("click", function(e){
|
$("#datetimepicker_format_change").on("click", function(e){
|
||||||
$("#datetimepicker_format").data('xdsoft_datetimepicker').setOptions({format: $("#datetimepicker_format_value").val()});
|
$("#datetimepicker_format").data('xdsoft_datetimepicker').setOptions({format: $("#datetimepicker_format_value").val()});
|
||||||
});
|
});
|
||||||
|
$("#datetimepicker_format_locale").on("change", function(e){
|
||||||
|
$.datetimepicker.setLocale($(e.currentTarget).val());
|
||||||
|
});
|
||||||
|
|
||||||
$('#datetimepicker').datetimepicker({
|
$('#datetimepicker').datetimepicker({
|
||||||
dayOfWeekStart : 1,
|
dayOfWeekStart : 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user