owo does it fix?

This commit is contained in:
Dario48true 2024-09-23 14:30:12 +02:00
parent 3346d1725f
commit 6af7abe041
2 changed files with 2 additions and 10 deletions

View file

@ -3,7 +3,6 @@
<head> <head>
<title>/</title> <title>/</title>
<link rel="stylesheet" href="/style.css" /> <link rel="stylesheet" href="/style.css" />
<script src="/script.js"></script>
</head> </head>
<body id="body"> <body id="body">
<div class="border"> <div class="border">
@ -22,6 +21,7 @@
<form> <form>
<input type="text" value="/" class="stretch" id="path" /> <input type="text" value="/" class="stretch" id="path" />
</form> </form>
<script src="/script.js"></script>
<nav class="row"> <nav class="row">
<div class="column folder"> <div class="column folder">
<a href="bin/"> <a href="bin/">

View file

@ -1,9 +1 @@
document document.getElementById("path").addEventListener("keydown", function(e) { if (e.code === "Enter") { e.preventDefault(); window.location.href = window.location.origin + e.target.value } })
.getElementById("path")
.addEventListener("keydown", function(event) {
if (event.code === "Enter") {
window.location.href =
window.location.origin + event.target.value;
}
});