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, 1:43 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 </style> 77 </style>
78 <script><!-- 78 <script><!--
79 (function() 79 (function()
80 { 80 {
81 function initFacebook(locale) 81 function initFacebook(locale)
82 { 82 {
83 var map = { 83 var map = {
84 "en": "en_US", 84 "en": "en_US",
85 "he": "he_IL", 85 "he": "he_IL",
86 "ko": "ko_KR", 86 "ko": "ko_KR"
Felix Dahlke 2013/06/17 14:03:11 I think the trailing comma was actually intended b
Thomas Greiner 2013/06/17 14:59:57 Done.
87 }; 87 };
88 if (locale in map) 88 if (locale in map)
89 locale = map[locale]; 89 locale = map[locale];
90 90
91 // HACK AHEAD 91 // HACK AHEAD
92 if (locale.length == 2) 92 if (locale.length == 2)
93 locale = locale + "_" + locale.toUpperCase(); 93 locale = locale + "_" + locale.toUpperCase();
94 94
95 (function(d, s, id) { 95 (function(d, s, id) {
96 var js, fjs = d.getElementsByTagName(s)[0]; 96 var js, fjs = d.getElementsByTagName(s)[0];
(...skipping 19 matching lines...) Expand all
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 if (/MSIE/.test(navigator.appVersion))
Felix Dahlke 2013/06/17 14:03:11 This definitely deserves a comment, we're hacking
Thomas Greiner 2013/06/17 14:59:57 Done.
128 dimensions = JSON.stringify(dimensions);
129
126 window.parent.postMessage(dimensions, "*"); 130 window.parent.postMessage(dimensions, "*");
127 } 131 }
128 132
129 window.addEventListener("DOMContentLoaded", function() 133 window.addEventListener("DOMContentLoaded", function()
130 { 134 {
131 var locale = window.location.pathname.replace(/^\/+/, "").replace(/\/.*/, "" ); 135 var locale = window.location.pathname.replace(/^\/+/, "").replace(/\/.*/, "" );
132 if (/^\w\w(_\w\w)?/.test(locale)) 136 if (/^\w\w(_\w\w)?/.test(locale))
133 { 137 {
134 // Set language for Twitter 138 // Set language for Twitter
135 var links = document.getElementById("twitter").getElementsByTagName("a"); 139 var links = document.getElementById("twitter").getElementsByTagName("a");
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 </div> 172 </div>
169 </div> 173 </div>
170 174
171 <div id="gplus"> 175 <div id="gplus">
172 <div class="widget-container"> 176 <div class="widget-container">
173 <div class="g-plus" data-href="https://plus.google.com/110020691898167279887 " data-width="500" data-rel="publisher"></div> 177 <div class="g-plus" data-href="https://plus.google.com/110020691898167279887 " data-width="500" data-rel="publisher"></div>
174 </div> 178 </div>
175 </div> 179 </div>
176 </body> 180 </body>
177 </html> 181 </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