Selaa lähdekoodia

Updates LaunchTest() form text input to be of type "url".

Making this change not only adds automatic url validation from modern
browsers but enabled special keyboards on mobile devices to make
inputing urls much easier.
Nick Hehr 10 vuotta sitten
vanhempi
commit
867680f4e9
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      front/src/views/index.html

+ 2 - 2
front/src/views/index.html

@@ -2,7 +2,7 @@
 <p class="price">Free and open source!</p>
 <p class="price">Free and open source!</p>
 
 
 <form ng-submit="launchTest()" >
 <form ng-submit="launchTest()" >
-    <input type="text" name="url" ng-model="url" placeholder="http://www.mysite.com" class="url" />
+    <input type="url" name="url" ng-model="url" placeholder="http://www.mysite.com" class="url" />
     <input type="submit" value="Launch test" class="launchBtn" ng-class="{disabled: !url}" />
     <input type="submit" value="Launch test" class="launchBtn" ng-class="{disabled: !url}" />
     <div class="settings">
     <div class="settings">
         <div class="device">
         <div class="device">
@@ -90,4 +90,4 @@
         <h3>JS Profiling</h3>
         <h3>JS Profiling</h3>
         <p>Untangles the JavaScript spaghetti code</p>
         <p>Untangles the JavaScript spaghetti code</p>
     </div>
     </div>
-</div>
+</div>