Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(996)

Side by Side Diff: chrome/browser/resources/ssl/roadblock.html

Issue 17416003: Adding 3 new SSL experimental conditions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/ssl/policeman.png ('k') | chrome/browser/resources/ssl/stoplight.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html i18n-values="dir:textdirection"> 2 <html i18n-values="dir:textdirection">
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title i18n-content="title"></title> 5 <title i18n-content="title"></title>
6 <style type="text/css"> 6 <style type="text/css">
7 7
8 html { 8 html {
9 background-color: rgb(92, 0, 0); 9 background-color: rgb(92, 0, 0);
10 background-image: url(roadblock_background.png); 10 background-image: url(roadblock_background.png);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 margin-left: 5px; 54 margin-left: 5px;
55 margin-right: 5px; 55 margin-right: 5px;
56 } 56 }
57 57
58 .more-link { 58 .more-link {
59 color: #0000FF; 59 color: #0000FF;
60 cursor: pointer; 60 cursor: pointer;
61 text-decoration: underline; 61 text-decoration: underline;
62 } 62 }
63 63
64 .test-image {
65 float: right;
66 height: 140px;
67 padding-left: 30px;
68 padding-right: 30px;
69 width: 140px;
70 }
71
Dan Beam 2013/06/20 17:52:12 html[dir='rtl'] .test-image { float: left; }
felt 2013/06/20 19:57:59 Done.
64 .title { 72 .title {
65 color: #660000; 73 color: #660000;
66 font-size: 18pt; 74 font-size: 18pt;
67 font-weight: bold; 75 font-weight: bold;
68 line-height: 140%; 76 line-height: 140%;
69 margin: 0 77px 6pt; 77 margin: 0 77px 6pt;
70 } 78 }
71 79
72 .twisty { 80 .twisty {
73 display: inline; 81 display: inline;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 161
154 $('exit-button').addEventListener('click', function() { 162 $('exit-button').addEventListener('click', function() {
155 sendCommand(CMD_DONT_PROCEED); 163 sendCommand(CMD_DONT_PROCEED);
156 }); 164 });
157 165
158 document.addEventListener('contextmenu', function(e) { 166 document.addEventListener('contextmenu', function(e) {
159 e.preventDefault(); 167 e.preventDefault();
160 }); 168 });
161 } 169 }
162 170
171 function setupIconExperiments() {
Dan Beam 2013/06/20 17:52:12 nit: the JS haxor way that also works in RTL - va
Dan Beam 2013/06/20 17:52:12 can you ensure this isn't called multiple times or
felt 2013/06/20 19:57:59 I added a boolean. On 2013/06/20 17:52:12, Dan Be
felt 2013/06/20 19:57:59 Done.
172 if (templateData.trialType == 'Condition19SSLPoliceman') {
173 $('trial-policeman').hidden = false;
174 $('more-info-short').style.marginRight = '30px';
175 $('more-info-long').style.marginRight = '30px';
176 } else if (templateData.trialType == 'Condition20SSLStoplight') {
177 $('trial-stoplight').hidden = false;
178 $('more-info-short').style.marginRight = '30px';
179 $('more-info-long').style.marginRight = '30px';
180 } else if (templateData.trialType == 'Condition21SSLBadguy') {
181 $('trial-badguy').hidden = false;
182 $('more-info-short').style.marginRight = '30px';
183 $('more-info-long').style.marginRight = '30px';
184 }
185 }
186
163 window.addEventListener('focus', handleFocusEvent); 187 window.addEventListener('focus', handleFocusEvent);
164 document.addEventListener('DOMContentLoaded', setupEvents); 188 document.addEventListener('DOMContentLoaded', setupEvents);
189 document.addEventListener('DOMContentLoaded', setupIconExperiments);
165 </script> 190 </script>
166 </head> 191 </head>
167 <body> 192 <body>
168 <div class="box"> 193 <div class="box">
169 <div class="icon"> 194 <div class="icon">
170 <img src="roadblock_icon.png" alt="SSL Error Icon" id="roadblock-icon"> 195 <img src="roadblock_icon.png" alt="SSL Error Icon" id="roadblock-icon">
171 </div> 196 </div>
172 <div class="title" i18n-content="headLine"></div> 197 <div class="title" i18n-content="headLine"></div>
198
199 <!-- RHS images for the field trial. -->
200 <div id="trial-badguy" class="test-image" hidden>
201 <img src="badguy.png" alt="Bad guy">
202 </div>
203 <div id="trial-policeman" class="test-image" hidden>
204 <img src="policeman.png" alt="Policeman">
205 </div>
206 <div id="trial-stoplight" class="test-image" hidden>
207 <img src="stoplight.png" alt="Stoplight">
208 </div>
209
173 <div class="main" i18n-values=".innerHTML:description;dir:textdirection"></d iv> 210 <div class="main" i18n-values=".innerHTML:description;dir:textdirection"></d iv>
174 <div class="main" i18n-values=".innerHTML:reasonForNotProceeding"></div> 211 <div class="main" i18n-values=".innerHTML:reasonForNotProceeding"></div>
175 <div class="main"> 212 <div class="main">
176 <button i18n-content="proceed" id="proceed-button" hidden></button> 213 <button i18n-content="proceed" id="proceed-button" hidden></button>
177 <button i18n-content="exit" id="exit-button"></button> 214 <button i18n-content="exit" id="exit-button"></button>
178 </div> 215 </div>
179 <div class="more" id="more-info-short"> 216 <div class="more" id="more-info-short">
180 <span class="more-link"> 217 <span class="more-link">
181 <img id="twisty-closed" class="twisty" src="twisty_closed.png" 218 <img id="twisty-closed" class="twisty" src="twisty_closed.png"
182 border="0"><span i18n-content="moreInfoTitle" id="more-info-title" 219 border="0"><span i18n-content="moreInfoTitle" id="more-info-title"
183 class="show-more-info-title"></span> 220 class="show-more-info-title"></span>
184 </span> 221 </span>
185 </div> 222 </div>
186 <div class="more" id="more-info-long" hidden> 223 <div class="more" id="more-info-long" hidden>
187 <span class="more-link"> 224 <span class="more-link">
188 <img class="twisty" src="twisty_open.png" border="0"><span 225 <img class="twisty" src="twisty_open.png" border="0"><span
189 i18n-content="moreInfoTitle" class="more-info-title"></span> 226 i18n-content="moreInfoTitle" class="more-info-title"></span>
190 </span> 227 </span>
191 <p i18n-values=".innerHTML:moreInfo1"></p> 228 <p i18n-values=".innerHTML:moreInfo1"></p>
192 <p i18n-values=".innerHTML:moreInfo2"></p> 229 <p i18n-values=".innerHTML:moreInfo2"></p>
193 <p i18n-values=".innerHTML:moreInfo3"></p> 230 <p i18n-values=".innerHTML:moreInfo3"></p>
194 <p i18n-values=".innerHTML:moreInfo4"></p> 231 <p i18n-values=".innerHTML:moreInfo4"></p>
195 <p i18n-values=".innerHTML:moreInfo5"></p> 232 <p i18n-values=".innerHTML:moreInfo5"></p>
196 </div> 233 </div>
197 </div> 234 </div>
198 </table> 235 </table>
199 </body> 236 </body>
200 </html> 237 </html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/ssl/policeman.png ('k') | chrome/browser/resources/ssl/stoplight.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698