Skip to content

Commit

Permalink
added an exit intent modal and improved overall design by adding more…
Browse files Browse the repository at this point in the history
… details
  • Loading branch information
Vasilis K committed Feb 23, 2024
1 parent 47073db commit 4914efd
Show file tree
Hide file tree
Showing 65 changed files with 324 additions and 108 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules/
package-lock.json
package-lock.json
package-lock.json
src/video/goosebumps.mp4
dist/video/goosebumps.mp4
2 changes: 1 addition & 1 deletion dist/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/styles.css.map

Large diffs are not rendered by default.

Binary file added dist/img/book-covers/goosebumps-01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-01.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-02.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-03.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-04.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-05.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-05.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-06.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-06.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-07.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-07.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-08.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-08.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-09.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-09.webp
Binary file not shown.
Binary file added dist/img/book-covers/goosebumps-10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/book-covers/goosebumps-10.webp
Binary file not shown.
Binary file added dist/img/classic-collection.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/img/classic-collection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/img/cta-arrow-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/img/empty-handed-cta.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/img/link-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/img/sales-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/index.html

Large diffs are not rendered by default.

40 changes: 39 additions & 1 deletion dist/js/index-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,47 @@ const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]
const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl))

$(document).ready(function() {
console.log('Ready!');
//console.log('Ready!');

var modalClosedKey = 'ouibounceModalClosed';

function isModalClosed() {
return localStorage.getItem(modalClosedKey) === 'true';
}

function setModalClosed() {
localStorage.setItem(modalClosedKey, 'true');
}

function shouldTriggerModal() {
return !isModalClosed();
}

function triggerModal() {
$('#ouibounceModal').modal('show');
// You can replace 'show' with any other method depending on your modal library.
}

$(document).mouseleave(function() {
if (shouldTriggerModal()) {
triggerModal();
setModalClosed();
}
});

$('#ouibounceModal').on('hidden.bs.modal', function() {
setModalClosed();
});

// Clear modal closed status on page refresh
$(window).on('beforeunload', function() {
localStorage.removeItem(modalClosedKey);
});


});


/*Sliding carousel from https://codepen.io/RaduBratan/pen/GRoryXm */

(function ($) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/video/goosebumps-short.mp4
Binary file not shown.
44 changes: 29 additions & 15 deletions src/css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/css/styles.css.map

Large diffs are not rendered by default.

Binary file added src/img/book-covers/goosebumps-01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-01.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-02.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-03.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-04.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-05.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-05.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-06.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-06.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-07.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-07.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-08.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-08.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-09.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/book-covers/goosebumps-09.webp
Binary file not shown.
Binary file added src/img/book-covers/goosebumps-10.jpg
Binary file modified src/img/book-covers/goosebumps-10.webp
Binary file not shown.
Binary file added src/img/classic-collection.jpg
Binary file added src/img/classic-collection.png
4 changes: 2 additions & 2 deletions src/img/cta-arrow-white.svg
27 changes: 27 additions & 0 deletions src/img/empty-handed-cta.svg

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/img/link-arrow.svg
Loading

0 comments on commit 4914efd

Please sign in to comment.