mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
Fix scss
This commit is contained in:
@@ -1,24 +1,24 @@
|
|||||||
import 'bootstrap/dist/css/bootstrap.min.css'
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
||||||
import * as bootstrap from 'bootstrap'
|
import * as bootstrap from 'bootstrap'
|
||||||
|
|
||||||
import './styles/quiz.scss'
|
import './styles/app.scss'
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
// Check if we're on the elimination candidate screen
|
// Check if we're on the elimination candidate screen
|
||||||
const eliminationScreen = document.querySelector('.elimination-screen');
|
const eliminationScreen = document.querySelector('.elimination-screen');
|
||||||
if (eliminationScreen) {
|
if (eliminationScreen) {
|
||||||
// Add event listener for any keypress
|
// Add event listener for any keypress
|
||||||
document.addEventListener('keydown', function(event) {
|
document.addEventListener('keydown', function (event) {
|
||||||
// Get the current URL
|
// Get the current URL
|
||||||
const currentUrl = window.location.href;
|
const currentUrl = window.location.href;
|
||||||
// Extract the elimination ID from the URL
|
// Extract the elimination ID from the URL
|
||||||
const urlParts = currentUrl.split('/');
|
const urlParts = currentUrl.split('/');
|
||||||
// Remove the candidate hash (last part of the URL)
|
// Remove the candidate hash (last part of the URL)
|
||||||
urlParts.pop();
|
urlParts.pop();
|
||||||
// Construct the URL to the main elimination page
|
// Construct the URL to the main elimination page
|
||||||
const redirectUrl = urlParts.join('/');
|
const redirectUrl = urlParts.join('/');
|
||||||
// Redirect to the main elimination page
|
// Redirect to the main elimination page
|
||||||
window.location.href = redirectUrl;
|
window.location.href = redirectUrl;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user