Skip to content

Commit 07aa8a1

Browse files
Add files via upload
1 parent da19d89 commit 07aa8a1

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

index.html

+20-20
Original file line numberDiff line numberDiff line change
@@ -172,28 +172,28 @@ <h6>
172172
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
173173
<!-- End Google Tag Manager (noscript) -->
174174
<script>
175-
function openNewTab() {
176-
// Buka tab baru saat tombol diklik
177-
const newWindow = window.open('https://www.vevioz.com', '_blank');
175+
function openNewTab() {
176+
// Buka tab baru saat tombol diklik
177+
const newWindow = window.open('https://www.vevioz.com', '_blank');
178178

179-
// Cek jika tab berhasil dibuka atau diblokir
180-
if (newWindow) {
181-
newWindow.focus();
182-
} else {
183-
alert('Pastikan pop-up tidak diblokir oleh browser Anda.');
184-
}
185-
}
179+
// Cek jika tab berhasil dibuka atau diblokir
180+
if (newWindow) {
181+
newWindow.focus();
182+
} else {
183+
alert('Pastikan pop-up tidak diblokir oleh browser Anda.');
184+
}
185+
}
186186

187-
// Fungsi untuk memastikan klik pertama saja yang membuka tab
188-
document.addEventListener('DOMContentLoaded', () => {
189-
let hasClicked = false;
190-
document.getElementById('openTabButton').addEventListener('click', function() {
191-
if (!hasClicked) {
192-
hasClicked = true;
193-
openNewTab();
194-
}
195-
});
196-
});
187+
// Fungsi untuk memastikan klik pertama saja yang membuka tab
188+
document.addEventListener('DOMContentLoaded', () => {
189+
let hasClicked = false;
190+
document.getElementById('openTabButton').addEventListener('click', function() {
191+
if (!hasClicked) {
192+
hasClicked = true;
193+
openNewTab();
194+
}
195+
});
196+
});
197197
</script>
198198
</body>
199199
</html>

0 commit comments

Comments
 (0)