forked from Deyvid777/dozenvalues
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instructions.html
1 lines (1 loc) · 1.53 KB
/
instructions.html
1
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Dozenvalues</title><link rel="shortcut icon" href="./assets/icon.png" type="image/x-icon"><link href="./assets/icon.png" type="image/x-icon"><meta property="og:title" content="Dozenvalues"><meta property="og:image" content="https://quark88.github.io/dozenvalues/assets/icon.png"><meta property="og:url" content="https://quark88.github.io/dozenvalues"><meta property="og:type" content="Political test"><meta property="og:locale" content="en_US"><meta property="og:description" content="DozenValues is a political test that aims to map differing political perspectives onto six axes."><link rel="stylesheet" href="./dist/style.css"></head><body> <h1 id="title"></h1><h2 id="pagename"></h2><p id="instructiontext"></p><button id="quiz_button"></button><button id="quiz_random_button"></button><button id="back_button"></button><script type="module">import{getLanguage as t}from"./dist/common.js";let e=new URLSearchParams(document.location.search).get("lang")??"en";const n=t(e);e=n.lang??e;for(const t of Object.keys(n.instructiontext))document.getElementById(t).textContent=n.instructiontext[t];document.title=n.instructiontext.title,document.getElementById("quiz_button").addEventListener("click",(()=>window.location.href="quiz.html?lang="+e)),document.getElementById("quiz_random_button").addEventListener("click",(()=>window.location.href="quiz.html?lang="+e+"&rand=true")),document.getElementById("back_button").addEventListener("click",(()=>window.location.href="index.html?lang="+e));</script></body></html>