| Index: pages/_chrome_install_frame.raw |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/pages/_chrome_install_frame.raw |
| @@ -0,0 +1,31 @@ |
| +<head> |
| +<style type="text/css"> |
| + html {overflow: auto;} |
| + html, body, div, iframe {margin: 0px; padding: 0px; height: 100%; border: none;} |
| + .viewcontent { position: absolute; left: 0; top: 0; z-index: 10; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; background: #fff} |
| + .viewcontent > h1 { display: none; } |
| + iframe {display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden; z-index: 11; } |
| + #content { margin-bottom: 0; height: 0; } |
| +</style> |
| +<link href="https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdccddilifddb" rel="chrome-webstore-item"> |
| +</head> |
| +<iframe id="child-frame"></iframe> |
| + |
| +<script type="text/javascript"> |
| +(function() |
| +{ |
| + function setIframe() |
| + { |
| + document.getElementById("child-frame").src = window.location.hash.substring(1); |
| + } |
| + setIframe() |
| + window.onhashchange = setIframe; |
| + |
| + function receiveMessage(e) |
| + { |
| + if (e.data === "chrome-install") |
| + chrome.webstore.install(); |
| + } |
| + window.addEventListener("message", receiveMessage, false); |
| +}()); |
| +</script> |