OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html i18n-values="dir:textdirection"> | 2 <html i18n-values="dir:textdirection"> |
3 <head> | 3 <head> |
4 <meta name="viewport" content="width=device-width, initial-scale=1.0, | 4 <meta name="viewport" content="width=device-width, initial-scale=1.0, |
5 maximum-scale=1.0, user-scalable=no"> | 5 maximum-scale=1.0, user-scalable=no"> |
6 <title i18n-content="title"> | 6 <title i18n-content="title"> |
7 </title> | 7 </title> |
8 <style> | 8 <style> |
9 | 9 |
10 body { | 10 body { |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 helpBoxOuter.classList.toggle('hidden'); | 304 helpBoxOuter.classList.toggle('hidden'); |
305 var moreLessButton = document.getElementById('more-less-button'); | 305 var moreLessButton = document.getElementById('more-less-button'); |
306 if (helpBoxOuter.classList.contains('hidden')) { | 306 if (helpBoxOuter.classList.contains('hidden')) { |
307 moreLessButton.innerText = moreLessButton.moreText; | 307 moreLessButton.innerText = moreLessButton.moreText; |
308 } else { | 308 } else { |
309 moreLessButton.innerText = moreLessButton.lessText; | 309 moreLessButton.innerText = moreLessButton.lessText; |
310 } | 310 } |
311 } | 311 } |
312 | 312 |
313 function diagnoseErrors() { | 313 function diagnoseErrors() { |
314 location = "chrome-extension://kodldpbjkkmmnilagfdheibampofhaom/index.html"; | 314 var extension_id = "idddmepepmjcgiedknnmlbadcokidhoa"; |
| 315 var diagnose_frame = document.getElementById('diagnose-frame'); |
| 316 diagnose_frame.innerHTML = |
| 317 '<iframe src="+chrome-extension://' + extension_id + |
| 318 '/index.html"></iframe>'; |
| 319 |
315 } | 320 } |
316 | 321 |
317 // Subframes use a different layout but the same html file. This is to make it | 322 // Subframes use a different layout but the same html file. This is to make it |
318 // easier to support platforms that load the error page via different | 323 // easier to support platforms that load the error page via different |
319 // mechanisms (Currently just iOS). | 324 // mechanisms (Currently just iOS). |
320 if (window.top.location != window.location) | 325 if (window.top.location != window.location) |
321 document.documentElement.setAttribute('subframe', ''); | 326 document.documentElement.setAttribute('subframe', ''); |
322 | 327 |
323 function updateForDnsProbe(strings) { | 328 function updateForDnsProbe(strings) { |
324 var context = new JsEvalContext(strings); | 329 var context = new JsEvalContext(strings); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 <div jsselect="summary"> | 362 <div jsselect="summary"> |
358 <span jsvalues=".innerHTML:msg"></span> | 363 <span jsvalues=".innerHTML:msg"></span> |
359 </div> | 364 </div> |
360 | 365 |
361 <div class="suggestions" jsselect="suggestions"> | 366 <div class="suggestions" jsselect="suggestions"> |
362 <div class="suggestion-header" jsvalues=".innerHTML:header"></div> | 367 <div class="suggestion-header" jsvalues=".innerHTML:header"></div> |
363 <div class="suggestion-body" jsvalues=".innerHTML:body"></div> | 368 <div class="suggestion-body" jsvalues=".innerHTML:body"></div> |
364 </div> | 369 </div> |
365 <button id="diagnose-button" onclick="diagnoseErrors()" | 370 <button id="diagnose-button" onclick="diagnoseErrors()" |
366 jscontent="diagnose" jsdisplay="diagnose"></button> | 371 jscontent="diagnose" jsdisplay="diagnose"></button> |
| 372 <div id="diagnose-frame" class="hidden"></div> |
367 <div class="error-code" jscontent="errorCode"></div> | 373 <div class="error-code" jscontent="errorCode"></div> |
368 </div> | 374 </div> |
369 </div> | 375 </div> |
370 </div> | 376 </div> |
371 </div> | 377 </div> |
372 <div id="sub-frame-error"> | 378 <div id="sub-frame-error"> |
373 <!-- Show details when hovering over the icon, in case the details are | 379 <!-- Show details when hovering over the icon, in case the details are |
374 hidden because they're too large. --> | 380 hidden because they're too large. --> |
375 <img class="icon" jseval="this.classList.add(iconClass)" jsvalues=".title:erro
rDetails"> | 381 <img class="icon" jseval="this.classList.add(iconClass)" jsvalues=".title:erro
rDetails"> |
376 <div id="sub-frame-error-details" jsvalues=".innerHTML:errorDetails"></div> | 382 <div id="sub-frame-error-details" jsvalues=".innerHTML:errorDetails"></div> |
377 </div> | 383 </div> |
378 </body> | 384 </body> |
379 </html> | 385 </html> |
OLD | NEW |