This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| let $carousel = $('#%%ELEMENT_ID%%').find($('#%%ELEMENT_ID%%').children().data('carousel')); | |
| $('#%%ELEMENT_ID%%').find('.oxy-carousel-builder_icon').on( 'click', pauseUnpause ); | |
| function pauseUnpause() { | |
| $carousel.flickity('pausePlayer'); | |
| setTimeout(() => $carousel.flickity('unpausePlayer'), 1000); // resume after 1000ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .oxy-burger-trigger .hamburger--slider.is-active .hamburger-inner { | |
| transform: none; | |
| } | |
| .oxy-burger-trigger .hamburger--slider.is-active .hamburger-inner::before { | |
| transform: none; | |
| opacity: 1; | |
| } | |
| .oxy-burger-trigger .hamburger--slider.is-active .hamburger-inner::after { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready( function() { | |
| var $grid = jQuery('.grid').isotope({ | |
| itemSelector: '.grid-item', | |
| layoutMode: 'fitRows', | |
| getSortData: { | |
| title: '.title', | |
| date: '.date' | |
| } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| let $carousel = $('#%%ELEMENT_ID%%').find($('#%%ELEMENT_ID%%').children().data('carousel')); | |
| let numberCells = $('#%%ELEMENT_ID%%').find($('#%%ELEMENT_ID%%').children().data('cell')).length; | |
| $carousel.on( 'settle.flickity', function( event, index ) { | |
| if ((index + 1) == numberCells) { | |
| $carousel.flickity('pausePlayer'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| let minimumCells = 2; /* Change to minimal cells needed for navigation */ | |
| let $carousel = $('#%%ELEMENT_ID%%').find($('#%%ELEMENT_ID%%').children().data('carousel')); | |
| let numberCells = $('#%%ELEMENT_ID%%').find($('#%%ELEMENT_ID%%').children().data('cell')).length; | |
| $carousel.on( 'ready.flickity', function() { | |
| if (minimumCells > numberCells) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .oxy-carousel-builder.hide-carousel-nav .flickity-page-dots, | |
| .oxy-carousel-builder.hide-carousel-nav .oxy-carousel-builder_icon { | |
| visibility: hidden; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .oxy-carousel-builder .flickity-page-dots .dot { | |
| counter-increment: carousel-cell; | |
| background: transparent; | |
| left: 0; | |
| margin: 0; | |
| opacity: 1; | |
| padding: 15px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($){ | |
| let offCanvas = '.my-offcanvas'; // Change to your offcanvas selector (class or ID) | |
| /* When item is added to cart */ | |
| $( document.body ).on( 'added_to_cart', function(){ | |
| /* Toggle the classes to open the offcanvas */ | |
| $('html,body').addClass('off-canvas-toggled'); | |
| $(offCanvas).addClass('oxy-off-canvas-toggled'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| let clickTrigger = '.trigger'; /* The class you give the burger trigger */ | |
| let modalSelector = '.my-modal'; /* The class you give the modal */ | |
| function showModal(modal) { | |
| var $modal = jQuery(modal); | |
| $modal.addClass("live"); | |
| $modal.css("display", "flex"); | |
| $modal.hide(); |