Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed Sep 8, 2023
0 parents commit 07684c5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Ticket Viewer</title>
</head>
<body>
<div class="content"></div>
<script src="render.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions render.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var content = document.getElementById("content");

url = document.location.pathname.replace("/https:/", "");

fetch(url)
.then((html) => {
content.innerHTML = html;
})
.catch((error) => {
content.innerHTML = "<h1>404</h1>"
});
3 changes: 3 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
html {
background-color: dimgray;
}

0 comments on commit 07684c5

Please sign in to comment.