tor-browser

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

uitour.html (1228B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8" />
      5    <title>UITour test</title>
      6    <script type="application/javascript" src="UITour-lib.js">
      7    </script>
      8    <script type="application/javascript">
      9      var callbackResult, callbackData;
     10      function makeCallback(name) {
     11        return (function(data) {
     12          callbackResult = name;
     13          callbackData = data;
     14        });
     15      }
     16 
     17      // Defined in content to avoid weird issues when crossing between chrome/content.
     18      function makeButtons() {
     19        return [
     20          {label: "Regular text", style: "text"},
     21          {label: "Link", callback: makeCallback("link"), style: "link"},
     22          {label: "Button 1", callback: makeCallback("button1")},
     23          {label: "Button 2", callback: makeCallback("button2"), icon: "image.png",
     24           style: "primary"},
     25        ];
     26      }
     27 
     28      function makeInfoOptions() {
     29        return {
     30          closeButtonCallback: makeCallback("closeButton"),
     31          targetCallback: makeCallback("target"),
     32        };
     33      }
     34    </script>
     35  </head>
     36  <body>
     37    <h1>UITour tests</h1>
     38    <p>Because Firefox is...</p>
     39    <p>Never gonna let you down</p>
     40    <p>Never gonna give you up</p>
     41  </body>
     42 </html>