mirror of
https://github.com/ivabus/www
synced 2024-11-22 16:45:05 +03:00
use counter with total included
Signed-off-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
10ae0b1991
commit
d054aa1d65
1 changed files with 24 additions and 23 deletions
|
@ -628,7 +628,29 @@
|
|||
<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 () {
|
||||
$('nav').toggleClass('scrolled', $(this).scrollTop() > 100);
|
||||
});
|
||||
|
||||
if (localStorage['signup'].match(/:::/)) {
|
||||
const [username, serial] = localStorage.signup.split(':::');
|
||||
$('.box-auth-true').show();
|
||||
$('.box-auth-false').hide();
|
||||
$('#auth-username').html(username);
|
||||
$('#count').html(`${serial} / <span id='count3'></span>`);
|
||||
$('#count-sub-text').html('YOUR AUTHENTICATION NUMBER');
|
||||
$('#communitea').html('Thanks for joining our communi'<span style="color:#54BAAB;">tea</span>');
|
||||
$('#revolution-text').html(
|
||||
'Now stay tuned! As an early authenticator, you’ll be entitled to a variety of exciting rewards, including minted NFT certificates.'
|
||||
);
|
||||
$('#auth-body-text').hide();
|
||||
$('.rounded-pill').hide();
|
||||
$('.auth-btn').html('Configure GitHub App');
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
try {
|
||||
fetch('https://app.tea.xyz/api/signups')
|
||||
.then(res => res.json())
|
||||
|
@ -638,34 +660,13 @@
|
|||
}
|
||||
$('#count1').html(res.signups)
|
||||
$('#count2').html(res.signups)
|
||||
$('#count3').html(res.signups)
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
</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();
|
||||
$('.box-auth-false').hide();
|
||||
$('#auth-username').html(username);
|
||||
$('#count').html(serial);
|
||||
$('#count-sub-text').html('YOUR AUTHENTICATION NUMBER');
|
||||
$('#communitea').html('Thanks for joining our communi'<span style="color:#54BAAB;">tea</span>');
|
||||
$('#revolution-text').html(
|
||||
'Now stay tuned! As an early authenticator, you’ll be entitled to a variety of exciting rewards, including minted NFT certificates.'
|
||||
);
|
||||
$('#auth-body-text').hide();
|
||||
$('.rounded-pill').hide();
|
||||
$('.auth-btn').html('Configure GitHub App');
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue