rename project to fhdhview
This commit is contained in:
1 parent
c4d3b6b292
commit
6755875938
51 files changed
+39
-39
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="nl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>VANDAAG — Filmhuis Den Haag</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="screen">
|
||||
<section class="programme">
|
||||
<h1>Vandaag</h1>
|
||||
<div id="films"></div>
|
||||
</section>
|
||||
<aside class="sidebar">
|
||||
<div class="top">
|
||||
<div class="date" id="date"></div>
|
||||
<div class="logo"><img src="/static/Logo.svg" alt="Filmhuis Den Haag"></div>
|
||||
</div>
|
||||
<h2>Prijzen</h2>
|
||||
<div id="prijzen"></div>
|
||||
<h3>Kortingsprijzen</h3>
|
||||
<div id="kortingsprijzen"></div>
|
||||
</aside>
|
||||
</div>
|
||||
<script src="/static/info.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Upload Schedule</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body style="font-family: sans-serif; max-width: 480px; margin: 40px auto;">
|
||||
<img src="/static/Logo.svg" alt="Logo" style="filter: invert(1);">
|
||||
<br>
|
||||
<br>
|
||||
<h1>Upload a schedule</h1>
|
||||
<form id="upload-form">
|
||||
<input type="file" name="file" required>
|
||||
<button type="submit">Upload</button>
|
||||
</form>
|
||||
<p id="message"></p>
|
||||
<script>
|
||||
const form = document.getElementById("upload-form");
|
||||
const message = document.getElementById("message");
|
||||
form.onsubmit = async (e) => {
|
||||
e.preventDefault();
|
||||
message.textContent = "Uploading...";
|
||||
try {
|
||||
const res = await fetch("/admin/upload", { method: "POST", body: new FormData(form) });
|
||||
const data = await res.json();
|
||||
if (res.ok) {
|
||||
message.style.color = "green";
|
||||
message.textContent = `Uploaded ${data.filename} (${data.size} bytes).`;
|
||||
} else {
|
||||
message.style.color = "red";
|
||||
message.textContent = data.detail;
|
||||
}
|
||||
} catch {
|
||||
message.style.color = "red";
|
||||
message.textContent = "Upload failed (network error).";
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user