diff --git a/i18n.js b/i18n.js index d39a8ce..aac0384 100644 --- a/i18n.js +++ b/i18n.js @@ -4,7 +4,7 @@ function getCookie (name) { const parts = value.split('; ' + name + '=') if (parts.length === 2) return parts.pop().split(';').shift() } -function setCookie (cname, cvalue, exhours) { +function setCookie (cname, cvalue, exhours = 1) { const d = new Date() d.setTime(Date.now() + (exhours * 60 * 60 * 1000)) const expires = 'expires=' + d.toUTCString() diff --git a/quiz.html b/quiz.html index 4ce6cd9..54897a3 100644 --- a/quiz.html +++ b/quiz.html @@ -49,90 +49,7 @@