2 <html id=
"template_root">
5 <title i18n-content=
"title"></title>
9 font-family:Helvetica,Arial,sans-serif;
22 background-color:white;
29 -webkit-box-shadow:
3px
3px
8px #
200;
32 html[dir='rtl'] .box {
51 margin:
15px
5px
15px
0px;
63 margin:
30px
90px
0px;
64 border-top:
1px solid #ccc;
73 background-color:white;
82 function agreed(form
) {
83 form
.continue_button
.disabled
= !form
.continue_button
.disabled
;
86 function sendCommand(command
) {
87 window
.domAutomationController
.setAutomationId(1);
88 window
.domAutomationController
.send(command
);
91 function learnMore() {
92 sendCommand('learnMore');
96 sendCommand('proceed');
99 function takeMeBack() {
100 sendCommand('takeMeBack');
104 * Called when the user clicks the link to show the diagnostic or report a
105 * malware site, depending on the threat type.
106 * @param {MouseEvent} event The mouse event that triggered this call.
108 function showOrReport(event
) {
109 var id
= event
.currentTarget
.getAttribute('chromiumID');
110 var isMalware
= event
.currentTarget
.getAttribute('chromiumIsMalware');
111 var cmd
= isMalware
? 'showDiagnostic:' : 'reportError:';
112 sendCommand(cmd
+ id
);
118 <body oncontextmenu=
"return false;">
119 <div class=
"background">
120 <img src=
"ssl/roadblock_background.png" width=
"100%" height=
"100%"
121 alt=
"background" onmousedown=
"return false;">
123 <table width=
"100%" cellspacing=
"0" cellpadding=
"0">
124 <td class=
"cell" valign=
"middle" align=
"center">
127 <img src=
"../../../ui/webui/resources/images/phishing_icon.png" alt=
"Malware Icon"
128 onmousedown=
"return false;">
130 <div class=
"title" i18n-content=
"headLine"></div>
131 <div class=
"main" i18n-values=
".innerHTML:description1"></div>
132 <div class=
"main" i18n-content=
"description2"></div>
134 <table cellpadding=
"5" jsvalues=
"$counter:{value: 0}">
135 <tr jsselect=
"errors" class=
"errorlist">
136 <td jscontent=
"typeLabel"></td>
137 <td jscontent=
"url"></td>
138 <td><a href=
"" onclick=
"showOrReport(event)"
139 jsvalues=
"chromiumID:$counter.value;chromiumIsMalware:type=='malware'"
140 jscontent=
"errorLink" jseval=
"$counter.value++"></a></td>
146 <a href=
"" i18n-content=
"description3" onmousedown=
"return false;"
147 onclick=
"learnMore(); return false;"></a>
150 <form class=
"submission">
151 <input id=
"checky" name=
"checky" type=
"checkbox"
152 jsdisplay=
"!proceedDisabled"
153 onclick=
"agreed(this.form)">
154 <label for=
"checky" i18n-content=
"confirm_text"
155 jsdisplay=
"!proceedDisabled"></label>
156 <button name=
"continue_button" i18n-content=
"continue_button"
157 disabled=
"true" jsdisplay=
"!proceedDisabled"
158 onclick=
"proceed();"></button><br>
159 <button name=
"back_button" i18n-content=
"back_button"
160 onclick=
"takeMeBack()"></button>