Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: pages/_chrome_install_frame.raw

Issue 6021528219025408: Issue #1170 More progress migrating adblockplus.org to our CMS. (Closed)
Patch Set: Created Sept. 1, 2014, 10:45 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pages/IAdblockPlusSubscription.tmpl ('k') | pages/_include/foote.raw » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(&quot;child-frame&quot;).src = window.location.hash.substring(1);
+ }
+ setIframe()
+ window.onhashchange = setIframe;
+
+ function receiveMessage(e)
+ {
+ if (e.data === &quot;chrome-install&quot;)
+ chrome.webstore.install();
+ }
+ window.addEventListener(&quot;message&quot;, receiveMessage, false);
+}());
+</script>
« no previous file with comments | « pages/IAdblockPlusSubscription.tmpl ('k') | pages/_include/foote.raw » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld