-
Notifications
You must be signed in to change notification settings - Fork 23
/
dashboard.html
79 lines (59 loc) · 2.43 KB
/
dashboard.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Dashboard</title>
<style>
body {
font-size: 16px;
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
iframe {
border: 1px solid #ccc;
width: 49%;
height: 30%;
}
</style>
</head>
<body>
<iframe id="radar" src="http://w3c.github.io/i18n-activity/projects/"></iframe>
<div style="float:right; width:5%; text-align:right;">
<button style="float:right; width: 1.5%; margin: 2em 1em;"
onClick="iframes=document.querySelectorAll('iframe');
for (i=0;i<iframes.length;i++) console.log(iframes[i].id);
for (i=0;i<iframes.length;i++) {
console.log(iframes[i].id);
if (iframes[i].id !== 'wgs') {
iframe = iframeRef(iframes[i]);
iframe.querySelector('body').style.fontSize='12px';
}
}">↓</button>
<p style="margin:2em 1em;"><a href="https://github.com/orgs/w3c/projects/91" target="_blank">Review radar</a></p>
<p style="margin:2em 1em;"><a href="https://github.com/orgs/w3c/projects/92/views/1" target="_blank">Article Pipeline</a></p>
</div>
<iframe id="wgs" class="external" src="https://w3c.github.io/spec-dashboard/report.html"></iframe>
<iframe id="reviews" src="http://w3c.github.io/i18n-activity/reviews/"></iframe>
<iframe id="docstatus" src="http://w3c.github.io/i18n-activity/repostatus/"></iframe>
<iframe id="layout" src="http://w3c.github.io/i18n-activity/textlayout/"></iframe>
<!--iframe src="https://github.com/orgs/w3c/projects/92/views/1"></iframe>
<iframe src="https://github.com/w3c/i18n-activity/projects/1"></iframe-->
</body>
<script>
var iframes = document.querySelectorAll('iframe')
document.getElementById('radar').style.width = '49%'
document.getElementById('radar').style.height = window.innerHeight/3+'px'
document.getElementById('wgs').style.width = '40%'
document.getElementById('wgs').style.height = window.innerHeight/3+'px'
document.getElementById('reviews').style.width = '32%'
document.getElementById('reviews').style.height = window.innerHeight/3*2+'px'
document.getElementById('docstatus').style.width = '32%'
document.getElementById('docstatus').style.height = window.innerHeight/3*2+'px'
document.getElementById('layout').style.width = '32%'
document.getElementById('layout').style.height = window.innerHeight/3*2+'px'
function iframeRef( frameRef ) {
return frameRef.contentWindow
? frameRef.contentWindow.document
: frameRef.contentDocument
}
</script>
</html>