don't overwrite auth num with count

Signed-off-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Jacob Heider 2022-05-17 19:40:06 -04:00
parent f08d6d6895
commit dbe31899bd
Failed to extract signature

View file

@ -551,27 +551,30 @@
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"> integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous">
</script> </script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script> <script>
try { try {
fetch('https://app.tea.xyz/api/signups') fetch('https://app.tea.xyz/api/signups')
.then(res => res.json()) .then(res => res.json())
.then(res => { .then(res => {
document.getElementById('count').innerHTML = res.signups if (!(localStorage['signup'] || '').match(/:::/)) {
document.getElementById('count1').innerHTML = res.signups $('#count').html(res.signups)
document.getElementById('count2').innerHTML = res.signups }
$('#count1').html(res.signups)
$('#count2').html(res.signups)
}) })
} catch (e) { } catch (e) {
console.error(e) console.error(e)
} }
</script> </script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script> <script>
$(window).scroll(function () { $(window).scroll(function () {
$('nav').toggleClass('scrolled', $(this).scrollTop() > 100); $('nav').toggleClass('scrolled', $(this).scrollTop() > 100);
}); });
if (localStorage['signup'].match(/:::/)) { if (localStorage['signup'].match(/:::/)) {
const [username, serial] = localStorage.signup.split(':::'); const [username, serial] = localStorage.signup.split(':::');
$('.box-auth-true').show(); $('.box-auth-true').show();