Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added type=number for input elements #257

Merged
merged 2 commits into from
Apr 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@
<p>
<script type="text/javascript">
document.write('<span class="hd">' + i18n.t('words.date') + ' ' + i18n.t('words.and') + ' ' + i18n.t('words.time.time') + ':</span>');
document.write('<input id="dd" size="3" name="dd" value="02" onblur="Evaluate()"/>.');
document.write('<input type="number" step="1" min="1" max="31" id="dd" size="3" name="dd" value="02" onblur="Evaluate()"/>.');
document.write('<select id="mm" name="mm" onchange="Evaluate()">');
for (var i = 0; i < moment.monthsShort().length; i++) {
document.write('<option value="monthNumber' + i + '">' + moment.monthsShort(i) + '</option>');
}
document.write('</select>');
</script>

<input id="yyyy" size="5" name="yyyy" value="2013" onblur="Evaluate()" />
<input type="number" step="1" id="yyyy" size="5" name="yyyy" value="2013" onblur="Evaluate()" />
&#160;
<input size="3" name="HH" value="22" onblur="Evaluate()" />:<input size="3" name="MM" value="21" onblur="Evaluate()" />
<input type="number" step="1" min="0" max="23" size="3" name="HH" value="22" onblur="Evaluate()" />:<input type="number" step="1" min="0" max="59" size="3" name="MM" value="21" onblur="Evaluate()" />
&#160;
<input size="10" name="wday" readonly="readonly" />
<input size="3" name="week" readonly="readonly" />
Expand Down Expand Up @@ -94,8 +94,8 @@
<p>
<script type="text/javascript">
document.write('<span class="hd">' + i18n.t('words.position') + ':</span>');
document.write(i18n.t('words.lat') + ': <input size="7" id="lat" value="' + default_lat + '" onblur="Evaluate()" /> ');
document.write(i18n.t('words.lon') + ': <input size="7" id="lon" value="' + default_lon + '" onblur="Evaluate()" /> ');
document.write(i18n.t('words.lat') + ': <input type="number" size="7" id="lat" value="' + default_lat + '" onblur="Evaluate()" /> ');
document.write(i18n.t('words.lon') + ': <input type="number" size="7" id="lon" value="' + default_lon + '" onblur="Evaluate()" /> ');
document.write(i18n.t('words.country') + ': <input size="3" id="cc" readonly="readonly" /> ');
document.write(i18n.t('words.state') + ': <input size="20" id="state" readonly="readonly" /><br />');
// document.write('<button type="button" onclick="setCurrentPosition()">' + i18n.t('texts.get my position') + '</button>');
Expand Down