blaze/dist/index.html

80 lines
2.0 KiB
HTML
Raw Normal View History

2023-06-20 07:47:30 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta
name="description"
content="Blaze: The search engine for seamless browsing in challenging connections. Discover fast results and access online content efficiently."
/>
2023-06-23 14:16:35 +00:00
<meta http-equiv="Cache-control" content="public" />
2023-06-20 07:47:30 +00:00
<title>Blaze</title>
<style>
body {
font-family: sans-serif;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
height: 100dvh;
margin: 0;
padding: 0;
flex-direction: column;
}
footer,
section {
margin-top: auto;
}
button,
input {
padding: 1rem;
}
footer {
display: flex;
2023-06-20 11:13:43 +00:00
justify-content: space-around;
width: 100%;
padding: 1rem;
2023-06-20 07:47:30 +00:00
}
2023-06-20 10:45:59 +00:00
h1 {
font-size: 3rem;
}
2023-06-20 07:47:30 +00:00
</style>
</head>
<body>
<section>
<h1>BLA⚡E</h1>
2023-06-20 07:47:30 +00:00
<input
name="u"
id="u"
type="text"
placeholder="Search something..."
/><br /><br /><button>BLAZE IT!</button>
</section>
<footer>
<a href="/info">What is this?</a>
<a href="https://www.buymeacoffee.com/dannyspina">Buy me a 🍺</a>
</footer>
<script>
const DEV = 0,
e = DEV ? "http://localhost:8888" : "https://blaze.cyclic.app",
t = document.querySelector("button"),
c = document.querySelector("input");
t.addEventListener("click", () => {
2023-06-22 14:38:38 +00:00
location.href = e + "?q=" + encodeURIComponent(c.value);
2023-06-20 07:47:30 +00:00
});
2023-06-23 14:16:35 +00:00
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("/service-worker.js")
.catch((error) => {
console.log(
"Something went wrong with installation of the service worker:",
error
);
});
}
2023-06-20 07:47:30 +00:00
</script>
</body>
</html>