forked from IIC2513/Practica-PRs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (63 loc) · 1.71 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
<html>
<head>
<!-- Code heavily inspired from: https://github.com/muan/hello-world -->
<title>IIC2513 | Practica Pull-Requests</title>
<style>
body {
font-family: sans-serif;
padding: 10%;
text-align: center;
font-size: medium;
line-height: 1.65em;
}
img {
margin: 20px 10px 0;
}
code {
font-family: Consolas,"courier new";
color: crimson;
background-color: #f1f1f1;
padding: 2px;
font-size: 105%;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
text-align: center;
}
li {
display: inline;
margin: 10px;
}
</style>
</head>
<body>
<h1>¿Quiénes ya completaron su PR?</h1>
<small>Recuerda que este sitio puede demorar algunos minutos en actualizarse...</small>
<ul>
<li><a href="participantes.txt">Lista en <code>participantes.txt</code></a></li>
<li><a href="https://github.com/IIC2513/Practica-PRs/">Repo en GitHub 💻</a></li>
</ul>
<script type="text/javascript">
fetch('./participantes.txt').then(function (data) {
return data.text()
}).then(function (data) {
const logins = data.split('\n')
logins.forEach(function (login) {
if(!login) return
const a = document.createElement('a')
a.href = 'personas/' + login
const image = new Image(50, 50)
image.src = 'https://github.com/' + login + '.png?size=100'
a.appendChild(image)
document.body.appendChild(a)
image.onerror = function () {
a.remove()
}
})
})
</script>
</body>
</html>