diff options
Diffstat (limited to 'assets/index.f2167513.js')
| -rw-r--r-- | assets/index.f2167513.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/assets/index.f2167513.js b/assets/index.f2167513.js new file mode 100644 index 0000000..7520ec7 --- /dev/null +++ b/assets/index.f2167513.js @@ -0,0 +1 @@ +const a=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 c of t.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).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)}};a();const d="http://localhost:8000/index.php";(async()=>{const i=await(await fetch(d)).json(),o=document.getElementById("tds-here");for(const n of i){const r=document.createElement("tr"),e=document.createElement("td");e.innerText=n,e.onclick=()=>l(n,n),r.appendChild(e),o.appendChild(r)}})();async function l(i,o){const n=await(await fetch(d,{method:"POST",body:o})).json(),r=document.getElementById("name-here"),e=document.getElementById("vtds-here");e.innerHTML="",r.innerHTML=`<th>Miasta w ${i} (${n.length}, <a href="https://duckduckgo.com/?q=wikipedia+Kategoria%3AMiasta+w+wojew%C3%B3dztwie+${i}" target="_blank">internet</a>)</th>`;for(const t of n){const c=document.createElement("tr"),s=document.createElement("td");s.innerText=t,c.appendChild(s),e.appendChild(c)}} |
