diff --git a/.slugignore b/.slugignore new file mode 100644 index 0000000..fc5e2e6 --- /dev/null +++ b/.slugignore @@ -0,0 +1,2 @@ +./react-app +./.test.env \ No newline at end of file diff --git a/index.js b/index.js index d4cf6ff..02b9b7c 100644 --- a/index.js +++ b/index.js @@ -65,10 +65,6 @@ app.use(session({ secret: process.env.SECRET, resave: true, saveUninitialized: true, - sameSite: 'none', - overwrite: true, - secure: false, - maxAge: 1000 * 60 * 60 * 24 * 7 })); } diff --git a/react-app/src/Pages/Question/Question.js b/react-app/src/Pages/Question/Question.js index 874065d..c6dd595 100644 --- a/react-app/src/Pages/Question/Question.js +++ b/react-app/src/Pages/Question/Question.js @@ -63,26 +63,42 @@ function Question() { } function showProblem() { - if (loadedv === true) { - document.getElementById('question-container').style.display = 'flex'; - } + let interval = setInterval(() => { + if (loadedv === true) { + document.getElementById('question-container').style.display = 'flex'; + clearInterval(interval); + } + }, 100) } + function hideProblem() { - if (loadedv === true) { - document.getElementById('question-container').style.display = 'none'; - } + let interval = setInterval(() => { + if (loadedv === true) { + document.getElementById('question-container').style.display = 'none'; + clearInterval(interval); + } + }, 100); + } function showSubmission() { - if (loadedv === true && document.getElementById('submissions-container') !== null) { - document.getElementById('submissions-container').style.display = 'flex'; - } + let interval = setInterval(() => { + if (loadedv === true && document.getElementById('submissions-container') !== null) { + document.getElementById('submissions-container').style.display = 'flex'; + clearInterval(interval); + } + + }, 100); + } function hideSubmission() { - if (loadedv === true && document.getElementById('submissions-container') !== null) { - document.getElementById('submissions-container').style.display = 'none'; - } + let interval = setInterval(() => { + if (loadedv === true && document.getElementById('submissions-container') !== null) { + document.getElementById('submissions-container').style.display = 'none'; + clearInterval(interval); + } + }, 100); } function verifyLogged(redirect) { @@ -228,14 +244,14 @@ function Question() {