Merge pull request #41 from teaxyz/change-counter-x/y

use counter with total included
This commit is contained in:
Jacob Heider 2022-06-02 14:29:24 -04:00 committed by GitHub
commit d6e20b9ad0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -628,7 +628,29 @@
<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> <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&#39;<span style="color:#54BAAB;">tea</span>');
$('#revolution-text').html(
'Now stay tuned! As an early authenticator, youll 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 { try {
fetch('https://app.tea.xyz/api/signups') fetch('https://app.tea.xyz/api/signups')
.then(res => res.json()) .then(res => res.json())
@ -638,34 +660,13 @@
} }
$('#count1').html(res.signups) $('#count1').html(res.signups)
$('#count2').html(res.signups) $('#count2').html(res.signups)
$('#count3').html(res.signups)
}) })
} catch (e) { } catch (e) {
console.error(e) console.error(e)
} }
</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);
$('#count-sub-text').html('YOUR AUTHENTICATION NUMBER');
$('#communitea').html('Thanks for joining our communi&#39;<span style="color:#54BAAB;">tea</span>');
$('#revolution-text').html(
'Now stay tuned! As an early authenticator, youll 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> </body>
</html> </html>