mirror of
https://github.com/cupcakearmy/blaze.git
synced 2025-12-09 04:35:00 +00:00
Testing some stuff
This commit is contained in:
9
dist/index.html
vendored
9
dist/index.html
vendored
@@ -48,10 +48,17 @@
|
||||
timeout errors from occurring.
|
||||
</p>
|
||||
<script>
|
||||
const DEV_MODE = false
|
||||
|
||||
let url = "https://ill-red-skunk-wig.cyclic.app"
|
||||
if (DEV_MODE) {
|
||||
url = "http://localhost:8888"
|
||||
}
|
||||
|
||||
const b = document.querySelector("button"),
|
||||
i = document.querySelector("input");
|
||||
b.addEventListener("click", () => {
|
||||
location.href = `https://ill-red-skunk-wig.cyclic.app?q=${encodeURI(i.value)}`;
|
||||
location.href = `${url}?q=${encodeURI(i.value)}`;
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user