dom/tests/mochitest/ajax/jquery/test/fix.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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     4 <html xmlns="http://www.w3.org/1999/xhtml">
     5     <head>
     6         <meta name="generator"
     7         content="HTML Tidy, see www.w3.org" />
     9         <title>Tester</title>
    10 <style type="text/css">
    11       #container { background:yellow; width:400px; height:400px; }
    13 </style>
    14 <script type="text/javascript" src="../dist/jquery.js">
    15 </script>
    16 <script type="text/javascript">
    17       function doIt() {
    18         $("#adiv").text("click!");
    19         $("#adiv").trigger("acustom.atype");
    20       }
    22       function showMouse(e) {
    23         $("#adiv").text("( " + e.pageX + ", " + e.pageY + " )");
    24       }
    26       $(function () {
    27         $("#doit").bind('click.mine', doIt);
    28         $("#container").mousemove(showMouse);
    29         $("#adiv").bind("acustom.atype", function () {
    30           //console.log("custom");
    31         });
    32       });
    34 </script>
    35     </head>
    37     <body>
    38         <button id="doit">Do It</button> 
    40         <div id="container">
    41             Hi
    42         </div>
    44         <div id="adiv">
    45         </div>
    46     </body>
    47 </html>

mercurial