Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
strobecsmain authored Oct 27, 2024
1 parent 46faeca commit 2cbde47
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,29 @@ <h3 class="feature-title_1">QuickNet v3</h3>
Количество загрузок: <span id="download-count">0</span>
</p>

<script>
countapi.get('quicknet', 'download').then((result) => {
document.getElementById('download-count').innerText = result. Value;
});
</script>
<script>
function incrementDownloadCount() {
if (typeof countapi !== "undefined") {
countapi.hit('quicknet', 'download').then((result) => {
console.log('Downloads:', result.value);
}).catch((error) => {
console.error('CountAPI Error:', error);
});
} else {
console.error('CountAPI not defined.');
}
}

document.addEventListener("DOMContentLoaded", function () {
if (typeof countapi !== "undefined") {
countapi.get('quicknet', 'download').then((result) => {
document.getElementById('download-count').innerText = result.value;
}).catch((error) => {
console.error('CountAPI Get Error:', error);
});
}
});
</script>
</div>
</div>
</section>
Expand Down

0 comments on commit 2cbde47

Please sign in to comment.