diff --git a/foto_manakan/pecelMadiun.webp b/foto_manakan/pecelMadiun.webp new file mode 100644 index 0000000..735123d Binary files /dev/null and b/foto_manakan/pecelMadiun.webp differ diff --git a/index.html b/index.html index 299642f..2ae5a5b 100644 --- a/index.html +++ b/index.html @@ -11,17 +11,31 @@ -
+
-

POS Penjualan Warung Mbah Karmi

+

Warung Mbah Karmi

+ +
+ +
-
+ +
@@ -29,20 +43,14 @@

POS Penjualan Warung Mbah Karmi

Daftar Produk

- -
- Product Image -

Rawon Daging

-

Rp 20,000

- -
- -
+ +
Product Image

Ayam Penyet

Rp 18,000

+
Product Image @@ -50,12 +58,22 @@

Soto Madiun

Rp 12,000

+ + +
+ Product Image +

Rawon Daging

+

Rp 20,000

+ +
+ +
- Product Image -

Sop Iga Sapi

-

Rp 22,000

- + Product Image +

Pecel Madiun

+

Rp 8,000

+
@@ -85,6 +103,7 @@

Es Jeruk Manis

Rp 7,000

+
@@ -220,6 +239,15 @@

Keranjang Belanja

updateTotalPrice(); }); } + + + + const menuBtn = document.getElementById('menu-btn'); + const mobileMenu = document.getElementById('mobile-menu'); + + menuBtn.addEventListener('click', () => { + mobileMenu.classList.toggle('hidden'); + }); diff --git a/pesanan_proses.html b/pesanan_proses.html index 93c0fee..f32d5cb 100644 --- a/pesanan_proses.html +++ b/pesanan_proses.html @@ -10,12 +10,20 @@ - -
+ +

POS Penjualan Warung Mbah Karmi

+ +
+ +
-
+ + +
@@ -32,9 +47,9 @@

Daftar Pesanan

@@ -48,7 +63,13 @@

Daftar Pesanan

function loadOrders() { const orderList = document.getElementById('order-list'); - const orders = JSON.parse(localStorage.getItem('orders')) || []; + let orders = []; + + try { + orders = JSON.parse(localStorage.getItem('orders')) || []; + } catch (e) { + console.error('Failed to load orders:', e); + } // Sort orders by most recent first orders.sort((a, b) => new Date(b.time) - new Date(a.time)); @@ -120,7 +141,14 @@

Daftar Pesanan

cancelButtonText: 'Batal' }).then((result) => { if (result.isConfirmed) { - let orders = JSON.parse(localStorage.getItem('orders')) || []; + let orders = []; + + try { + orders = JSON.parse(localStorage.getItem('orders')) || []; + } catch (e) { + console.error('Failed to load orders:', e); + } + orders = orders.filter(order => order.id !== orderId); localStorage.setItem('orders', JSON.stringify(orders)); loadOrders(); @@ -134,6 +162,13 @@

Daftar Pesanan

}); }; }); + + const menuBtn = document.getElementById('menu-btn'); + const mobileMenu = document.getElementById('mobile-menu'); + + menuBtn.addEventListener('click', () => { + mobileMenu.classList.toggle('hidden'); + }); diff --git a/transaksi_total.html b/transaksi_total.html index b4c16b4..ecd556c 100644 --- a/transaksi_total.html +++ b/transaksi_total.html @@ -10,11 +10,19 @@ -
+

POS Penjualan Warung Mbah Karmi

+ +
+ +
-
+ + + + + +