genia.likes.science@gmail.com | c5f82a2 | 2013-05-08 02:44:35 -0700 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> |
| 5 | <title></title> |
| 6 | </head> |
| 7 | <body> |
| 8 | <img src="../tests/s.gif" /> |
| 9 | <script type="text/javascript"> |
| 10 | if (location.host.indexOf("easyxdm.net") !== -1) { |
| 11 | var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
| 12 | document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
| 13 | } |
| 14 | </script> |
| 15 | <script type="text/javascript"> |
| 16 | if (location.host.indexOf("easyxdm.net") !== -1) { |
| 17 | try { |
| 18 | var pageTracker = _gat._getTracker("UA-9535591-3"); |
| 19 | pageTracker._setDomainName(".easyxdm.net"); |
| 20 | pageTracker._trackPageview(); |
| 21 | } |
| 22 | catch (err) { |
| 23 | } |
| 24 | } |
| 25 | </script> |
| 26 | <a id="bookmark" src="">Bookmark</a> |
| 27 | <script type="text/javascript"> |
| 28 | var baseUrl = location.href.substring(0, location.href.lastIndexOf("/")); |
| 29 | |
| 30 | // to simplify development, we create the bookmarklet as a regular function |
| 31 | function bookmark(){ |
| 32 | if (typeof myBookmark === "undefined") { |
| 33 | var script = document.createElement("script"); |
| 34 | script.type = "text/javascript"; |
| 35 | script.src = baseUrl + "/bookmark.js"; |
| 36 | document.getElementsByTagName("head")[0].appendChild(script); |
| 37 | } |
| 38 | else { |
| 39 | myBookmark.run(); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // and then we include it using .toString(). |
| 44 | document.getElementById("bookmark").href = 'javascript:(' + |
| 45 | (bookmark.toString().replace('baseUrl + "', '"' + baseUrl)).replace(/\s+/g, " ") + |
| 46 | ')();'; |
| 47 | // when finished, you just copy the url from the rendered page |
| 48 | </script> |
| 49 | </body> |
| 50 | </html> |