File tree 1 file changed +20
-20
lines changed
1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -172,28 +172,28 @@ <h6>
172
172
height ="0 " width ="0 " style ="display:none;visibility:hidden "> </ iframe > </ noscript >
173
173
<!-- End Google Tag Manager (noscript) -->
174
174
< 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' ) ;
178
178
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
+ }
186
186
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
+ } ) ;
197
197
</ script >
198
198
</ body >
199
199
</ html >
You can’t perform that action at this time.
0 commit comments