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 diagnose_frame = document.getElementById('diagnose-frame'); |
315 diagnose_frame.innerHTML = | |
316 '<iframe src="chrome-extension://idddmepepmjcgiedknnmlbadcokidhoa/index.ht ml"></iframe>'; | |
Dmitry Polukhin
2013/08/02 23:17:07
Please keep it 80 chars per line.
| |
317 | |
315 } | 318 } |
316 | 319 |
317 // Subframes use a different layout but the same html file. This is to make it | 320 // 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 | 321 // easier to support platforms that load the error page via different |
319 // mechanisms (Currently just iOS). | 322 // mechanisms (Currently just iOS). |
320 if (window.top.location != window.location) | 323 if (window.top.location != window.location) |
321 document.documentElement.setAttribute('subframe', ''); | 324 document.documentElement.setAttribute('subframe', ''); |
322 | 325 |
323 function updateForDnsProbe(strings) { | 326 function updateForDnsProbe(strings) { |
324 var context = new JsEvalContext(strings); | 327 var context = new JsEvalContext(strings); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
357 <div jsselect="summary"> | 360 <div jsselect="summary"> |
358 <span jsvalues=".innerHTML:msg"></span> | 361 <span jsvalues=".innerHTML:msg"></span> |
359 </div> | 362 </div> |
360 | 363 |
361 <div class="suggestions" jsselect="suggestions"> | 364 <div class="suggestions" jsselect="suggestions"> |
362 <div class="suggestion-header" jsvalues=".innerHTML:header"></div> | 365 <div class="suggestion-header" jsvalues=".innerHTML:header"></div> |
363 <div class="suggestion-body" jsvalues=".innerHTML:body"></div> | 366 <div class="suggestion-body" jsvalues=".innerHTML:body"></div> |
364 </div> | 367 </div> |
365 <button id="diagnose-button" onclick="diagnoseErrors()" | 368 <button id="diagnose-button" onclick="diagnoseErrors()" |
366 jscontent="diagnose" jsdisplay="diagnose"></button> | 369 jscontent="diagnose" jsdisplay="diagnose"></button> |
370 <div id="diagnose-frame" class="hidden"></div> | |
367 <div class="error-code" jscontent="errorCode"></div> | 371 <div class="error-code" jscontent="errorCode"></div> |
368 </div> | 372 </div> |
369 </div> | 373 </div> |
370 </div> | 374 </div> |
371 </div> | 375 </div> |
372 <div id="sub-frame-error"> | 376 <div id="sub-frame-error"> |
373 <!-- Show details when hovering over the icon, in case the details are | 377 <!-- Show details when hovering over the icon, in case the details are |
374 hidden because they're too large. --> | 378 hidden because they're too large. --> |
375 <img class="icon" jseval="this.classList.add(iconClass)" jsvalues=".title:erro rDetails"> | 379 <img class="icon" jseval="this.classList.add(iconClass)" jsvalues=".title:erro rDetails"> |
376 <div id="sub-frame-error-details" jsvalues=".innerHTML:errorDetails"></div> | 380 <div id="sub-frame-error-details" jsvalues=".innerHTML:errorDetails"></div> |
377 </div> | 381 </div> |
378 </body> | 382 </body> |
379 </html> | 383 </html> |
OLD | NEW |