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