mobile/android/base/tests/robocop_input.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/tests/robocop_input.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <title>Robocop Input</title>
     1.8 +    <meta name="viewport" content="width=device-width, initial-scale=1.0">
     1.9 +  </head>
    1.10 +  <body onload="fillInput()">
    1.11 +    <input id="input">
    1.12 +    <script>
    1.13 +      function fillInput() {
    1.14 +        // fill the input with the URL hash if provided
    1.15 +        var input = document.getElementById("input");
    1.16 +        input.value = window.location.hash.slice(1); // remove leading #
    1.17 +        input.focus();
    1.18 +      }
    1.19 +    </script>
    1.20 +  </body>
    1.21 +</html>

mercurial