Skip to content

Commit 5923485

Browse files
committed
add counters
1 parent 597b5a7 commit 5923485

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

js/proxmox_script.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@ var recensioniVisible = false;
22
var countersVisible = false;
33

44
function track_scroll(){
5-
if(isInViewport($('#recensioni'), 1)){
6-
if(recensioniVisible) return;
7-
recensioniVisible = true;
8-
umami.track('scroll_proxmox_recensioni');
9-
return;
10-
}
115
if(isInViewport($('#counters'), 1)){
126
if(countersVisible) return;
137
countersVisible = true;
148
increment();
159
umami.track('scroll_proxmox_counters');
1610
return;
1711
}
12+
if(isInViewport($('#recensioni'), 1)){
13+
if(recensioniVisible) return;
14+
recensioniVisible = true;
15+
umami.track('scroll_proxmox_recensioni');
16+
return;
17+
}
1818
}
1919

20-
2120
$('.yt_video').fitVids();
2221

2322

proxmox.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
</section>
317317

318318

319-
<!-- <section data-umami-event="proxmox_section_statistiche" id="statistiche" style="margin-bottom: 9rem; background-color: #E57000;">
319+
<section data-umami-event="proxmox_section_statistiche" id="statistiche" style="margin-bottom: 9rem; color: #FFFFFF; background-color: #343a40;">
320320
<div class="container text-center">
321321
<h2>Numeri che parlano<br></h2>
322322
<p class="mb-5">
@@ -340,7 +340,7 @@
340340
</div>
341341

342342
</div>
343-
</section> -->
343+
</section>
344344

345345

346346

0 commit comments

Comments
 (0)