Skip to content

Commit 5c6797d

Browse files
committed
memperbaharui halaman
1 parent d145f50 commit 5c6797d

File tree

6 files changed

+217
-197
lines changed

6 files changed

+217
-197
lines changed

img/alanxcode.jpg

11.1 KB
Loading

img/alanxcode.png

-37.4 KB
Binary file not shown.

img/daristravel.png

1.01 MB
Loading

img/makmurcatering.png

1.45 MB
Loading

index.html

Lines changed: 214 additions & 195 deletions
Large diffs are not rendered by default.

js/script.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ document.getElementById("message-submit-button2").addEventListener("click", func
3535
return; // Menghentikan eksekusi jika input kosong
3636
}
3737

38-
// Membuat URL WhatsApp
39-
const whatsappUrl = `https://wa.me/6281521550913?text=${encodeURIComponent(nameInput + ": " + messageInput)}`;
38+
const receiptMessage = `Nama Lengkap: ${nameInput} \nPesan: ${messageInput}`;
39+
40+
const whatsappUrl = `https://wa.me/6281521550913?text=${encodeURIComponent(receiptMessage)}`;
4041

4142
// Membuka URL di tab baru
4243
window.open(whatsappUrl, "_blank");

0 commit comments

Comments
 (0)