finished updates

This commit is contained in:
Jannis Heydemann
2026-04-30 08:22:46 +02:00
parent c805221208
commit e143d8360a
6 changed files with 18 additions and 18 deletions

View File

@@ -948,10 +948,10 @@
</div> </div>
</div> </div>
<script src="src/main.js"></script> <script type="module" src="dist/main.js"></script>
<script src="src/cart.js"></script> <script type="module" src="dist/cart.js"></script>
<script src="src/booking.js"></script> <script type="module" src="dist/booking.js"></script>
<script src="src/checkout.js"></script> <script type="module" src="dist/checkout.js"></script>
<script type="module" src="dist/account.js"></script> <script type="module" src="dist/account.js"></script>
</body> </body>
</html> </html>

View File

@@ -1,4 +1,4 @@
import type { User } from "./interfaces"; import type { User } from "./interfaces.js";
function readStorageJson(key: string, fallbackValue: any) { function readStorageJson(key: string, fallbackValue: any) {
const raw = localStorage.getItem(key); const raw = localStorage.getItem(key);

View File

@@ -1,6 +1,6 @@
import { seatLayouts, occupiedSeatsData, prices, cart } from "./main" import { seatLayouts, occupiedSeatsData, prices, cart } from "./main.js"
import { renderCart, saveCart } from "./cart"; import { renderCart, saveCart } from "./cart.js";
import { renderCheckout } from "./checkout"; import { renderCheckout } from "./checkout.js";
let currentBookingContext: any = null; let currentBookingContext: any = null;
let currentHallLayout: any = null; let currentHallLayout: any = null;

View File

@@ -1,4 +1,4 @@
import { cart } from "./main"; import { cart } from "./main.js";
function formatEuro(value: number) { function formatEuro(value: number) {
return `${Number(value || 0).toFixed(2).replace(".", ",")} EUR`; return `${Number(value || 0).toFixed(2).replace(".", ",")} EUR`;

View File

@@ -1,6 +1,6 @@
import { currentUser, users } from "./account"; import { currentUser, users } from "./account.js";
import { renderCart, saveCart } from "./cart"; import { renderCart, saveCart } from "./cart.js";
import { cart, emptyCart, occupiedSeatsData } from "./main"; import { cart, emptyCart, occupiedSeatsData } from "./main.js";
function formatCheckoutEuro(value: number) { function formatCheckoutEuro(value: number) {
return `${Number(value || 0).toFixed(2).replace(".", ",")} EUR`; return `${Number(value || 0).toFixed(2).replace(".", ",")} EUR`;

View File

@@ -1,7 +1,7 @@
import { currentUser, loginUser, openAccountDashboard, registerUser } from "./account"; import { currentUser, loginUser, openAccountDashboard, registerUser } from "./account.js";
import { openBooking } from "./booking"; import { openBooking } from "./booking.js";
import { renderCart, saveCart, updateCartBadge } from "./cart"; import { renderCart, saveCart, updateCartBadge } from "./cart.js";
import { renderCheckout } from "./checkout"; import { renderCheckout } from "./checkout.js";
// Shared app state for legacy script files (account.js, booking.js, cart.js, checkout.js) // Shared app state for legacy script files (account.js, booking.js, cart.js, checkout.js)
export const prices: Record<string, number> = { normal: 11.0, imax: 15.0, vip: 12.0, dbox: 16.0 }; export const prices: Record<string, number> = { normal: 11.0, imax: 15.0, vip: 12.0, dbox: 16.0 };
@@ -67,8 +67,8 @@ document.addEventListener("DOMContentLoaded", () => {
duration: 148, duration: 148,
fsk: "6", fsk: "6",
description: "In Walt Disney Animation Studios \"Zoomania 2\" geraten die tierischen Detektive Judy Hopps und Nick Wilde auf die rätselhafte Spur eines geheimnisvollen Reptils, das in Zoomania auftaucht und die Metropole völlig auf den Kopf stellt: Gary DeSnake! ", description: "In Walt Disney Animation Studios \"Zoomania 2\" geraten die tierischen Detektive Judy Hopps und Nick Wilde auf die rätselhafte Spur eines geheimnisvollen Reptils, das in Zoomania auftaucht und die Metropole völlig auf den Kopf stellt: Gary DeSnake! ",
poster: "img/zoomania-2.jpg", poster: "img/Zoomania-2.jpg",
backdrop: "img/zoomania-2.jpg" backdrop: "img/Zoomania-2.jpg"
}, },
{ {
title: "Shelter", title: "Shelter",