This file contains 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
// Carousel | |
if ( jQuery('.owl-carousel').length ) { | |
jQuery.each( jQuery('.owl-carousel'), function(){ | |
var owlItems = jQuery('.owl-carousel').data('items') ? jQuery('.owl-carousel').data('items') : 3; | |
owlOptions = []; | |
if ( typeof jQuery(".owl-carousel").data('items') !== 'undefined' ) owlOptions['items'] = jQuery(".owl-carousel").data('items'); | |
if ( typeof jQuery(".owl-carousel").data('loop') !== 'undefined' ) owlOptions['loop'] = jQuery(".owl-carousel").data('loop'); | |
if ( typeof jQuery(".owl-carousel").data('margin') !== 'undefined' ) owlOptions['margin'] = jQuery(".owl-carousel").data('margin'); |
This file contains 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
// Page Loader | |
document.addEventListener('readystatechange', function(event) { | |
if (document.readyState === "complete") { | |
setTimeout(function(){ | |
document.getElementById('loader').classList.add('hide'); | |
}, 1000); | |
} | |
}); | |
window.addEventListener( 'beforeunload', function( event ) { |
This file contains 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
<div class="atw-tabs"> | |
<div class="atw-tabs-labels"> | |
<button class="tab-btn active" data-tab="tab1">Tab 1</button> | |
<button class="tab-btn" data-tab="tab2">Tab 2</button> | |
<button class="tab-btn" data-tab="tab3">Tab 3</button> | |
</div> | |
<div class="tab-content"> | |
<div class="tab-pane active" data-tab="tab1"> | |
<h3 class="text-xl">Tab 1</h3> | |
<p>Lorem ipsum dolor sit amet</p> |