This repository was archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgallery.html
More file actions
1 lines (1 loc) · 2.26 KB
/
gallery.html
File metadata and controls
1 lines (1 loc) · 2.26 KB
1
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>PolcompballValues</title><link rel="icon" type="x-icon" href="./assets/icon.png"><link rel="shortcut icon" type="x-icon" href="./assets/icon.png"><meta name="theme-color" content="#000000" data-react-helmet="true"><meta property="og:ttl" content="600"><meta property="og:type" content="website"><meta property="og:site_name" content="polcompballvalues.github.io"><meta property="og:url" content="https://polcompballvalues.github.io/"><meta property="og:title" content="PolcompballValues (Archive)"><meta property="og:description" content="PolcompballValues a quiz aimed at members of the Polcompball community."><meta property="og:image" content="https://polcompballvalues.github.io/assets/previcon.png"><meta property="og:image:width" content="1024"><meta property="og:image:height" content="1024"><link href="./dist/style.css" rel="stylesheet" type="text/css"></head><body><h1>PolcompballValues</h1><h2>User Gallery</h2><select name="user" id="userdropdown"></select><br><canvas id="banner"></canvas><button class="button" onclick="window.history.back()" id="back-button">Back</button><button class="button" onclick="location.href='credits.html'" id="credits-button">Credits</button><script type="application/javascript">globalThis.VERSION = "2.3.0 (Archive)"</script><script type="module">var e,a,r,n,t,o,d,s,l,i,m,c,w;import{Canvas as u,getJson as E}from"./dist/common.min.js";for(w=await E("values"),m=await E("users"),l={gallery:!0,edition:"User gallery",version:globalThis.VERSION},r=document.getElementById("banner"),[e,t]=window.matchMedia("(prefers-color-scheme: dark)").matches?["#333","#EEE"]:["#EEE","#333"],a=new u(r,1860,800,t,e),n=e=>{var r,n,t,o,d,s;for(a.clearFields(),r={...l,user:e.name},n=t=0,o=(d=e.stats).length;t<o;n=++t)s=d[n],a.drawValueBg(n),a.drawScoreRect(e.stats,w,n,n),a.drawScoreLabel(s,w,n);return a.drawHeader(r)},(i=document.getElementById("userdropdown")).addEventListener("change",(()=>n(m[i.selectedIndex]))),i.innerHTML+=m.map(((e,a)=>`<option value=${a}>${e.name}</option>`)).join(""),o=d=0,s=w.length;d<s;o=++d)c=w[o],a.drawValues(c,o);setTimeout((()=>{var e;return e=new Event("load"),window.dispatchEvent(e),n(m[0])}),300);</script></body></html>