OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html id="template_root"> | 2 <html> |
3 <head> | 3 <head> |
4 <title i18n-content="title"></title> | 4 <title i18n-content="title"></title> |
5 <style> | 5 <style> |
6 body { | 6 body { |
7 background-color:#500; | 7 background-color:#500; |
8 font-family:Helvetica,Arial,sans-serif; | 8 font-family:Helvetica,Arial,sans-serif; |
9 margin:0px; | 9 margin:0px; |
10 } | 10 } |
11 .background { | 11 .background { |
12 position:absolute; | 12 position:absolute; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 <script> | 80 <script> |
81 function agreed(form) { | 81 function agreed(form) { |
82 form.continue_button.disabled = !form.continue_button.disabled; | 82 form.continue_button.disabled = !form.continue_button.disabled; |
83 } | 83 } |
84 | 84 |
85 function sendCommand(command) { | 85 function sendCommand(command) { |
86 window.domAutomationController.setAutomationId(1); | 86 window.domAutomationController.setAutomationId(1); |
87 window.domAutomationController.send(command); | 87 window.domAutomationController.send(command); |
88 } | 88 } |
89 | 89 |
| 90 function showDiagnostic(errorID) { |
| 91 sendCommand("showDiagnostic:" + errorID); |
| 92 } |
| 93 |
| 94 function reportError(errorID) { |
| 95 sendCommand("reportError:" + errorID); |
| 96 } |
| 97 |
90 function learnMore() { | 98 function learnMore() { |
91 sendCommand('learnMore'); | 99 sendCommand("learnMore"); |
92 } | 100 } |
93 | 101 |
94 function proceed() { | 102 function proceed() { |
95 sendCommand('proceed'); | 103 sendCommand("proceed"); |
96 } | 104 } |
97 | 105 |
98 function takeMeBack() { | 106 function takeMeBack() { |
99 sendCommand('takeMeBack'); | 107 sendCommand("takeMeBack"); |
100 } | |
101 | |
102 /** | |
103 * Called when the user clicks the link to show the diagnostic or report a | |
104 * malware site, depending on the threat type. | |
105 * @param {MouseEvent} event The mouse event that triggered this call. | |
106 */ | |
107 function showOrReport(event) { | |
108 var id = event.currentTarget.getAttribute('chromiumID'); | |
109 var isMalware = event.currentTarget.getAttribute('chromiumIsMalware'); | |
110 var cmd = isMalware ? 'showDiagnostic:' : 'reportError:'; | |
111 sendCommand(cmd + id); | |
112 return false; | |
113 } | 108 } |
114 </script> | 109 </script> |
115 </head> | 110 </head> |
116 | 111 |
117 <body oncontextmenu="return false;"> | 112 <body oncontextmenu="return false;"> |
118 <div class="background"> | 113 <div class="background"><img src="ssl_roadblock_background.png" width="100%" hei
ght="100%" alt="background" onmousedown="return false;"/></div> |
119 <img src="ssl_roadblock_background.png" width="100%" height="100%" | |
120 alt="background" onmousedown="return false;"> | |
121 </div> | |
122 <table width="100%" cellspacing="0" cellpadding="0"> | 114 <table width="100%" cellspacing="0" cellpadding="0"> |
123 <td class="cell" valign="middle" align="center"> | 115 <td class="cell" valign="middle" align="center"> |
124 <div class="box"> | 116 <div class="box"> |
125 <div class="icon"> | 117 <div class="icon"><img src="shared/images/phishing_icon.png" alt="Malware
Icon" onmousedown="return false;"/></div> |
126 <img src="shared/images/phishing_icon.png" alt="Malware Icon" | |
127 onmousedown="return false;"> | |
128 </div> | |
129 <div class="title" i18n-content="headLine"></div> | 118 <div class="title" i18n-content="headLine"></div> |
130 <div class="main" i18n-values=".innerHTML:description1"></div> | 119 <div class="main" i18n-values=".innerHTML:description1"></div> |
131 <div class="main" i18n-content="description2"></div> | 120 <div class="main" i18n-content="description2"></div> |
132 <div class="main"> | 121 <div class="main" id="template_root"> |
133 <table cellpadding="5" jsvalues="$counter:{value: 0}"> | 122 <table cellpadding="5" jsvalues="$counter:{value: 0}"> |
134 <tr jsselect="errors" class="errorlist"> | 123 <tr jsselect="errors" class="errorlist"> |
135 <td jscontent="typeLabel"></td> | 124 <td jscontent="typeLabel"></td> |
136 <td jscontent="url"></td> | 125 <td jscontent="url"></td> |
137 <td><a href="" onclick="showOrReport(event)" | 126 <td><a href="" onclick="var id= this.getAttribute('chromiumID'); thi
s.getAttribute('chromiumIsMalware') ? showDiagnostic(id) : reportError(id); retu
rn false;" jscontent="errorLink" jsvalues="chromiumID:$counter.value;chromiumIsM
alware:type=='malware'" jseval="$counter.value++"></a></td> |
138 jsvalues="chromiumID:$counter.value;chromiumIsMalware:type=='mal
ware'" | |
139 jscontent="errorLink" jseval="$counter.value++"></a></td> | |
140 </tr> | 127 </tr> |
141 </table> | 128 </table> |
142 </div> | 129 </div> |
143 | 130 |
144 <div class="main"> | 131 <div class="main"><a href="" i18n-content="description3" onclick="learnMor
e(); return false;" onmousedown="return false;"></a></div> |
145 <a href="" i18n-content="description3" onmousedown="return false;" | |
146 onclick="learnMore(); return false;"></a> | |
147 </div> | |
148 <div class="main"> | 132 <div class="main"> |
149 <form class="submission"> | 133 <form class="submission"> |
150 <input id="checky" name="checky" type="checkbox" | 134 <input name="checky" id="checky" type="checkbox" onclick="agreed(this.
form)"> <label for="checky" i18n-content="confirm_text"></label> |
151 jsdisplay="!proceedDisabled" | 135 <input type="button" name="continue_button" i18n-values="value:continu
e_button" disabled="true" onclick="proceed();"><br> |
152 onclick="agreed(this.form)"> | 136 <input type="button" name="back_button" i18n-values="value:back_button
" onclick="takeMeBack()"> |
153 <label for="checky" i18n-content="confirm_text" | |
154 jsdisplay="!proceedDisabled"></label> | |
155 <button name="continue_button" i18n-content="continue_button" | |
156 disabled="true" jsdisplay="!proceedDisabled" | |
157 onclick="proceed();"></button><br> | |
158 <button name="back_button" i18n-content="back_button" | |
159 onclick="takeMeBack()"></button> | |
160 </form> | 137 </form> |
161 </div> | 138 </div> |
162 </div> | 139 </div> |
163 </td> | 140 </td> |
164 </table> | 141 </table> |
165 </body> | 142 </body> |
166 </html> | 143 </html> |
OLD | NEW |