]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Set input type number for port & reconnect_delay
authorSamuel Mannehed <samuel@cendio.se>
Fri, 17 Feb 2017 14:17:50 +0000 (15:17 +0100)
committerSamuel Mannehed <samuel@cendio.se>
Tue, 21 Feb 2017 10:57:24 +0000 (11:57 +0100)
app/styles/base.css
vnc.html

index aa7f89719e1cd161c85f9c22244bedcacbfa33ff..1ff8cf8454a56374da2eb49559d1757fda332054 100644 (file)
@@ -80,7 +80,8 @@ html {
  * ----------------------------------------
  */
 
-input[type=input], input[type=password], input:not([type]), textarea {
+input[type=input], input[type=password], input[type=number],
+input:not([type]), textarea {
   /* Disable default rendering */
   -webkit-appearance: none;
   -moz-appearance: none;
@@ -138,7 +139,7 @@ input[type=submit]::-moz-focus-inner {
 
 input[type=input]:disabled, input[type=password]:disabled,
 input:not([type]):disabled, input[type=button]:disabled,
-input[type=submit]:disabled,
+input[type=submit]:disabled, input[type=number]:disabled,
 textarea:disabled, select:disabled {
   color: rgb(128, 128, 128);
   background: rgb(240, 240, 240);
index c6f0d25bd8800450f0847a3294ae4de63c98d15d..6567a0133e3d75747a5866036efcbd3a14a89006 100644 (file)
--- a/vnc.html
+++ b/vnc.html
                                     </li>
                                     <li>
                                         <label for="noVNC_setting_port">Port:</label>
-                                        <input id="noVNC_setting_port" />
+                                        <input id="noVNC_setting_port" type="number" />
                                     </li>
                                     <li>
                                         <label for="noVNC_setting_path">Path:</label>
                             </li>
                             <li>
                                 <label for="noVNC_setting_reconnect_delay">Reconnect Delay (ms):</label>
-                                <input id="noVNC_setting_reconnect_delay" type="input" value="" />
+                                <input id="noVNC_setting_reconnect_delay" type="number" />
                             </li>
                             <li><hr></li>
                             <!-- Logging selection dropdown -->