-
Notifications
You must be signed in to change notification settings - Fork 0
/
results_base.html
257 lines (217 loc) · 5.77 KB
/
results_base.html
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Site Test Results for {{site.title}}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<style>
.nav-tabs{
margin-bottom:15px;
}
ul, li{
list-style-type: none;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
line-height: 1.5em;
}
.fa:hover{
text-decoration: none;
}
ul{
padding-left:0px;
}
.image-row{
width:100%;
overflow:hidden;
border-top:1px solid #ccc;
padding-top:10px;
}
.image-cell{
float:left;
width:25%;
}
.image-cell img{
width:90%;
max-width:100%;
margin:auto;
}
.image-cell p{
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
.toplink{
position: fixed;
right:20px;
bottom:20px;
}
.panel-title .pull-right > span{
margin-right:10px;
}
.red, .score-low{
color:#d9534f;
}
.yellow,.score-medium-low{
color: #eea236;
}
.lt-blue, .score-medium{
color: #5bc0de;
}
.blue, .score-medium-high{
color: #337ab7;
}
.green, .score-high{
color: #5cb85c;
}
.link-container{
word-wrap: break-word;
}
.screenshots{
width:100%;
overflow:hidden;
margin-bottom: 2em;
}
.screenshots figure{
float:left;
width:25%;
height: 200px;
}
.screenshots figure img{
max-width:90%;
}
.result-message h4{
font-size: 18px;
color: #333;
margin-bottom: 0;
margin-top: 20px;
font-weight: normal;
}
.box{
width:100%;
overflow:hidden;
}
.box .inner{
width:50%;
float:left;
padding-right: 20px;
}
.box .inner:last-child{
padding-right:0;
}
dl {
display: block;
padding: 10px;
margin: 0 0 10px;
color: #333;
word-break: break-all;
word-wrap: break-word;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px;
}
dt {
float: left;
clear: left;
width: 25%;
margin-right:7px;
text-align: right;
font-weight: bold;
}
dt:after {
content: ":";
}
dd {
padding: 0 0 0.5em 0;
border-bottom: 1px solid #fff;
}
</style>
<link rel="icon" type="image/png" href="{{site.url}}/favicon.ico">
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script>
</script>
</head>
<body>
<div class="container">
{% include 'partials/results_header.html' with context %}
<!-- Nav tabs -->
{% block nav %}
<ul class="nav nav-tabs" >
<li><a href="./errors.html" role="presentation">Errors & Warnings</a></li>
<li><a href="./site.html" role="presentation">Site Info</a></li>
<li><a href="./parsed.html" role="presentation">Parsed Pages</a></li>
<li><a href="./loaded.html" role="presentation">Loaded Pages</a></li>
{% if output_unloaded_links %}
<li><a href="./other.html" role="presentation">All Other Pages</a></li>
{% endif %}
{% if set.test_results %}
<li><a href="./tests.html" role="presentation">Test Results</a></li>
{% endif %}
</ul>
{% endblock %}
<div class="tab-content">
<div class="tab-pane active">
{% block content %}
Override in template
{% endblock %}
</div>
</div>
</div>
<script>
//console.log("scripts go here")
$(".collapse-all").bind("click", function(event){
$('.panel-collapse.in').collapse('hide');
})
$(".expand-all").bind("click", function(event){
$('.panel-collapse:not(".in")').collapse('show');
})
$(".pagelink").bind("click", function(event){
var full_link_target = $(this).attr('href')
var link_target = (full_link_target).split("#")[1];
var parsed_id = "#pages-parsed"
var loaded_id = "#pages-loaded"
var other_id = "#pages-other"
var is_in_parsed = $(parsed_id).find("#"+link_target).length > 0;
var is_in_loaded = $(loaded_id).find("#"+link_target).length > 0;
var is_in_other = $(other_id).find("#"+link_target).length > 0;
var target_tag = is_in_parsed? parsed_id : is_in_loaded? loaded_id : other_id
$('[href='+target_tag+']').tab('show');
var selector = "#"+link_target+" .pull-left a"
$(selector).trigger("click")
});
$( document ).ready(function() {
if(window.location.hash !=''){
$(window.location.hash).each(function( index, item ) {
var isPanel = $(item).hasClass("panel-collapse");
if(isPanel){
$(item).collapse('show');
}else{
var panel_id = window.location.hash.replace("result-h", "result-body-h");
var isPanel = $(panel_id).hasClass("panel-collapse");
if(isPanel){
$(panel_id).collapse('show');
}
}
});
}
});
</script>
<!-- child of the body tag -->
<span class="toplink">
<a href="#top">
<i class="fa fa-angle-double-up"></i> Back to Top
</a>
</span><!-- /top-link-block -->
</body>
</html>