Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
fowntain authored Oct 11, 2023
1 parent 91ded46 commit 6c2ac75
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,34 @@ <h1 class="logo">Skool</h1>
</nav>

<script src="/js/navbar.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>

<script>
barba.init({
transitions: [{
name: 'opacity-transition',
leave(data) {
return gsap.to(data.current.container, {
opacity: 0
});
},
enter(data) {
return gsap.from(data.next.container, {
opacity: 0
});
}
}]
});
function handleButtonClick(action) {
if (action === 'close') {
swal.close();
} else if (action === 'open') {
window.open('https://polarislearning.org', '_blank');
}
}

swal({
title: 'New Version!',
text: 'We have launched a new version of the site. It is much better than this version.',
icon: 'info',
buttons: {
close: {
text: 'Close',
value: 'close',
},
open: {
text: 'Open',
value: 'open',
},
},
}).then((value) => {
handleButtonClick(value);
});
</script>

<!--BEGIN EDITABLE HTML-->
Expand Down

0 comments on commit 6c2ac75

Please sign in to comment.