mirror of
https://github.com/ivabus/www
synced 2024-11-22 14:05: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">
|
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();
|
||||||
|
|
Loading…
Reference in a new issue