2 <html id=
"template_root">
4 <title i18n-content=
"title"></title>
8 font-family:Helvetica,Arial,sans-serif;
21 background-color:white;
28 -webkit-box-shadow:
3px
3px
8px #
200;
31 html[dir='rtl'] .box {
50 margin:
15px
5px
15px
0px;
62 margin:
30px
90px
0px;
63 border-top:
1px solid #ccc;
72 background-color:white;
81 function agreed(form
) {
82 form
.continue_button
.disabled
= !form
.continue_button
.disabled
;
85 function sendCommand(command
) {
86 window
.domAutomationController
.setAutomationId(1);
87 window
.domAutomationController
.send(command
);
90 function learnMore() {
91 sendCommand('learnMore');
95 sendCommand('proceed');
98 function takeMeBack() {
99 sendCommand('takeMeBack');
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.
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
);
117 <body oncontextmenu=
"return false;">
118 <div class=
"background">
119 <img src=
"ssl/roadblock_background.png" width=
"100%" height=
"100%"
120 alt=
"background" onmousedown=
"return false;">
122 <table width=
"100%" cellspacing=
"0" cellpadding=
"0">
123 <td class=
"cell" valign=
"middle" align=
"center">
126 <img src=
"../../../ui/webui/resources/images/phishing_icon.png" alt=
"Malware Icon"
127 onmousedown=
"return false;">
129 <div class=
"title" i18n-content=
"headLine"></div>
130 <div class=
"main" i18n-values=
".innerHTML:description1"></div>
131 <div class=
"main" i18n-content=
"description2"></div>
133 <table cellpadding=
"5" jsvalues=
"$counter:{value: 0}">
134 <tr jsselect=
"errors" class=
"errorlist">
135 <td jscontent=
"typeLabel"></td>
136 <td jscontent=
"url"></td>
137 <td><a href=
"" onclick=
"showOrReport(event)"
138 jsvalues=
"chromiumID:$counter.value;chromiumIsMalware:type=='malware'"
139 jscontent=
"errorLink" jseval=
"$counter.value++"></a></td>
145 <a href=
"" i18n-content=
"description3" onmousedown=
"return false;"
146 onclick=
"learnMore(); return false;"></a>
149 <form class=
"submission">
150 <input id=
"checky" name=
"checky" type=
"checkbox"
151 jsdisplay=
"!proceedDisabled"
152 onclick=
"agreed(this.form)">
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>