forked from ULL-MFP-AET-2223/ull-mfp-aet-2223.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteams.html
36 lines (27 loc) · 899 Bytes
/
teams.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
---
layout: default
title: AET 23/24 Teams
fakeStudents: "alu0100291865" #"parallel,alumnoudv4,alu0100291865"
---
<h2>
<div id="you"></div>
</h2>
{% assign numTeams = site.data.students.data.organization.teams.totalCount %}
{% assign fakes = page.fakeStudents %}
{% assign fakeStudents = fakes | split: "," %}
{% assign numFakes = fakeStudents.size %}
<h1> {{ page.title }}</h1>
<h2>{{ numTeams }} Students, {{ numFakes }} fake students, {{ numTeams | minus: numFakes }} real students</h2>
{% include teams.html fake=fakes %}
<script>
let login = localStorage.getItem("login");
let emails = localStorage.getItem("emails");
console.log(login);
console.log(emails);
if (login == "{{ site.profesor_github }}") {
document.getElementById("all-students").hidden = false;
}
if (login) {
document.getElementById("you").innerHTML = `Activity of ${login}`;
}
</script>