From 55d0e202677253ecf893bd52649871f10b52d3de Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Sun, 24 Oct 2021 18:59:50 +0200 Subject: Almost dragging and WYSiWYG start --- src/index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index 00391b5..79d5386 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,12 @@ -import "@/styles/index.css"; +import "Styles/index.css"; +async function goToMain() { + const i = document.getElementsByTagName("input")[0] + const res = await (await fetch("http://localhost:8000/getFridge.php?name=" + i.value)).text() + sessionStorage.fridge = res; + location.href = "/main.html" +} +declare global { + interface Window { goToMain: () => void; } +} +window.goToMain = goToMain -- cgit v1.3.1