german-verbs-vitejs/dist/assets/index.a0c15b74.js

8 lines
1.5 KiB
JavaScript

const f=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&l(a)}).observe(document,{childList:!0,subtree:!0});function s(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(e){if(e.ep)return;e.ep=!0;const r=s(e);fetch(e.href,r)}};f();var o={verbs:["dr\xFCcken","fahren","fallen","gehen","lassen","laufen","legen","halten","machen","sagen","schlagen","sehen","stehen","setzen","steigen","treten","werfen"],prefixes:["ab","an","auf","aus","ent","fort","nach","um","ver","vor","weg","zur\xFCck"]};function d(n,t){return n=Math.ceil(n),t=Math.floor(t),Math.floor(Math.random()*(t-n))+n}const i=o.verbs.reduce((n,t)=>n.concat(o.prefixes.map(s=>s+t)),[]),u=d(0,i.length-1),c=i[u];document.querySelector("#app").innerHTML=`
<h1>What does '<a href='https://dict.cc/${c}'>${c}</a>' mean?</h1>
<h2>And does this word even exist? \u{1F914}</h2>
<p>This word comes from a collection of ${o.verbs.length*o.prefixes.length} verbs made from only ${o.verbs.length} verbs and ${o.prefixes.length} prefixes. See how lazy germans are?</p>
`;