-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (70 loc) · 1.41 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
height: 100%;
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
margin: 0;
overflow: hidden;
}
ul {
border-bottom: 1px solid #BBB;
padding: 0 0 0 8px;
margin: 0;
height: 23px;
line-height: 25px;
background: #E8E8E8;
color: #555;
overflow-x: auto;
}
ul::after {
display: inline-block;
vertical-align: middle;
height: 23px;
content: '';
}
li {
list-style-type: none;
display: inline-block;
margin-right: 16px;
}
iframe {
border: 0;
height: calc(100% - 24px);
width: 100%
}
.link, link:visited {
color: #0074D9;
text-decoration: none;
}
.link {
}
.link_active {
color: #444;
}
</style>
<meta charset="UTF-8">
<title>Coverage report index</title>
</head>
<body>
<ul>
%s
</ul>
<iframe src="%s"></iframe>
<script>
var iframe = document.querySelector('iframe');
document.addEventListener('click', function (e) {
if (e.target.classList.contains('link') && !e.ctrlKey && !e.metaKey) {
e.preventDefault();
iframe.src = e.target.href;
document.querySelector('.link_active').classList.remove('link_active');
e.target.classList.add('link_active');
}
});
</script>
</body>
</html>