blob: 496abd14ec6a4a26e48790a885a1b6481d4c5228 [file] [log] [blame]
<!doctype html>
<html i18n-values="dir:textdirection;lang:language">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
<title i18n-content="title"></title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<link rel="stylesheet" href="../security_warnings/interstitial_v2.css">
<link rel="stylesheet" href="../../../renderer/resources/neterror.css">
<script src="../../../../ui/webui/resources/js/util.js"></script>
<script src="neterror.js"></script>
<script src="../../../renderer/resources/offline.js"></script>
</head>
<body id="t">
<div id="main-frame-error" class="interstitial-wrapper">
<img class="icon"
jseval="updateIconClass(this.classList, iconClass)">
<div id="main-message">
<h1 i18n-content="heading"></h1>
<p i18n-values=".innerHTML:primaryParagraph"></p>
<div id="buttons" class="nav-wrapper suggested-right">
<div id="control-buttons">
<button id="reload-button" onclick="location = this.url"
jsselect="reload" jsvalues=".url:reloadUrl"
jscontent="msg"></button>
</div>
<button id="details-button" class="text-button small-link"
onclick="toggleHelpBox()" jscontent="details"
jsvalues=".detailsText:details; .hideDetailsText:hideDetails;"
jsdisplay="details"></button>
</div>
</div>
<div id="details" class="hidden">
<div jsselect="summary">
<span jsvalues=".innerHTML:msg"></span>
</div>
<div class="suggestions" jsselect="suggestions">
<div class="suggestion-header" jsvalues=".innerHTML:header"></div>
<div class="suggestion-body" jsvalues=".innerHTML:body"></div>
</div>
<button id="diagnose-button" onclick="diagnoseErrors()"
jscontent="diagnose" jsdisplay="diagnose"></button>
<div class="error-code" jscontent="errorCode"></div>
</div>
</div>
<div id="sub-frame-error">
<!-- Show details when hovering over the icon, in case the details are
hidden because they're too large. -->
<img class="icon" jseval="updateIconClass(this.classList, iconClass)"
jsvalues=".title:errorDetails">
<div id="sub-frame-error-details" jsvalues=".innerHTML:errorDetails"></div>
</div>
<div id="offline-resources">
<img id="offline-resources-1x" src="../../../renderer/resources/default_100_percent/offline/100-offline-sprite.png">
<img id="offline-resources-2x" src="../../../renderer/resources/default_200_percent/offline/200-offline-sprite.png">
<template id="audio-resources">
<audio id="offline-sound-press" src="../../../renderer/resources/sounds/button-press.mp3"></audio>
<audio id="offline-sound-hit" src="../../../renderer/resources/sounds/hit.mp3"></audio>
<audio id="offline-sound-reached" src="../../../renderer/resources/sounds/score-reached.mp3"></audio>
</template>
</div>
</body>
</html>