From 81ebff5f9417635a31d91b32b5302d5e363f6a26 Mon Sep 17 00:00:00 2001 From: Shyne-alt Date: Mon, 14 Apr 2025 12:41:22 +0700 Subject: [PATCH] Create Website Ini untuk uji coba pemula --- Website | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 Website diff --git a/Website b/Website new file mode 100644 index 00000000..01408289 --- /dev/null +++ b/Website @@ -0,0 +1,106 @@ + + + +// Simulasi Pembayaran E-Wallet +function showPaymentModal() { + document.getElementById("payment-modal").classList.remove("hidden"); +} + +function closeModal() { + document.getElementById("payment-modal").classList.add("hidden"); +} + +function payWith(ewallet) { + const instruction = document.getElementById("payment-instruction"); + const detail = document.getElementById("payment-detail"); + + // Simulasi instruksi pembayaran + if (ewallet === "shopeepay") { + detail.innerHTML = "1. Buka aplikasi ShopeePay
2. Scan QR code berikut: 1234-5678"; + } else if (ewallet === "gopay") { + detail.innerHTML = "1. Buka aplikasi Gojek
2. Bayar ke kode 987-654-321"; + } else if (ewallet === "ovo") { + detail.innerHTML = "1. Buka aplikasi OVO
2. Transfer ke 0812-3456-7890"; + } + + instruction.classList.remove("hidden"); +} + +function checkPayment() { + // Simulasi pembayaran berhasil + alert("Pembayaran berhasil! Lanjutkan curhat."); + closeModal(); + document.getElementById("user-input").disabled = false; +} + +// Tampilkan modal setelah 3 pesan (contoh) +let messageCount = 0; +function sendMessage() { + // ... (kode sebelumnya) + messageCount++; + if (messageCount >= 3) { + showPaymentModal(); + document.getElementById("user-input").disabled = true; + } +} + + +/* Modal Pembayaran */ +.modal { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; +} + +.modal-content { + background: white; + padding: 20px; + border-radius: 10px; + width: 300px; + text-align: center; +} + +.modal .close { + float: right; + cursor: pointer; + font-size: 24px; +} + +.ewallet-buttons button { + display: block; + width: 100%; + margin: 10px 0; + padding: 10px; + background: #4CAF50; + color: white; +} + +.ewallet-buttons button:nth-child(1) { background: #FF2D55; } /* ShopeePay */ +.ewallet-buttons button:nth-child(2) { background: #00AA13; } /* Gopay */ +.ewallet-buttons button:nth-child(3) { background: #4E2E8D; } /* OVO */ + +.hidden { + display: none; +}