tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

simple-scalar-manual.html (754B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset='utf-8'/>
      5    <title>Vibration API: test a simple scalar parameter to vibrate()</title>
      6    <link rel='author' title='Robin Berjon' href='mailto:robin@berjon.com'/>
      7    <link rel='help' href='http://www.w3.org/TR/vibration/#methods'/>
      8    <meta name='flags' content='dom, interact'/>
      9  </head>
     10  <body>
     11    <h1>Description</h1>
     12    <p>
     13      After hitting the button below, your device must vibrate continuously for about two seconds, once.
     14    </p>
     15    <button id='vib'>Vibrate!</button>
     16    <script>
     17      if (undefined !== navigator.vibrate) {
     18          document.getElementById("vib").onclick = function () {
     19              navigator.vibrate(2000);
     20          };
     21      }
     22    </script>
     23  </body>
     24 </html>