Logo DISATU.WEB.ID
Script Widget Wa

Script Widget Wa

Kategori: Script

Script Widget Wa - Silahkan Di Copy

Versi 1 Hanya berbentuk tombol wa.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WhatsApp Widget</title>
<style>
  /* Style untuk widget WhatsApp */
  .whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Pastikan lebih tinggi dari elemen lain */
    background-color: transparent; /* Latar belakang transparan */
    color: #fff; /* Warna teks */
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Efek bayangan */
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Lebar minimum untuk menampilkan ikon dengan baik */
    height: 60px; /* Tinggi minimum untuk menampilkan ikon dengan baik */
  }

  .whatsapp-widget:hover {
    background-color: #128C7E; /* Warna latar belakang saat dihover */
  }

  .whatsapp-widget img {
    width: 40px; /* Ukuran gambar WhatsApp */
    height: 40px; /* Ukuran gambar WhatsApp */
    border-radius: 50%;
  }
</style>
</head>
<body>

<!-- Widget WhatsApp -->
<a href="https://wa.me/6285172447739?text=halo%20kak%20saya%20mau%20order%20yang%20ada%20di%20website%20webniaga.biz.id" target="_blank" class="whatsapp-widget">
  <img src="https://webniaga.biz.id/uploads/disatu-web-id-disatu-web-id.png" alt="WhatsApp Icon">
</a>
<!-- Akhir Widget WhatsApp -->

</body>
</html>

Ganti : https://wa.me/6285172447739?text=halo%20kak%20saya%20mau%20order%20yang%20ada%20di%20website%20webniaga.biz.id

Versi 2 Terdapat Faq

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WhatsApp Widget</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
  body {
    font-family: Arial, sans-serif;
  }

  .whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    color: #fff;
    padding: 5px; /* Ukuran padding dikurangi */
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Lebar background dikurangi */
    height: 40px; /* Tinggi background dikurangi */
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .whatsapp-widget:hover {
    background-color: #128C7E;
  }

  .whatsapp-widget .fa-whatsapp {
    font-size: 30px;
  }

  .faq-popup {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1001;
    width: 300px;
    background-color: #fff;
    color: #000;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    animation: slide-up 0.3s ease;
  }

  @keyframes slide-up {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .faq-popup .faq-header {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-popup .close-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
  }

  .faq-popup .faq-item {
    margin-bottom: 10px;
  }

  .faq-popup .faq-item button {
    width: 100%;
    text-align: left;
    padding: 10px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .faq-popup .faq-item button:hover {
    background: #ddd;
  }

  .faq-popup .faq-item .faq-answer {
    display: none;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    transition: max-height 0.3s ease;
  }

  .contact-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
  }

  .contact-button:hover {
    background-color: #128C7E;
  }
</style>
</head>
<body>

<!-- Widget WhatsApp -->
<div class="whatsapp-widget" onclick="toggleFaqPopup()">
  <i class="fab fa-whatsapp"></i>
</div>

<!-- Popup FAQ -->
<div class="faq-popup" id="faqPopup">
  <div class="faq-header">
    <span>FAQ</span>
    <button class="close-button" onclick="toggleFaqPopup()">&times;</button>
  </div>
  <div class="faq-item">
    <button onclick="toggleAnswer(this)">Apa itu layanan kami?</button>
    <div class="faq-answer">Layanan kami menyediakan solusi digital terbaik.</div>
  </div>
  <div class="faq-item">
    <button onclick="toggleAnswer(this)">Bagaimana cara order?</button>
    <div class="faq-answer">Anda bisa menghubungi kami via WhatsApp.</div>
  </div>
  <div class="faq-item">
    <button onclick="toggleAnswer(this)">Apa metode pembayaran yang tersedia?</button>
    <div class="faq-answer">Kami menerima transfer bank dan pembayaran melalui e-wallet.</div>
  </div>
  <div class="faq-item">
    <button onclick="toggleAnswer(this)">Berapa lama proses pengerjaan?</button>
    <div class="faq-answer">Waktu pengerjaan tergantung pada kompleksitas proyek, biasanya antara 3-7 hari kerja.</div>
  </div>
  <a href="https://wa.me/6285172447739?text=halo%20kak%20saya%20mau%20order%20yang%20ada%20di%20website%20webniaga.biz.id" class="contact-button" target="_blank">Hubungi via WhatsApp</a>
</div>

<!-- Author Information -->
<script>
  const authorInfo = {
    name: "Andi",
    location: "Lamongan",
    website: "disatu.web.id"
  };
</script>

<script>
  function toggleFaqPopup() {
    var popup = document.getElementById('faqPopup');
    if (popup.style.display === 'block') {
      popup.style.display = 'none';
    } else {
      popup.style.display = 'block';
    }
  }

  function toggleAnswer(button) {
    var answer = button.nextElementSibling;
    if (answer.style.display === 'block') {
      answer.style.display = 'none';
    } else {
      answer.style.display = 'block';
    }
  }
</script>

</body>
</html>

Silahkan di sesuaikan bagian faq dan nomor wa.