use counter with total included

Signed-off-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Jacob Heider 2022-06-02 14:05:49 -04:00
parent 10ae0b1991
commit d054aa1d65
Failed to extract signature

View file

@ -628,22 +628,6 @@
<script src="https://code.jquery.com/jquery-3.6.0.min.js" <script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
try {
fetch('https://app.tea.xyz/api/signups')
.then(res => res.json())
.then(res => {
if (!(localStorage['signup'] || '').match(/:::/)) {
$('#count').html(res.signups)
}
$('#count1').html(res.signups)
$('#count2').html(res.signups)
})
} catch (e) {
console.error(e)
}
</script>
<script> <script>
$(window).scroll(function () { $(window).scroll(function () {
$('nav').toggleClass('scrolled', $(this).scrollTop() > 100); $('nav').toggleClass('scrolled', $(this).scrollTop() > 100);
@ -654,7 +638,7 @@
$('.box-auth-true').show(); $('.box-auth-true').show();
$('.box-auth-false').hide(); $('.box-auth-false').hide();
$('#auth-username').html(username); $('#auth-username').html(username);
$('#count').html(serial); $('#count').html(`${serial} / <span id='count3'></span>`);
$('#count-sub-text').html('YOUR AUTHENTICATION NUMBER'); $('#count-sub-text').html('YOUR AUTHENTICATION NUMBER');
$('#communitea').html('Thanks for joining our communi&#39;<span style="color:#54BAAB;">tea</span>'); $('#communitea').html('Thanks for joining our communi&#39;<span style="color:#54BAAB;">tea</span>');
$('#revolution-text').html( $('#revolution-text').html(
@ -666,6 +650,23 @@
} }
</script> </script>
<script>
try {
fetch('https://app.tea.xyz/api/signups')
.then(res => res.json())
.then(res => {
if (!(localStorage['signup'] || '').match(/:::/)) {
$('#count').html(res.signups)
}
$('#count1').html(res.signups)
$('#count2').html(res.signups)
$('#count3').html(res.signups)
})
} catch (e) {
console.error(e)
}
</script>
</body> </body>
</html> </html>