diff --git a/sh/index.html b/sh/index.html index bb37ccc..f5f8f64 100644 --- a/sh/index.html +++ b/sh/index.html @@ -1,17 +1 @@ -< !DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport" -content = "width=device-width, initial-scale=1.0" > < title > URL Shortener < /title> < body > < h1 > URL Shortener < /h1>

Redirecting...

< script > function getQueryParams() { - return new URLSearchParams(window.location.search) -} -async function redirectUser() { - const params = getQueryParams(), - route = params.get('r'); - if (route) { - const response = await fetch('p/redirects.json'), - data = await response.json(), - redirectEntry = data.find(entry => entry.sh === route); - if (redirectEntry) { - window.location.href = redirectEntry.url - } - - } - window.onload = redirectUser; < /script> < /html> +URL Shortener

URL Shortener

Redirecting...