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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pages/IAdblockPlusSubscription.tmpl ('k') | pages/_include/foote.raw » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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(&quot;child-frame&quot;).src = window.location.hash. substring(1);
20 }
21 setIframe()
22 window.onhashchange = setIframe;
23
24 function receiveMessage(e)
25 {
26 if (e.data === &quot;chrome-install&quot;)
27 chrome.webstore.install();
28 }
29 window.addEventListener(&quot;message&quot;, receiveMessage, false);
30 }());
31 </script>
OLDNEW
« 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