Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
firepot
/
wp-content
/
themes
/
creative-portfolio-lite
/
js
:
script.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/* =============================================== OWL CAROUSEL SLIDER =============================================== */ jQuery('document').ready(function(){ var owl = jQuery('.slider .owl-carousel'); owl.owlCarousel({ margin:20, nav: false, autoplay : true, lazyLoad: true, autoplayTimeout: 3000, loop: false, dots:false, navText : ['<i class="fas fa-arrow-left"></i>','<i class="fas fa-arrow-right"></i> '], responsive: { 0: { items: 1 }, 600: { items: 1 }, 1000: { items: 1 } }, autoplayHoverPause : true, mouseDrag: true }); }); /* =============================================== OPEN CLOSE Menu ============================================= */ function creative_portfolio_lite_open_menu() { jQuery('button.menu-toggle').addClass('close-panal'); setTimeout(function(){ jQuery('nav#main-menu').show(); }, 100); return false; } jQuery( "button.menu-toggle").on("click", creative_portfolio_lite_open_menu); function creative_portfolio_lite_close_menu() { jQuery('button.close-menu').removeClass('close-panal'); jQuery('nav#main-menu').hide(); } jQuery( "button.close-menu").on("click", creative_portfolio_lite_close_menu); /* =============================================== TRAP TAB FOCUS ON MODAL MENU ============================================= */ jQuery('button.close-menu').on('keydown', function (e) { if (jQuery("this:focus") && (e.which === 9)) { e.preventDefault(); jQuery(this).blur(); jQuery('button.menu-toggle').focus(); } }); /* =============================================== TABS =============================================== */ jQuery(document).ready(function () { jQuery( ".tablinks" ).first().addClass( "active" ); jQuery( ".tabcontent" ).first().addClass( "active" ); }); function creative_portfolio_lite_projects_tab(evt, cityName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } jQuery('#'+ cityName).show() evt.currentTarget.className += " active"; } /* =============================================== Scroll Top // ============================================= */ jQuery(window).scroll(function () { if (jQuery(this).scrollTop() > 100) { jQuery('.scroll-up').fadeIn(); } else { jQuery('.scroll-up').fadeOut(); } }); jQuery('a[href="#tobottom"]').click(function () { jQuery('html, body').animate({scrollTop: 0}, 'slow'); return false; }); /*=============================================== PRELOADER =============================================== */ jQuery('document').ready(function($){ setTimeout(function () { jQuery(".cssloader").fadeOut("slow"); },1000); });