browser/modules/test/uitour.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <meta charset="utf-8" />
     5     <title>UITour test</title>
     6     <script type="application/javascript" src="uitour.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       }
    17       // Defined in content to avoid weird issues when crossing between chrome/content.
    18       function makeButtons() {
    19         return [
    20           {label: "Button 1", callback: makeCallback("button1")},
    21           {label: "Button 2", callback: makeCallback("button2"), icon: "image.png"}
    22         ];
    23       }
    25       function makeInfoOptions() {
    26         return {
    27           closeButtonCallback: makeCallback("closeButton"),
    28           targetCallback: makeCallback("target"),
    29         };
    30       }
    31     </script>
    32   </head>
    33   <body>
    34     <h1>UITour tests</h1>
    35     <p>Because Firefox is...</p>
    36     <p>Never gonna let you down</p>
    37     <p>Never gonna give you up</p>
    38   </body>
    39 </html>

mercurial