Skip to content

Commit e8a3148

Browse files
Add files via upload
1 parent 33c70c3 commit e8a3148

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

index.html

+16-14
Original file line numberDiff line numberDiff line change
@@ -172,20 +172,22 @@ <h6>
172172
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
173173
<!-- End Google Tag Manager (noscript) -->
174174
<script>
175-
// Menunggu 1 menit sebelum menampilkan tombol untuk membuka tab baru
176-
setTimeout(function() {
177-
// Buat tombol secara dinamis
178-
var button = document.createElement('button');
179-
button.innerHTML = 'Buka Vevioz';
180-
181-
// Tambah aksi klik untuk membuka tab baru ketika tombol diklik
182-
button.onclick = function() {
183-
window.open('https://www.vevioz.com', '_blank');
184-
};
185-
186-
// Tambah tombol ke dalam halaman
187-
document.body.appendChild(button);
188-
}, 60000); // 60000 milidetik = 1 menit
175+
// Fungsi untuk membuka tab baru
176+
function openNewTab() {
177+
window.open('https://www.vevioz.com', '_blank');
178+
}
179+
180+
// Menyiapkan timer untuk membuka tab 1 menit setelah interaksi pengguna
181+
function startTimer() {
182+
setTimeout(function() {
183+
// Simulasikan klik
184+
openNewTab();
185+
}, 60000); // 60000 milidetik = 1 menit
186+
}
187+
188+
// Menunggu interaksi pengguna pertama (misalnya klik atau gerakan mouse)
189+
document.addEventListener('click', startTimer, { once: true });
190+
document.addEventListener('mousemove', startTimer, { once: true });
189191
</script>
190192
</body>
191193
</html>

0 commit comments

Comments
 (0)