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

Side by Side Diff: share.html

Issue 10990029: Made share page compatible with IE9 and IE10 (Closed)
Patch Set: Created June 17, 2013, 2:58 p.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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <html> 3 <html>
4 <head> 4 <head>
5 <title>Teilen</title> 5 <title>Teilen</title>
6 <style> 6 <style>
7 body 7 body
8 { 8 {
9 width: 650px; 9 width: 650px;
10 margin: auto; 10 margin: auto;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 function sendDimensions() 117 function sendDimensions()
118 { 118 {
119 if (window.parent === window) 119 if (window.parent === window)
120 return; 120 return;
121 121
122 var dimensions = { 122 var dimensions = {
123 width: document.body.offsetWidth, 123 width: document.body.offsetWidth,
124 height: document.body.offsetHeight 124 height: document.body.offsetHeight
125 }; 125 };
126
127 // IE doesn't support data other than strings yet
128 if (/MSIE/.test(navigator.appVersion))
129 dimensions = JSON.stringify(dimensions);
130
126 window.parent.postMessage(dimensions, "*"); 131 window.parent.postMessage(dimensions, "*");
127 } 132 }
128 133
129 window.addEventListener("DOMContentLoaded", function() 134 window.addEventListener("DOMContentLoaded", function()
130 { 135 {
131 var locale = window.location.pathname.replace(/^\/+/, "").replace(/\/.*/, "" ); 136 var locale = window.location.pathname.replace(/^\/+/, "").replace(/\/.*/, "" );
132 if (/^\w\w(_\w\w)?/.test(locale)) 137 if (/^\w\w(_\w\w)?/.test(locale))
133 { 138 {
134 // Set language for Twitter 139 // Set language for Twitter
135 var links = document.getElementById("twitter").getElementsByTagName("a"); 140 var links = document.getElementById("twitter").getElementsByTagName("a");
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 </div> 173 </div>
169 </div> 174 </div>
170 175
171 <div id="gplus"> 176 <div id="gplus">
172 <div class="widget-container"> 177 <div class="widget-container">
173 <div class="g-plus" data-href="https://plus.google.com/110020691898167279887 " data-width="500" data-rel="publisher"></div> 178 <div class="g-plus" data-href="https://plus.google.com/110020691898167279887 " data-width="500" data-rel="publisher"></div>
174 </div> 179 </div>
175 </div> 180 </div>
176 </body> 181 </body>
177 </html> 182 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld