mirror of
https://github.com/ivabus/www
synced 2024-11-22 08:15:07 +03:00
don't overwrite auth num with count
Signed-off-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
f08d6d6895
commit
dbe31899bd
1 changed files with 9 additions and 6 deletions
|
@ -551,27 +551,30 @@
|
|||
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous">
|
||||
</script>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
|
||||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
try {
|
||||
fetch('https://app.tea.xyz/api/signups')
|
||||
.then(res => res.json())
|
||||
.then(res => {
|
||||
document.getElementById('count').innerHTML = res.signups
|
||||
document.getElementById('count1').innerHTML = res.signups
|
||||
document.getElementById('count2').innerHTML = res.signups
|
||||
if (!(localStorage['signup'] || '').match(/:::/)) {
|
||||
$('#count').html(res.signups)
|
||||
}
|
||||
$('#count1').html(res.signups)
|
||||
$('#count2').html(res.signups)
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
|
||||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
$(window).scroll(function () {
|
||||
$('nav').toggleClass('scrolled', $(this).scrollTop() > 100);
|
||||
});
|
||||
|
||||
if (localStorage['signup'].match(/:::/)) {
|
||||
const [username, serial] = localStorage.signup.split(':::');
|
||||
$('.box-auth-true').show();
|
||||
|
|
Loading…
Reference in a new issue