From d8a68f2a653e72e642a3e60492854fd2dea1120f Mon Sep 17 00:00:00 2001 From: John Handley Date: Fri, 11 Oct 2024 13:45:23 +0100 Subject: [PATCH] Add dist --- dist/assets/index-DmngYW8n.css | 1 + dist/assets/index-XebTjhnR.js | 1 + dist/index.html | 38 ++++++++++++++++++++++++++++++++++ dist/vite.svg | 1 + 4 files changed, 41 insertions(+) create mode 100644 dist/assets/index-DmngYW8n.css create mode 100644 dist/assets/index-XebTjhnR.js create mode 100644 dist/index.html create mode 100644 dist/vite.svg diff --git a/dist/assets/index-DmngYW8n.css b/dist/assets/index-DmngYW8n.css new file mode 100644 index 0000000..e58564e --- /dev/null +++ b/dist/assets/index-DmngYW8n.css @@ -0,0 +1 @@ +:root,::backdrop{--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;--standard-border-radius: 5px;--bg: #fff;--accent-bg: #f5f7ff;--text: #212121;--text-light: #585858;--border: #898EA4;--accent: #0d47a1;--accent-hover: #1266e2;--accent-text: var(--bg);--code: #d81b60;--preformatted: #444;--marked: #ffdd33;--disabled: #efefef}@media (prefers-color-scheme: dark){:root,::backdrop{color-scheme:dark;--bg: #212121;--accent-bg: #2b2b2b;--text: #dcdcdc;--text-light: #ababab;--accent: #ffb300;--accent-hover: #ffe099;--accent-text: var(--bg);--code: #f06292;--preformatted: #ccc;--disabled: #111}img,video{opacity:.8}}*,*:before,*:after{box-sizing:border-box}textarea,select,input,progress{appearance:none;-webkit-appearance:none;-moz-appearance:none}html{font-family:var(--sans-font);scroll-behavior:smooth}body{color:var(--text);background-color:var(--bg);font-size:1.15rem;line-height:1.5;display:grid;grid-template-columns:1fr min(45rem,90%) 1fr;margin:0}body>*{grid-column:2}body>header{background-color:var(--accent-bg);border-bottom:1px solid var(--border);text-align:center;padding:0 .5rem 2rem;grid-column:1 / -1}body>header>*:only-child{margin-block-start:2rem}body>header h1{max-width:1200px;margin:1rem auto}body>header p{max-width:40rem;margin:1rem auto}main{padding-top:1.5rem}body>footer{margin-top:4rem;padding:2rem 1rem 1.5rem;color:var(--text-light);font-size:.9rem;text-align:center;border-top:1px solid var(--border)}h1{font-size:3rem}h2{font-size:2.6rem;margin-top:3rem}h3{font-size:2rem;margin-top:3rem}h4{font-size:1.44rem}h5{font-size:1.15rem}h6{font-size:.96rem}p{margin:1.5rem 0}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}h1,h2,h3{line-height:1.1}@media only screen and (max-width: 720px){h1{font-size:2.5rem}h2{font-size:2.1rem}h3{font-size:1.75rem}h4{font-size:1.25rem}}a,a:visited{color:var(--accent)}a:hover{text-decoration:none}button,.button,a.button,input[type=submit],input[type=reset],input[type=button],label[type=button]{border:1px solid var(--accent);background-color:var(--accent);color:var(--accent-text);padding:.5rem .9rem;text-decoration:none;line-height:normal}.button[aria-disabled=true],input:disabled,textarea:disabled,select:disabled,button[disabled]{cursor:not-allowed;background-color:var(--disabled);border-color:var(--disabled);color:var(--text-light)}input[type=range]{padding:0}abbr[title]{cursor:help;text-decoration-line:underline;text-decoration-style:dotted}button:enabled:hover,.button:not([aria-disabled=true]):hover,input[type=submit]:enabled:hover,input[type=reset]:enabled:hover,input[type=button]:enabled:hover,label[type=button]:hover{background-color:var(--accent-hover);border-color:var(--accent-hover);cursor:pointer}.button:focus-visible,button:focus-visible:where(:enabled),input:enabled:focus-visible:where([type=submit],[type=reset],[type=button]){outline:2px solid var(--accent);outline-offset:1px}header>nav{font-size:1rem;line-height:2;padding:1rem 0 0}header>nav ul,header>nav ol{align-content:space-around;align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;list-style-type:none;margin:0;padding:0}header>nav ul li,header>nav ol li{display:inline-block}header>nav a,header>nav a:visited{margin:0 .5rem 1rem;border:1px solid var(--border);border-radius:var(--standard-border-radius);color:var(--text);display:inline-block;padding:.1rem 1rem;text-decoration:none}header>nav a:hover,header>nav a.current,header>nav a[aria-current=page],header>nav a[aria-current=true]{border-color:var(--accent);color:var(--accent);cursor:pointer}@media only screen and (max-width: 720px){header>nav a{border:none;padding:0;text-decoration:underline;line-height:1}}aside,details,pre,progress{background-color:var(--accent-bg);border:1px solid var(--border);border-radius:var(--standard-border-radius);margin-bottom:1rem}aside{font-size:1rem;width:30%;padding:0 15px;margin-inline-start:15px;float:right}*[dir=rtl] aside{float:left}@media only screen and (max-width: 720px){aside{width:100%;float:none;margin-inline-start:0}}article,fieldset,dialog{border:1px solid var(--border);padding:1rem;border-radius:var(--standard-border-radius);margin-bottom:1rem}article h2:first-child,section h2:first-child,article h3:first-child,section h3:first-child{margin-top:1rem}section{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:2rem 1rem;margin:3rem 0}section+section,section:first-child{border-top:0;padding-top:0}section+section{margin-top:0}section:last-child{border-bottom:0;padding-bottom:0}details{padding:.7rem 1rem}summary{cursor:pointer;font-weight:700;padding:.7rem 1rem;margin:-.7rem -1rem;word-break:break-all}details[open]>summary+*{margin-top:0}details[open]>summary{margin-bottom:.5rem}details[open]>:last-child{margin-bottom:0}table{border-collapse:collapse;margin:1.5rem 0}figure>table{width:max-content;margin:0}td,th{border:1px solid var(--border);text-align:start;padding:.5rem}th{background-color:var(--accent-bg);font-weight:700}tr:nth-child(2n){background-color:var(--accent-bg)}table caption{font-weight:700;margin-bottom:.5rem}textarea,select,input,button,.button{font-size:inherit;font-family:inherit;padding:.5rem;margin-bottom:.5rem;border-radius:var(--standard-border-radius);box-shadow:none;max-width:100%;display:inline-block}textarea,select,input{color:var(--text);background-color:var(--bg);border:1px solid var(--border)}label{display:block}textarea:not([cols]){width:100%}select:not([multiple]){background-image:linear-gradient(45deg,transparent 49%,var(--text) 51%),linear-gradient(135deg,var(--text) 51%,transparent 49%);background-position:calc(100% - 15px),calc(100% - 10px);background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-inline-end:25px}*[dir=rtl] select:not([multiple]){background-position:10px,15px}input[type=checkbox],input[type=radio]{vertical-align:middle;position:relative;width:min-content}input[type=checkbox]+label,input[type=radio]+label{display:inline-block}input[type=radio]{border-radius:100%}input[type=checkbox]:checked,input[type=radio]:checked{background-color:var(--accent)}input[type=checkbox]:checked:after{content:" ";width:.18em;height:.32em;border-radius:0;position:absolute;top:.05em;left:.17em;background-color:transparent;border-right:solid var(--bg) .08em;border-bottom:solid var(--bg) .08em;font-size:1.8em;transform:rotate(45deg)}input[type=radio]:checked:after{content:" ";width:.25em;height:.25em;border-radius:100%;position:absolute;top:.125em;background-color:var(--bg);left:.125em;font-size:32px}@media only screen and (max-width: 720px){textarea,select,input{width:100%}}input[type=color]{height:2.5rem;padding:.2rem}input[type=file]{border:0}hr{border:none;height:1px;background:var(--border);margin:1rem auto}mark{padding:2px 5px;border-radius:var(--standard-border-radius);background-color:var(--marked);color:#000}mark a{color:#0d47a1}img,video{max-width:100%;height:auto;border-radius:var(--standard-border-radius)}figure{margin:0;display:block;overflow-x:auto}figure>img,figure>picture>img{display:block;margin-inline:auto}figcaption{text-align:center;font-size:.9rem;color:var(--text-light);margin-block:1rem}blockquote{margin-inline-start:2rem;margin-inline-end:0;margin-block:2rem;padding:.4rem .8rem;border-inline-start:.35rem solid var(--accent);color:var(--text-light);font-style:italic}cite{font-size:.9rem;color:var(--text-light);font-style:normal}dt{color:var(--text-light)}code,pre,pre span,kbd,samp{font-family:var(--mono-font);color:var(--code)}kbd{color:var(--preformatted);border:1px solid var(--preformatted);border-bottom:3px solid var(--preformatted);border-radius:var(--standard-border-radius);padding:.1rem .4rem}pre{padding:1rem 1.4rem;max-width:100%;overflow:auto;color:var(--preformatted)}pre code{color:var(--preformatted);background:none;margin:0;padding:0}progress{width:100%}progress:indeterminate{background-color:var(--accent-bg)}progress::-webkit-progress-bar{border-radius:var(--standard-border-radius);background-color:var(--accent-bg)}progress::-webkit-progress-value{border-radius:var(--standard-border-radius);background-color:var(--accent)}progress::-moz-progress-bar{border-radius:var(--standard-border-radius);background-color:var(--accent);transition-property:width;transition-duration:.3s}progress:indeterminate::-moz-progress-bar{background-color:var(--accent-bg)}dialog{max-width:40rem;margin:auto}dialog::backdrop{background-color:var(--bg);opacity:.8}@media only screen and (max-width: 720px){dialog{max-width:100%;margin:auto 1em}}sup,sub{vertical-align:baseline;position:relative}sup{top:-.4em}sub{top:.3em}.notice{background:var(--accent-bg);border:2px solid var(--border);border-radius:var(--standard-border-radius);padding:1.5rem;margin:2rem 0} diff --git a/dist/assets/index-XebTjhnR.js b/dist/assets/index-XebTjhnR.js new file mode 100644 index 0000000..061d004 --- /dev/null +++ b/dist/assets/index-XebTjhnR.js @@ -0,0 +1 @@ +(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function r(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const p=[2.792452830188679,4.132075471698113,2.9245283018867925,1.0754716981132075,2.0943396226415096,3.8867924528301887,2.0943396226415096,1.9056603773584906,4.150943396226415,2.6037735849056602,3.056603773584906,2.1132075471698113,3.30188679245283,2.3207547169811322,1.5660377358490567,2.0377358490566038,1.471698113207547],m={"Communist Party":[4.923076923076923,4.992307692307692,4.813953488372093,1.0307692307692307,5,4.953846153846154,2.1538461538461537,2.576923076923077,1,1.0076923076923077,1.1153846153846154,2.852713178294574,4.9689922480620154,5,1,1.0153846153846153,1.0923076923076922],"Constitutional Democratic Party":[2.9703389830508473,4.14468085106383,3.348936170212766,1.1864406779661016,4.408510638297872,4.452991452991453,2.297872340425532,1.6864406779661016,1.6567796610169492,1.6779661016949152,2.080508474576271,2.4893617021276597,3.978723404255319,3.944915254237288,1.2754237288135593,1.6382978723404256,1.3601694915254237],"Democratic Party for the People":[2.3703703703703702,3.3703703703703702,3.074074074074074,1.4444444444444444,3.3703703703703702,4.037037037037037,2.4444444444444446,1.6296296296296295,1.8888888888888888,2.074074074074074,2.6666666666666665,2.6296296296296298,3.5555555555555554,2.7777777777777777,1.5925925925925926,2.037037037037037,1.7407407407407407],"Japan Innovation Party":[1.3473684210526315,2.168421052631579,2.210526315789474,2.6315789473684212,2.1578947368421053,3.0631578947368423,3.5157894736842104,2.031578947368421,1.2526315789473683,2.7473684210526317,4.252631578947368,2.336842105263158,2.9263157894736844,1.5157894736842106,2.1789473684210527,2.3263157894736843,1.6],Komeito:p,"Liberal Democratic Party":[1.5602605863192183,2.248344370860927,2.2287581699346406,1.9150326797385622,1.6156351791530945,3.5841584158415842,2.0098360655737704,1.8241042345276872,3.7311475409836063,2.65016501650165,3.1827242524916945,2.4901315789473686,2.742574257425743,2.026143790849673,3.1337792642140467,3.3627118644067795,2.608843537414966],"Reiwa Shinsengumi":[3.1904761904761907,4.571428571428571,4.666666666666667,1.1904761904761905,4.9523809523809526,4.75,1.0952380952380953,1,1.1904761904761905,1.0476190476190477,1.0952380952380953,3.7142857142857144,4.523809523809524,4.904761904761905,1.0476190476190477,1.1428571428571428,1],"Social Democratic Party":[4.933333333333334,5,4.933333333333334,1,5,4.933333333333334,1.9333333333333333,2.7333333333333334,1,1.1333333333333333,1.1333333333333333,2.1333333333333333,5,5,1,1.0666666666666667,1.0666666666666667]},l=["Japan's defense capabilities should be strengthened.","Japan should not hesitate to attack enemy bases if an attack from another country is expected.","Pressure should take precedence over dialogue with North Korea.",'The three non-nuclear principles should be adhered to.','The relocation of the Futenma base in Okinawa Prefecture to Henoko is unavoidable.',"Smaller government that doesn't cost money is better, even if government services, such as social welfare, get worse.","Job security through public works is necessary.","For the time being, the fiscal stimulus should be used to stimulate the economy, instead of holding down spending for the sake of fiscal consolidation.","The consumption tax rate should be lowered, either temporarily or permanently.","Taxes on people with high incomes and assets should be increased.","The corporate tax rate should be raised.","We should promote the acceptance of foreign workers.","It is natural for privacy and individual rights to be restricted to protect public safety.",'The release of treated water from the Fukushima Daiichi Nuclear Power Plant into the ocean is unavoidable.',"Married couples should be allowed by law to continue to use each pre-marital surname after marriage if they wish to do so.","Same-sex marriage should be recognized by law.","The bill promote greater awareness among the public of LGBT people should be passed as soon as possible."],c=new Array(l.length);let a=0;function f(s){const o=new Array;for(const[n,r]of Object.entries(m)){let e=0;for(let t=0;tn[1]-r[1])}function u(){document.getElementById("heading").textContent=`Question ${a+1}`,document.getElementById("question").innerHTML=l[a]}function y(){document.getElementById("questions-page").style.display="none";const s=document.getElementById("results-page");s.style.display="block";const o=f(c),n=document.getElementById("table");for(const[r,e]of o){const t=n.insertRow(),i=t.insertCell();i.innerText=r;const h=t.insertCell();h.innerText=e.toFixed(1).toString()}document.getElementById("best-party").innerText=`Your closest party is the ${o[0][0]}`}function d(){a=0,c.fill(0),document.getElementById("questions-page").style.display="block",document.getElementById("results-page").style.display="none",u()}document.getElementById("answer").addEventListener("click",s=>{const o=s.target;o.dataset.value&&(c[a]=Number(o.dataset.value),a++,a + + + + + + Japan votematch + + + + + +
+

+

+
+ + + + + +
+
+ + + + \ No newline at end of file diff --git a/dist/vite.svg b/dist/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file