deleted: static/js/fullscreen.js

modified:   static/style.css
	modified:   templates/about.html
	modified:   templates/inactive.html
	modified:   templates/profiles.html
	modified:   templates/quiz.html
	modified:   templates/result.html
This commit is contained in:
xbl
2026-04-27 18:42:24 +02:00
parent c164c592fa
commit 12bed3cbe1
7 changed files with 71 additions and 94 deletions
+17 -17
View File
@@ -47,23 +47,23 @@
</div>
</form>
</div>
<script>
function toggleCard(card, index) {
const input = document.getElementById(`point${index}`);
const values = [20, 40, 80];
let value = parseInt(input.value, 10);
if (isNaN(value)) value = 20;
// Find next value in the cycle
const nextValue = values[(values.indexOf(value) + 1) % values.length];
input.value = nextValue;
card.classList.remove("active", "emphasis");
if (nextValue === 40) card.classList.add("active");
else if (nextValue === 80) card.classList.add("emphasis");
}
</script>
<script src="{{ url_for('static', filename='js/fullscreen.js') }}"></script>
<script>
function toggleCard(card, index) {
const input = document.getElementById(`point${index}`);
const values = [20, 40, 80];
let value = parseInt(input.value, 10);
if (isNaN(value)) value = 20;
// Find next value in the cycle
const nextValue = values[(values.indexOf(value) + 1) % values.length];
input.value = nextValue;
card.classList.remove("active", "emphasis");
if (nextValue === 40) card.classList.add("active");
else if (nextValue === 80) card.classList.add("emphasis");
}
</script>
<a class="video-link" href="{{ url_for('video') }}"></a>
<script src="{{ url_for('static', filename='js/idle.js') }}"></script>
</body>
</html>