Add mini fronted

This commit is contained in:
Danny Spina 2023-06-19 00:02:15 +02:00
parent 43cf017f03
commit 06ee0cabe4
2 changed files with 26 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules
index.js

24
dist/index.html vendored Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<h1>Welcome to Blaze this PAge</h1>
<p>Paste here the URL you want to wisit</p>
<label for="url">URL to blaze</label>
<input name="" utl id="typ" type="text" placeholder="Write an URL..." />
<button>BLAZE IT!</button>
<script>
const button = document.querySelector("button");
const input = document.querySelector("input");
button.addEventListener("click", function () {
const blazeUrl = "https://ill-red-skunk-wig.cyclic.app";
location.href = `${blazeUrl}/at=${input.value}`;
});
</script>
</body>
</html>