summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/resources/neterror.html
blob: dd456af9f0d4df7d1eb5a09cf56b74b6c8dfafb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html i18n-values="dir:textdirection">
<head>
<title i18n-content="title">
</title>
<style>
body {
  background-color: white;
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
}

html[main-frame] body {
  background-color: #CCC;
}

html[main-frame][high-color-depth] body {
  background: -webkit-linear-gradient(#CCC, #AAA);
  background-attachment: fixed;
}

html[main-frame] #cell {
  padding: 40px;
}

#box {
  background-color: white;
  color: black;
  font-size: 10pt;
  line-height: 18px;
  margin: auto;
  max-width: 750px;
  min-width: 200px;
  padding: 5px;
}

html[main-frame] #box {
  border-radius: 5px;
  -webkit-box-shadow: 2px 5px 12px #555;
  padding: 20px;
  width: 80%;
}

ul {
  margin: 0;
  padding-bottom: 0;
}

li {
  padding-top: 2px;
}

h1 {
  font-size: 12pt;
  line-height: 20px;
  margin: 0;
}

html[main-frame] h1 {
  font-size: 18pt;
  line-height: 30px;
}

h1 img {
  border: 0;
  float: right;
  -webkit-margin-start: 20px;
  margin-top: -4px;
}

html[dir=rtl] h1 img {
  float: left;
}

h2 {
  font-size: 10pt;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

a {
  color: #00c;
}

a:active {
  color: #f00;
}

a:visited {
  color: #551a8b;
}

#errorSummary, #suggestions, #search {
  -webkit-margin-start: 3px;
  margin-top: 15px;
}

#errorDetails {
  color: #777;
  -webkit-margin-start: 3px;
  margin-top: 30px;
}

.failedUrl {
  word-wrap: break-word;
}
</style>
</head>

<script>
/**
 * Sets the classes of elements to match their jscontent values.
 * Elements without jscontent values are ignored.
 *
 * This allows styles to be applied to nested elements from
 * within GRD files.  To work on these elements, this must be
 * called after jscontent substitution.
 */
function setJsContentElementClasses() {
  var elements = document.querySelectorAll('[jscontent]');
  for (var i = 0; i < elements.length; ++i) {
    elements[i].className = elements[i].getAttribute('jscontent');
  }
}

document.addEventListener('DOMContentLoaded',
                          setJsContentElementClasses,
                          false);

// A grey border and larger font is used when the error page is
// in the main frame.
if (window.top.location == window.location)
  document.documentElement.setAttribute('main-frame', '');

// The border only uses a gradient when using at least 24-bit color.
if (window.screen.colorDepth >= 24)
  document.documentElement.setAttribute('high-color-depth', '');
</script>

<body id="t">
<div id="cell">
 <div id="box">
  <h1>
   <img src="../../app/theme/%DISTRIBUTION%/product_logo.png" />
   <span i18n-content="heading"></span>
  </h1>

  <div id="errorSummary" jsselect="summary">
   <span jsvalues=".innerHTML:msg"></span>
  </div>

  <div id="suggestions" jsdisplay="suggestionsHeading">
   <h2 i18n-content="suggestionsHeading"></h2>
   <ul>
    <li jsselect="suggestionsReload">
      <span jsvalues=".innerHTML:msg"></span>
    </li>
    <li jsselect="suggestionsHomepage">
      <span jscontent="suggestionsHomepageMsg"></span>
      <a jscontent="hostName" jsvalues="href:homePage"></a>
    </li>
    <li jsselect="suggestionsCheckConnection">
      <span jsvalues=".innerHTML:msg"></span>
    </li>
    <li jsselect="suggestionsDNSConfig">
      <span jsvalues=".innerHTML:msg"></span>
    </li>
    <li jsselect="suggestionsDisableNetworkPrediction">
      <span jsvalues=".innerHTML:msg"></span>
    </li>
    <li jsselect="suggestionsFirewallConfig">
      <span jsvalues=".innerHTML:msg"></span>
    </li>
    <li jsselect="suggestionsProxyConfig">
      <span jsvalues=".innerHTML:msg"></span>
    </li>
    <li jsselect="suggestionsProxyDisable">
      <span jsvalues=".innerHTML:msg"></span>
    </li>
    <li jsselect="suggestionsLearnMore">
      <span jsvalues=".innerHTML:msg"></span>
    </li>
   </ul>
  </div>

  <div id="errorDetails" jsselect="details" jscontent="$this"></div>
 </div>
</div>
</body>
</html>