Author: rezan
Date: Wed Aug  5 15:12:00 2015
New Revision: 1694245

URL: http://svn.apache.org/r1694245
Log:
input fields

Modified:
    devicemap/trunk/clients/2.0/javascript/index.html

Modified: devicemap/trunk/clients/2.0/javascript/index.html
URL: 
http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/javascript/index.html?rev=1694245&r1=1694244&r2=1694245&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/javascript/index.html (original)
+++ devicemap/trunk/clients/2.0/javascript/index.html Wed Aug  5 15:12:00 2015
@@ -6,6 +6,12 @@
   <h1>Apache DeviceMap 2.0 Javascript Client</h1>
   Pattern file: <input id="pattern" type="text" size="50" 
value="http://www.rezsoft.org/devicemap/data/reference/a/patterns.json";><br>
   <br>
+  Attribute file: <input id="attribute" type="text" size="50" 
value="http://www.rezsoft.org/devicemap/data/reference/a/attributes.json";><br>
+  <br>
+  Test file: <input id="test" type="text" size="50" 
value="http://www.rezsoft.org/devicemap/data/reference/a/test.json";><br>
+  <br>
+  Test input: <input id="input" type="text" size="80" value=""><br>
+  <br>
   <input type="button" value="Load" onclick="load()"><br>
   <br>
   <div class="out">
@@ -16,6 +22,8 @@
       document.getElementById('out').cols = 
Math.floor(((document.body.clientWidth - 40) / 8));
     }
 
+    document.getElementById('input').value = navigator.userAgent;
+
     var devicemap = devicemap || {};
 
     devicemap.debug = function(level, s) {
@@ -50,7 +58,9 @@
       getFile(pattern, function(request) {
         if (request.status >= 200 && request.status < 300){
           patternFile = JSON.parse(request.responseText);
+
           count++;
+
           if(count === countRequired) {
             loadClient(patternFile);
           }


Reply via email to