tizen beta release
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.0.1pre / tools / page-change-time.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width">
6 <title>Page Change Timer Bookmarklet</title>
7 </head>
8
9 <body>
10 <h1>Page Event Logger Bookmarklet</h1>
11 <p>A simple bookmarklet for timing the load, enhanement, and transition of a jQuery Mobile changePage() request. To use, bookmark the following link:</p>
12 <script>
13 document.write('<p><a id="bookmarklet-link" href="javascript:function loadScript(u){var s=document.createElement(\'script\');s.setAttribute(\'language\',\'javascript\');s.setAttribute(\'src\',u);document.body.appendChild(s);} loadScript(\'' + ( location.href.replace( /\.html/, ".js" ) ) + '\');">Page Change Timing Bookmark</a></p>');
14 </script>
15 <p>For platforms that don't allow bookmarking of <code>javascript:</code> urls, you can copy/paste the following source for the bookmarklet directly into the browser's location bar then hit enter or hit the &quot;go&quot; button on your keypad:</p>
16 <p>
17   <textarea id="ta" rows="10" cols="50"></textarea>
18 </p>
19 <p>NOTE: Some browsers like Chrome will strip off the javascript: prefix from the string above when you paste it into the location bar. Make sure what you pasted is prefixed by javascript: before attempting to load the bookmarklet.</p>
20 <script>
21 document.getElementById("ta").value = document.getElementById("bookmarklet-link").href;
22   </script>
23 </body>
24 </html>