📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv8.demodesign.com.tr
/
javascript
📝
main.js
← Geri Dön
/* * responsiveMenu * responsiveMenuMega * searchButton * slider * slideProduct * slideCounter * slideMostViewer * slideMostViewer_s2 * slideMostViewer_s3 * slideMostViewer_s4 * slideBrand * slideAccessories * slideTeam * slideBrand_s2 * slideProduct_s2 * slider_s2 * slideProduct_s3 * slideProduct_s4 * slideProduct_s5 * slideProduct_s6 * slideTestimonial * CountDown * CountDown_s2 * tabImagebox * tabImagebox_s2 * tabProductDetail * tabElement * tabSortproduct * overlay * FilterPrice(); * toggleWidget * toggleCatlist * toggleDropdown * toggleLocation * showSuggestions * showAllcat * accordionToggle * flexProduct * progressBar * detectViewport * progressCircle * BrandsIsotope * scrollbarCheckbox * scrollbarLocation * scrollbarTableCart * scrollbarWishlist * scrollbarCategories * scrollbarSearch * googleMap * googleMap_s2 * goTop * zoomImage * popup **/ ;(function($) { 'use strict' var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; // is Mobile var responsiveMenu = function() { var menuType = 'desktop'; $(window).on('load resize', function() { var currMenuType = 'desktop'; if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) { currMenuType = 'mobile'; } if ( currMenuType !== menuType ) { menuType = currMenuType; if ( currMenuType === 'mobile' ) { var $mobileMenu = $('#mainnav').attr('id', 'mainnav-mobi').hide(); var hasChildMenu = $('#mainnav-mobi').find('li:has(ul)'); var hasChildMenuMega = $('#mainnav-mobi').find('li:has(div.submenu)'); $('#header').after($mobileMenu); hasChildMenu.children('ul').hide(); hasChildMenu.children('a').after('<span class="btn-submenu"></span>'); hasChildMenuMega.children('div.submenu').hide(); $('ul.submenu-child').hide(); hasChildMenuMega.find('h3').append('<span class="btn-submenu-child"></span>'); $('.btn-menu').removeClass('active'); } else { var $desktopMenu = $('#mainnav-mobi').attr('id', 'mainnav').removeAttr('style'); $desktopMenu.find('.submenu').removeAttr('style'); $('#header').find('.nav-wrap').append($desktopMenu); $('.btn-submenu').remove(); $('ul.submenu-child').show(); $('h3').children('span').removeClass('btn-submenu-child'); } } }); $('.btn-menu').on('click', function() { $('#mainnav-mobi').slideToggle(300); $(this).toggleClass('active'); return false; }); $(document).on('click', '#mainnav-mobi li.has-mega-menu .row .btn-submenu-child', function(e) { $(this).toggleClass('active').parent('h3.cat-title').next('.submenu-child').slideToggle(400); e.stopImmediatePropagation(); return false; }); $(document).on('click', '#mainnav-mobi li .btn-submenu', function(e) { $(this).toggleClass('active').next('.submenu').slideToggle(400); e.stopImmediatePropagation(); return false; }); }; // Responsive Menu var responsiveMenuMega_S2 = function() { var menuType = 'desktop'; $(window).on('load resize', function() { var currMenuType = 'desktop'; if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) { currMenuType = 'mobile'; } if ( currMenuType !== menuType ) { menuType = currMenuType; if ( $('body').hasClass('grid') ) { if (currMenuType === 'mobile') { var $mobileMenuMegaV2 = $('#mega-menu').attr('id', 'mega-mobile').hide(); var ChildMenuMegaV2 = $('.header-bottom').find('.grid-right'); var ChildDropmenuV2 = $('.drop-menu').children('.one-third'); $('.btn-mega').hide(); $('#header').after($mobileMenuMegaV2); ChildMenuMegaV2.append('<div class="btn-menu-mega"><span></span></div>'); $('.drop-menu').hide(); $mobileMenuMegaV2.find('.dropdown').append('<span class="btn-dropdown"></span>'); ChildDropmenuV2.children('ul').hide(); $('.drop-menu').find('.cat-title').append('<span class="btn-dropdown-child"></span>'); } else { var $desktopMenuMegaV2 = $('#mega-mobile').attr('id', 'mega-menu').removeAttr('style'); $desktopMenuMegaV2.find('.drop-menu').removeAttr('style'); $('.header-bottom.style1').find('.grid-left').append($desktopMenuMegaV2); } }; }; }); $(document).on('click', '#mega-mobile ul.menu li a .btn-dropdown', function(e) { $(this).toggleClass('active').closest('li').children('.drop-menu').slideToggle(400); e.stopImmediatePropagation(); return false; }); $(document).on('click', '#mega-mobile .btn-dropdown-child', function(e) { $(this).toggleClass('active').closest('.one-third').children('ul').slideToggle(400); e.stopImmediatePropagation(); return false; }); }; // Responsive Menu Mega S2 var responsiveMenuMega = function() { var menuType = 'desktop'; $(window).on('load resize', function() { var currMenuType = 'desktop'; if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) { currMenuType = 'mobile'; } if ( currMenuType !== menuType ) { menuType = currMenuType; if ( currMenuType === 'mobile' ) { var $mobileMenuMega = $('#mega-menu').attr('id', 'mega-mobile').hide(); var ChildMenuMega = $('.header-bottom').find('.col-2'); var ChildDropmenu = $('.drop-menu').children('.one-third'); $('.btn-mega').hide(); $('#header').after($mobileMenuMega); ChildMenuMega.append('<div class="btn-menu-mega"><span></span></div>'); $('.drop-menu').hide(); $mobileMenuMega.find('.dropdown').append('<span class="btn-dropdown"></span>'); ChildDropmenu.children('ul').hide(); $('.drop-menu').find('.cat-title').append('<span class="btn-dropdown-child"></span>'); } else { var $desktopMenuMega = $('#mega-mobile').attr('id', 'mega-menu').removeAttr('style'); $('.btn-mega').show(); $desktopMenuMega.find('.drop-menu').removeAttr('style'); $('.header-bottom').find('.col-2').append($desktopMenuMega); $('.btn-menu-mega').remove(); $('.btn-dropdown-child').remove(); $('.drop-menu').children('.one-third').children('ul').show(); } } }); $(document).on('click', '.btn-menu-mega', function() { $('#mega-mobile').slideToggle(300); $(this).toggleClass('active'); return false; }); $(document).on('click', '#mega-mobile ul.menu li a .btn-dropdown', function(e) { $(this).toggleClass('active').closest('li').children('.drop-menu').slideToggle(400); e.stopImmediatePropagation(); return false; }); $(document).on('click', '#mega-mobile .btn-dropdown-child', function(e) { $(this).toggleClass('active').closest('.one-third').children('ul').slideToggle(400); e.stopImmediatePropagation(); return false; }); }; // Responsive Menu Mega var searchButton = function() { var showsearch = $('.show-search button'); showsearch.on('click',function() { $('.show-search').parent('div').children('.top-search.style1').toggleClass('active'); showsearch.toggleClass('active'); }); }; // Show Search var searchFilterbox = function(){ var buttonFilter=$('.filter'); buttonFilter.on('click',function(){ $('.box-filter').toggleClass('active'); }); }; var waveButton = function () { Waves.attach('.button', ['waves-button', 'waves-float']); Waves.init(); }; var slider = function() { $(".owl-carousel").owlCarousel({ autoplay:true, nav: false, responsive: true, margin:0, loop:true, items:1 }); };// slider var slideProduct = function() { $(".owl-carousel-1").owlCarousel({ autoplay: true, nav: true, dots: false, responsive: true, margin:0, loop:true, items:1, }); };// slide Product var slideCounter = function() { $(".owl-carousel-2").owlCarousel({ autoplay:true, nav: true, dots: false, responsive: true, margin:0, loop:true, items:1 }); };// slide Counter var slideMostViewer = function() { $(".owl-carousel-3").owlCarousel({ autoplay:true, nav: true, dots: true, responsive: true, margin:30, loop:true, items:5, responsive:{ 0:{ items: 2, dots: false, margin:10, }, 479:{ items: 2, dots: false }, 600:{ items: 3, dots: false }, 768:{ items: 4, margin:20, }, 991:{ items: 4 }, 1200: { items: 5 } } }); };// slide Most Viewer var slideMostViewer_s2 = function() { $(".owl-carousel-4").owlCarousel({ autoplay:true, nav: false, dots: true, responsive: true, margin:20, loop:true, items:4, responsive:{ 0:{ items: 1, dots: false, nav: true, }, 479:{ items: 3 }, 768:{ items: 3 }, 991:{ items: 3 }, 1200: { items: 4 } } }); };// slide Most Viewer s2 var slideMostViewer_s3 = function() { $(".owl-carousel-6").owlCarousel({ autoplay:true, nav: true, dots: true, responsive: true, margin:25, loop:true, items:7, responsive:{ 0:{ items: 1, dots: false }, 479:{ items: 2, dots: false }, 768:{ items: 4, dots: false }, 991:{ items: 4 }, 1200: { items: 5 }, 1900: { items: 7 } } }); };// slide Most Viewer s3 var slideBrand = function() { $(".owl-carousel-5").owlCarousel({ autoplay:true, nav: false, dots: false, responsive: true, margin:20, loop:true, items:5, responsive:{ 0:{ items: 2 }, 479:{ items: 4 }, 768:{ items: 4 }, 991:{ items: 5 }, 1200: { items: 5 } } }); };// slide Brand var slideAccessories = function() { $(".owl-carousel-7").owlCarousel({ autoplay:true, nav: true, dots: false, responsive: true, margin:0, loop:true, items:1 }); };// slide Accessories var slideTeam = function() { $(".owl-carousel-8").owlCarousel({ autoplay:true, nav: false, dots: true, responsive: true, margin:30, loop:true, items:4, responsive:{ 0:{ items: 1, dots: false, nav: true, }, 479:{ items: 2, }, 599:{ items: 2, }, 768:{ items: 3 }, 991:{ items: 4 }, 1200: { items: 4 } } }); };// slide Team var slideBrand_s2 = function() { $(".owl-carousel-9").owlCarousel({ autoplay:true, nav: false, dots: true, responsive: true, margin:30, loop:true, items:6, responsive:{ 0:{ items: 1, dots: false, nav: true, }, 479:{ items: 2, dots: false, nav: true, }, 599:{ items: 3, dots: false, nav: true, }, 768:{ items: 4 }, 991:{ items: 5 }, 1200: { items: 6 } } }); };// slide Brand s2 var slideProduct_s2 = function() { $(".owl-carousel-10").owlCarousel({ autoplay:true, nav: false, dots: true, responsive: true, margin:30, loop:true, items:3, responsive:{ 0:{ items: 1, dots: false }, 479:{ items: 1, dots: false }, 599:{ items: 1, dots: false }, 768:{ items: 2, dots: false }, 991:{ items: 3 }, 1200: { items: 3 } } }); };// slide Product s2 var slider_s2 = function() { $(".owl-carousel-11").owlCarousel({ autoplay:true, nav: false, dots: true, responsive: true, margin:20, loop:true, items:1 }); };// slider s2 var slideProduct_s3 = function() { $(".owl-carousel-12").owlCarousel({ autoplay:true, nav: true, dots: false, responsive: true, margin:20, loop:true, items:1 }); };// slide Product s3 var slideMostViewer_s4 = function() { $(".owl-carousel-13").owlCarousel({ autoplay:true, nav: true, dots: false, responsive: true, margin:5, loop:true, items:5, responsive:{ 0:{ items: 1, dots: false }, 479:{ items: 2, dots: false }, 599:{ items: 3, dots: false }, 768:{ items: 3, dots: false }, 991:{ items: 4 }, 1200: { items: 5 } } }); };// slide Most Viewer s4 var slideProduct_s4 = function() { $(".owl-carousel-14").owlCarousel({ autoplay:true, nav: true, dots: false, responsive: true, margin:20, loop:true, items:1 }); };// slide Product s4 var slideProduct_s5 = function() { $(".owl-carousel-15").owlCarousel({ autoplay:true, nav: true, dots: true, responsive: true, margin:20, loop:true, items:1 }); };// slide Product s5 var slideProduct_s6 = function() { $(".owl-carousel-16").owlCarousel({ autoplay:true, nav: false, dots: true, responsive: true, margin:0, loop:true, items:1 }); };// slide Product s6 var slideTestimonial = function() { $(".owl-carousel-17").owlCarousel({ autoplay:true, nav: false, responsive: true, margin:0, loop:true, items:1 }); };// slide Testimonial var slideProduct_s7 = function() { $(".owl-carousel-18").owlCarousel({ autoplay:true, nav: false, responsive: true, margin:0, loop:true, items:1 }); };// slide Product s7 var slideProduct_s8 = function() { $(".owl-carousel-19").owlCarousel({ autoplay:true, nav: false, dots: true, responsive: true, margin:30, loop:true, items:3, responsive:{ 0:{ items: 1, dots: false }, 479:{ items: 1, dots: false }, 599:{ items: 1, dots: false }, 768:{ items: 2, dots: false }, 991:{ items: 3 }, 1200: { items: 4 } } }); };// slide Product s8 var CountDown = function() { var before = '<div class="square"><div class="numb">', textday = '</div><div class="text">DAYS', texthour = '</div><div class="text">HOURS', textmin = '</div><div class="text">MINS', textsec = '</div><div class="text">SECS'; if ($().countdown) { $(".count-down").countdown('2020/12/20', function(event) { $(this).html(event.strftime(before + '%D' + textday + '</div></div>' + before + '%H' + texthour + '</div></div>' + before + '%M' + textmin + '</div></div>' + before + '%S' + textsec + '</div>')); }); } }; // Count Down var CountDown_s2 = function() { var before = '<div class="square"><div class="numb">', textday = '</div><div class="text">DAYS', texthour = '</div><div class="text">HOURS', textsec = '</div><div class="text">SECS'; if ($().countdown) { $(".counter.style1.v1 .counter-content .count-down").countdown('2020/12/20', function(event) { $(this).html(event.strftime(before + '%D' + textday + '</div></div>' + before + '%H' + texthour + '</div></div>' + before + '%S' + textsec + '</div>')); }); } }; // Count Down var tabImagebox = function() { var speed = 1000; $('.flat-imagebox').each(function() { $(this).find('.tab-list').children().first().addClass('active'), $(this).find('.box-product').children('.row').first().show().siblings().hide(), $(this).find('.tab-list').children('li').on('click', function(e){ var liActive = $(this).index(); $(this).addClass('active').siblings().removeClass('active'); $(this).addClass('active').closest('.flat-imagebox').find('.box-product').children('.row').eq(liActive).fadeIn(1000).show().siblings().hide(); e.preventDefault(); }); }); }; // Tab Imagebox var tabImagebox_s2 = function() { var speed = 1000; $('.flat-imagebox').each(function() { $(this).find('.tab-list').children().first().addClass('active'), $(this).find('.tab-item').children('.row').first().show().siblings().hide(), $(this).find('.tab-list').children('li').on('click', function(e){ var liActive = $(this).index(); $(this).addClass('active').siblings().removeClass('active'); $(this).addClass('active').closest('.flat-imagebox').find('.tab-item').children('.row').eq(liActive).fadeIn(1000).show().siblings().hide(); e.preventDefault(); }); }); }; // Tab Imagebox var tabProductDetail = function() { $('.flat-product-content').each(function() { $(this).find('ul.product-detail-bar').children().first().addClass('active'); $(this).find('.container').children('.row').first().show().siblings().hide(); $(this).find('ul.product-detail-bar').children('li').on('click', function(e) { var liActive = $(this).index(); $(this).addClass('active').siblings().removeClass('active'); $(this).closest('.flat-product-content').find('.container').children('.row').eq(liActive).fadeIn(1000).show().siblings().hide(); e.preventDefault(); }); }); $('.flat-product-content.style2').each(function() { $(this).find('ul.product-detail-bar').children().first().addClass('active'); $(this).find('.col-md-12').children('div.row').first().show().siblings().hide(); $(this).find('ul.product-detail-bar').children('li').on('click', function(e) { var liActive = $(this).index(); $(this).addClass('active').siblings().removeClass('active'); $(this).closest('.flat-product-content.style2').find('.col-md-12').children('div.row').eq(liActive).fadeIn(1000).show().siblings().hide(); e.preventDefault(); }); }); }; // Tab Productdetail var tabSortproduct = function() { $('.wrap-imagebox').each(function() { $(this).find('ul.icons').children('li').first().addClass('active'); $(this).find('.tab-product').children('.sort-box').first().show().siblings().hide(); $(this).find('ul.icons').children('li').on('click', function(e) { var liActive = $(this).index(); $(this).addClass('active').siblings().removeClass('active'); $(this).closest('.wrap-imagebox').find('.tab-product').children('.sort-box').eq(liActive).fadeIn(1000).show().siblings().hide(); e.preventDefault(); }); }); }; // Tab Sort Product var tabElement = function() { $('.flat-tab').each(function() { $(this).find('ul.tab-list').children().first().addClass('active'); $(this).find('.tab-content').children('.tab-item').first().show().siblings().hide(); $(this).find('ul.tab-list').children('li').on('click', function(e) { var liActive = $(this).index(); $(this).addClass('active').siblings().removeClass('active'); $(this).closest('.flat-tab').find('.tab-content').children('.tab-item').eq(liActive).fadeIn(1000).show().siblings().hide(); e.preventDefault(); }); }); }; // Tab Element var FilterPrice = function() { if( $().slider ) { $( function() { $( "#slider-range" ).slider({ range: true, min: 18, max: 1000, values: [ 18, 500 ], slide: function( event, ui ) { $( "#amount" ).val( ui.values[ 0 ] + "$" + " - " + ui.values[ 1 ] + "$" ); } }); $( "#amount" ).val( $( "#slider-range" ).slider( "values", 0 ) + "$" + " - " + $( "#slider-range" ).slider( "values", 1 ) + "$" ); }); } }; // Filter Price var scrollbarCheckbox = function() { if ( $().mCustomScrollbar ) { $(".box-checkbox").mCustomScrollbar({ scrollInertia:400, theme:"light-3", }); } }; // Scrollbar Checkbox var scrollbarTableCart = function() { $(".table-cart").mCustomScrollbar({ axis:"x", advanced:{autoExpandHorizontalScroll:true}, scrollInertia:400, }); }; // Scrollbar Table Cart var scrollbarWishlist = function() { $(".wishlist-content").mCustomScrollbar({ axis:"x", theme:"light-3", advanced:{autoExpandHorizontalScroll:true}, scrollInertia:400, }); }; // Scrollbar Compare var scrollbarCategories = function() { if ( $().mCustomScrollbar ) { $(".all-categories").mCustomScrollbar({ scrollInertia:400, theme:"light-3", }); } }; // Scrollbar Categories var scrollbarSearch = function() { if ( $().mCustomScrollbar ) { $(".search-suggestions .box-cat").mCustomScrollbar({ scrollInertia:400, theme:"light-3", }); } }; // Scrollbar Search var toggleWidget = function() { $( ".widget .widget-title h3 span" ).on('click', function() { $(this).toggleClass('active'); $(this).closest('.widget').children('.widget-content').slideToggle(300); }); }; // Toggle Widget var toggleCatlist = function() { $('.cat-list.style1').each(function() { $(this).children('li').children('ul.cat-child').hide(); $(this).children('li').children('ul.cats').show(); // $(this).children('li').children('ul.cat-child').first().show() $( ".cat-list.style1 li span" ).on('click', function() { $(this).parent('li').toggleClass('active'); $(this).toggleClass('active'); $(this).parent('li').children('ul.cat-child').slideToggle(300); // var liActive = $(this).index(), // contentActive = $(this).parent('li').siblings().removeClass('active').children('ul-cat-child').eq(liActive); // contentActive.addClass('active').parent('li').fadeIn("slow"); // contentActive.parent('li').siblings().removeClass('active'); // $(this).parent('li').addClass('active').children('.ul-cat-child').eq(liActive).siblings().hide(); }); }) }; // Toggle Cat List var toggleDropdown = function() { $( ".form-box .form-box-content .dropdown-title" ).on('click', function() { $(this).toggleClass('active'); $(this).parent('.form-box-content').children('ul').slideToggle(300); }); }; // Toggle Dropdown var toggleLocation = function() { $( ".location .location-content .select-location select" ).on('click', function() { $(this).toggleClass('active'); $(this).closest('.location-content').children('ul.location-list').slideToggle(300); }); }; // Toggle Location var showSuggestions = function() { $( ".top-search form.form-search .box-search" ).each(function() { $( "form.form-search .box-search input" ).on('focus', (function() { $(this).closest('.boxed').children('.overlay').css({ opacity: '1', display: 'block' }); $(this).parent('.box-search').children('.search-suggestions').css({ opacity: '1', visibility: 'visible', top: '77px' }); })); $( "form.form-search .box-search input" ).on('blur', (function() { $(this).closest('.boxed').children('.overlay').css({ opacity: '0', display: 'none' }); $(this).parent('.box-search').children('.search-suggestions').css({ opacity: '0', visibility: 'hidden', top: '100px' }); })); }); $( ".top-search.style1 form.form-search .box-search" ).each(function() { $( "form.form-search .box-search input" ).on('focus', (function() { $(this).closest('.boxed').children('.overlay').css({ opacity: '1', display: 'block' }); $(this).parent('.box-search').children('.search-suggestions').css({ opacity: '1', visibility: 'visible', top: '50px' }); })); }); }; // Toggle Location var showAllcat = function() { $('.cat-wrap').each(function() { $(this).on('click', function() { $(this).children('.all-categories').toggleClass('show'); }); }); }; var popup = function() { $('.popup-newsletter').each( function() { $(this).closest('.boxed').children('.overlay').css({ opacity: '1', display: 'block', zIndex: '89999' }); $(".popup span" ).on('click', function() { $(this).closest('.popup-newsletter').hide(400); $(this).closest('.boxed').children('.overlay').css({ opacity: '0', display: 'none', zIndex: '909' }); }); }); }; // Popup var accordionToggle = function() { var speed = {duration: 400}; $('.toggle-content').hide(); $('.accordion-toggle .toggle-title.active').siblings('.toggle-content').show(); $('.accordion').find('.toggle-title').on('click', function() { $(this).toggleClass('active'); $(this).next().slideToggle(speed); $(".toggle-content").not($(this).next()).slideUp(speed); if ($(this).is('.active')) { $(this).closest('.accordion').find('.toggle-title.active').toggleClass('active') $(this).toggleClass('active'); }; }); }; // Accordion Toggle var flexProduct = function() { $('.flexslider').flexslider({ animation: "slide", controlNav: "thumbnails" }); }; // Flex Product var progressBar = function(){ $('.progress-item').waypoint(function() { $('.progress-bar').each( function() { var percent = $(this).data('percent'); $(this).find('.progress-animate').animate({ "width": percent + '%' },2000); $(this).parent('.progress-item').find('.perc').addClass('show').animate({ "width": percent + '%' },2000); }); }, {offset: '100%'}); };// Progress Bar var progressCircle = function() { $('.progress-circle').waypoint(function() { $('.demo').percentcircle({ coverBg: '#e1e1e4', bgColor: '#e1e1e4', fillColor: '#f28b00' }); $('.demo').children('div:not(:first-child)').css({ display: 'none' }); }, {offset: '100%'}); }; // Progress Circle var detectViewport = function() { $('[data-waypoint-active="yes"]').waypoint(function() { $(this).trigger('on-appear'); }, { offset: '100%', triggerOnce: true }); $(window).on('load', function() { setTimeout(function() { $.waypoints('refresh'); }, 100); }); }; // Detect Viewport var BrandsIsotope = function() { if ( $().isotope ) { var $container = $('.brands-list'); var selector = $(this).attr('data-filter'); $container.imagesLoaded(function(){ $container.isotope({ itemSelector: '.ipsotope', transitionDuration: '1s' }); $container.isotope({ filter: '*' }) }); $('.brands-tablist li').on('click',function() { var selector = $(this).attr('data-filter'); $('.brands-tablist li').removeClass('active'); $(this).addClass('active'); $container.isotope({ filter: selector }); return false; }); }; }; // Brands Isotope var scrollbarLocation = function() { if ( $().mCustomScrollbar ) { $(".location .location-content .scroll").mCustomScrollbar({ scrollInertia:400, }); } }; // Scrollbar Location var googleMap = function() { if ( $().gmap3 ) { $(".map").gmap3({ map:{ options:{ center:[32.301023, -90.193353], zoom: 6, mapTypeId: 'themesflat_style', mapTypeControlOptions: { mapTypeIds: ['themesflat_style', google.maps.MapTypeId.SATELLITE, google.maps.MapTypeId.HYBRID] }, scrollwheel: false, navigationControl: true, streetViewControl: true } }, getlatlng:{ address: $('.flat-maps').data('address'), callback: function(results) { if ( !results ) return; $(this).gmap3('get').setCenter(new google.maps.LatLng(results[0].geometry.location.lat(), results[0].geometry.location.lng())); $(this).gmap3({ marker:{ latLng:results[0].geometry.location, options:{ icon: $('.flat-maps').data('images') } } }); } }, styledmaptype:{ id: "themesflat_style", options:{ name: "Themesflat Map" }, styles:[ { "featureType": "water", "elementType": "all", "stylers": [ { "color": "#a3ccff" }, { "visibility": "on" } ] } ] }, }); } $('.map').css( 'height', $('.flat-maps').data('height') ); }; // Google Map var googleMap_s2 = function() { var data = JSON.parse('[{"address":"Quận Bradford, Florida","content":"","status":"live"},{"address":"Quận Bibb, Georgia","content":""},{"address":"Wateree Swamp, Nam Carolina","content":""}]'); // Gmap Defaults $('.map-2').gmap3({ map:{ options:{ center:[33.720972, -78.884506], mapTypeId: 'themesflat_style', mapTypeControlOptions: { mapTypeIds: ['themesflat_style', google.maps.MapTypeId.SATELLITE, google.maps.MapTypeId.HYBRID]}, zoom: 6 }, navigationControl: true, scrollwheel: false, streetViewControl: true } }); // Json Loop $.each(data, function(key, val) { $('.map-2').gmap3({ marker:{ values:[{ address:val.address, options:{icon: "images/icons/map.png"}, }] }, styledmaptype:{ id: "themesflat_style", options:{ name: "Themesflat Map" }, styles:[ ] } }); }); }; // Google Map S2 var goTop = function(){ var gotop = $('.btn-scroll'); gotop.on('click', function() { $('html, body').animate({ scrollTop: 0}, 800, 'easeInOutExpo'); return false; }); }; // Go Top var overlay = function(){ var megaMenu = $('.zara-menu div'); megaMenu.on('mouseover', function() { $(this).closest('.boxed').children('.overlay').css({ opacity: '1', display: 'block', }); }); megaMenu.on('mouseleave', function() { $(this).closest('.boxed').children('.overlay').css({ opacity: '0', display: 'none', }); }); }; // Overlay var zoomImage = function() { $(document).ready(function(){ $('#zoom').zoom(); $('#zoom1').zoom(); $('#zoom2').zoom(); $('#zoom3').zoom(); $('#zoom4').zoom(); }); }; // zoom Image var removePreloader = function() { $(window).on('load', function() { setTimeout(function() { $('.preloader').hide(); }, 300 ); }); }; //remove Preloader // Dom Ready $(function() { responsiveMenu(); responsiveMenuMega_S2(); responsiveMenuMega(); searchButton(); searchFilterbox(); waveButton(); slider(); slider_s2(); slideProduct(); slideCounter(); slideMostViewer(); slideMostViewer_s2(); slideMostViewer_s3(); slideMostViewer_s4(); slideBrand(); slideAccessories(); slideTeam(); slideBrand_s2(); slideProduct_s2(); slideProduct_s3(); slideProduct_s4(); slideProduct_s5(); slideProduct_s6(); slideProduct_s7(); slideProduct_s8(); slideTestimonial(); CountDown(); CountDown_s2(); tabImagebox(); tabImagebox_s2(); tabProductDetail(); tabElement(); tabSortproduct(); overlay(); FilterPrice(); toggleWidget(); toggleCatlist(); toggleDropdown(); toggleLocation(); showSuggestions(); showAllcat(); accordionToggle(); flexProduct(); progressBar(); detectViewport(); progressCircle(); BrandsIsotope(); scrollbarCheckbox(); scrollbarLocation(); scrollbarTableCart(); scrollbarWishlist(); scrollbarCategories(); scrollbarSearch(); googleMap(); googleMap_s2(); goTop(); popup(); zoomImage(); removePreloader(); }); })(jQuery); $(document).ready(function(){ $('.myInput').keyup(function () { var theValue = $(this).attr('data-value'); var value = $(this).val().toLowerCase(); $(".myList li[data="+ theValue +"]").filter(function() { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) }); }); }); $(".select li").click(function() { var theValue = $(this).attr('data-value'); var theVal = $(this).attr('data-name'); $(".top-search form").attr('action',$("form").attr('action')+ theValue); $('.init').append('<option hidden value="'+theValue+'" selected="selected">'+theVal+'</option>'); }); $(".list").click(function() { $('.tab-product div.qw').removeClass("row"); $('.tab-product div.qwe').removeClass("col-lg-4 col-sm-6"); $('.tab-product div.qwer').addClass("style3"); $('.tab-product div.qwert').addClass("style1 v3"); $('.tab-product div.qwerty').hide(); $('.tab-product div.qwertyu').show(); $('.tab-product div.qwertyui').addClass("box-price"); $('.tab-product div.qwertyui').removeClass("box-bottom"); $('.tab-product div.qwertyuio').show(); }); $(".grid").click(function() { $('.tab-product div.qw').addClass("row"); $('.tab-product div.qwe').addClass("col-lg-4 col-sm-6"); $('.tab-product div.qwer').removeClass("style3"); $('.tab-product div.qwert').removeClass("style1 v3"); $('.tab-product div.qwerty').show(); $('.tab-product div.qwertyu').hide(); $('.tab-product div.qwertyui').removeClass("box-price"); $('.tab-product div.qwertyui').addClass("box-bottom"); $('.tab-product div.qwertyuio').hide(); });
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula