Skip to content

Commit 1af4b3a

Browse files
committed
Use ejs injected daily stat average
1 parent d6c8c3e commit 1af4b3a

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

views/pages/donate.ejs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
8282
<section id="why">
8383
<h2>Why should I donate?</h2>
84-
<p>The Random User Generator API is a 100% free service and is paid for out of our own pockets. <strong>We generate up to <span id='gen'>1,000,000</span> random users everyday</strong>, and the servers involved to deliver that information is costly. Random User Generator will never require a paid subscription to use our service, and we strive to continue providing this service free to you for life. Donating isn't required, but it will help us continue to improve and enhance our service.</p>
84+
<p>The Random User Generator API is a 100% free service and is paid for out of our own pockets. <strong>We generate up to <span id='gen'><%-stats%></span> random users everyday</strong>, and the servers involved to deliver that information is costly. Random User Generator will never require a paid subscription to use our service, and we strive to continue providing this service free to you for life. Donating isn't required, but it will help us continue to improve and enhance our service.</p>
8585
</section>
8686
8787
<section class="advertisement">
@@ -93,12 +93,5 @@
9393
</div>
9494
<% include ../snippets/footer %>
9595
<% include ../snippets/analytics %>
96-
<script>
97-
setInterval(() => {
98-
$.get("getStats", data => {
99-
document.getElementById('gen').innerHTML = data['30'].total;
100-
});
101-
}, 1000);
102-
</script>
10396
</body>
10497
</html>

0 commit comments

Comments
 (0)