-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1 lines (1 loc) · 6.09 KB
/
index.html
File metadata and controls
1 lines (1 loc) · 6.09 KB
1
<!DOCTYPE html><html lang="en"> <head><meta charset="UTF-8"><title>Poll Vote Calculator</title><link rel="stylesheet" href="/calcque_webapp/styles/global.css"><link rel="stylesheet" href="/calcque_webapp/asset/index.CUldjpaX.css"></head> <body class="bg-gray-100 text-gray-900"> <h1 class="text-center font-bold text-xl mt-5">Poll Vote Calculator</h1> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="ZHnQzI" component-url="/calcque_webapp/asset/PollCalculator.COGTxuVB.js" component-export="default" renderer-url="/calcque_webapp/asset/client.CpyYvI-O.js" props="{}" ssr="" client="load" opts="{"name":"PollCalculator","value":true}" await-children=""><div class="container mx-auto px-4" data-v-8d9a2776><div class="form-control" data-v-8d9a2776><label class="label" data-v-8d9a2776><span class="label-text" data-v-8d9a2776>Total Votes:</span><input type="number" min="0" value="0" class="input input-bordered input-primary w-full max-w-xs" data-v-8d9a2776></label><!--[--><div class="label" data-v-8d9a2776><label for="option0" class="label" data-v-8d9a2776><span class="label-text" data-v-8d9a2776>Option 1 (%):</span><input id="option0" type="number" min="0" max="100" step="0.01" value="0" class="input input-bordered input-primary w-full max-w-xs" data-v-8d9a2776></label></div><div class="label" data-v-8d9a2776><label for="option1" class="label" data-v-8d9a2776><span class="label-text" data-v-8d9a2776>Option 2 (%):</span><input id="option1" type="number" min="0" max="100" step="0.01" value="0" class="input input-bordered input-primary w-full max-w-xs" data-v-8d9a2776></label></div><div class="label" data-v-8d9a2776><label for="option2" class="label" data-v-8d9a2776><span class="label-text" data-v-8d9a2776>Option 3 (%):</span><input id="option2" type="number" min="0" max="100" step="0.01" value="0" class="input input-bordered input-primary w-full max-w-xs" data-v-8d9a2776></label></div><div class="label" data-v-8d9a2776><label for="option3" class="label" data-v-8d9a2776><span class="label-text" data-v-8d9a2776>Option 4 (%):</span><input id="option3" type="number" min="0" max="100" step="0.01" value="0" class="input input-bordered input-primary w-full max-w-xs" data-v-8d9a2776></label></div><!--]--><ul class="list-disc pl-5 mt-4" data-v-8d9a2776><!--[--><li class="py-1" data-v-8d9a2776>Option 1: 0 votes</li><li class="py-1" data-v-8d9a2776>Option 2: 0 votes</li><li class="py-1" data-v-8d9a2776>Option 3: 0 votes</li><li class="py-1" data-v-8d9a2776>Option 4: 0 votes</li><!--]--></ul></div></div><!--astro:end--></astro-island> </body></html>