OLD | NEW |
(Empty) | |
| 1 <head> |
| 2 <style type="text/css"> |
| 3 html {overflow: auto;} |
| 4 html, body, div, iframe {margin: 0px; padding: 0px; height: 100%; border: none
;} |
| 5 .viewcontent { position: absolute; left: 0; top: 0; z-index: 10; width: 100%;
height: 100%; overflow-y: auto; overflow-x: hidden; background: #fff} |
| 6 .viewcontent > h1 { display: none; } |
| 7 iframe {display: block; width: 100%; border: none; overflow-y: auto; overflow-
x: hidden; z-index: 11; } |
| 8 #content { margin-bottom: 0; height: 0; } |
| 9 </style> |
| 10 <link href="https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdccddi
lifddb" rel="chrome-webstore-item"> |
| 11 </head> |
| 12 <iframe id="child-frame"></iframe> |
| 13 |
| 14 <script type="text/javascript"> |
| 15 (function() |
| 16 { |
| 17 function setIframe() |
| 18 { |
| 19 document.getElementById("child-frame").src = window.location.hash.
substring(1); |
| 20 } |
| 21 setIframe() |
| 22 window.onhashchange = setIframe; |
| 23 |
| 24 function receiveMessage(e) |
| 25 { |
| 26 if (e.data === "chrome-install") |
| 27 chrome.webstore.install(); |
| 28 } |
| 29 window.addEventListener("message", receiveMessage, false); |
| 30 }()); |
| 31 </script> |
OLD | NEW |