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:
+17
-17
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user