This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
st.html
104 lines (98 loc) · 4.72 KB
/
st.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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Flace | Paramètres</title>
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" id="themestyle" href="./css/light.css">
<link rel="icon" type="image/x-icon" href="./img/faviconcolor-fixed.png">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<meta name="msapplication-TileColor" content="#FFFFFF">
<meta name="description" content="Flace est un site d’apprentissage fondé sur l’utilisation de flashcards.">
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
</head>
<body>
<!-- navbar -->
<div class="navbar">
<img onclick="location.href = './'" src="img/faviconcolor-fixed.png" alt="flacelogo">
<i onclick="location.href = './'" class='bx bx-home '></i>
<i onclick="location.href = 'matiere.html'" class="bx bx-card"></i>
<i onclick="location.href = 'st.html'" class='bx bx-slider-alt hover'></i>
<i onclick="location.href = 'info.html'" class=' bx bx-info-circle'></i>
</div>
<div class="matiere">
<i onclick="history.back()" class="bx bx-left-arrow-alt"></i>
<p>Réglages</p>
<i onclick="location.reload()" class="bx bx-redo"></i>
</div>
<div class="home">
<div class="stcont">
<div class="st">
<div class="left">
<h8><i class='bx bx-paint'></i> Thème du site</h8>
<h6>Change l'apparence de Flace</h6>
</div>
<select name="themeselect" id="themeselect">
<option value="auto">Automatique</option>
<option value="light">Clair</option>
<option value="dark">Sombre</option>
</select>
<script>
function initThemeSelector () {
const themeSelect = document.getElementById("themeselect")
const themestyle = document.getElementById("themestyle")
const currentTheme = localStorage.getItem("theme") || "auto";
function activateTheme(cssname) {
themestyle.setAttribute("href", `themes/${cssname}.css`);
}
themeSelect.addEventListener("change", () => {
activateTheme(themeSelect.value);
localStorage.setItem("theme", themeSelect.value)
});
themeSelect.value = currentTheme;
activateTheme(currentTheme)
}
initThemeSelector();
</script>
</div>
<div class="separator"></div>
<div class="st">
<div class="left">
<h8><i class='bx bx-book-open'></i> Matière préférée</h8>
<h6>Change la première matière affichée dans la page des matières</h6>
</div>
<select name="select" id="matiereselect">
<option value="0">Mathématiques</option>
<option value="1">Anglais</option>
<option value="2">SVT</option>
<option value="3">Histoire-Géographie</option>
</select>
<script>
function initselector(){
const currentmatiere = localStorage.getItem("matierepref") || 1;
const matiereselect = document.getElementById('matiereselect')
matiereselect.addEventListener("change", () => {
localStorage.setItem("matierepref", matiereselect.value)
});
matiereselect.value = currentmatiere;
}
initselector()
</script>
</div>
<div class="separator"></div>
<div class="st">
<h8>Autres actions</h8>
<div class="buttons">
<button onclick="localStorage.clear();location.href = 'setup.html'">Effacer les données local</button>
<button onclick="location.href = 'setup.html'">Changer son nom d'utilisateur</button>
</div>
</div>
</div>
</div>
<script>AOS.init();</script>
<script src="js/main.js"></script>
</body>
</html>