Bring up number keypad for port on mobile phones, URL for address

An alternative would be type="tel", which has bigger number buttons for me,
but it seems wrong to use.
This commit is contained in:
Lorenz Hübschle-Schneider 2014-03-14 14:52:23 +00:00
commit bbcdada331
2 changed files with 8 additions and 3 deletions

View file

@ -57,8 +57,8 @@
<div class="form-group">
<label class="control-label" for="host">WeeChat relay hostname and port number</label>
<div class="input-group">
<input type="text" class="form-control monospace" id="host" ng-model="host" placeholder="Address">
<input type="text" class="form-control monospace" id="port" ng-model="port" placeholder="9001">
<input type="url" class="form-control monospace" id="host" ng-model="host" placeholder="Address" autocorrect="off" autocomplete="off" autocapitalize="off">
<input type="number" pattern="[0-9]*" class="form-control monospace" id="port" ng-model="port" placeholder="9001">
</div>
<label class="control-label" for="password">WeeChat relay password</label>
<input type="password" class="form-control monospace" id="password" ng-model="password" placeholder="Password">