/*Funzione per inizializzare i componenti javascript di uikit automaticamente ongni 50ms*/ function inizializzaUikit() { $.UIkit.init(); setTimeout(inizializzaUikit, 50); } /*Esecuzione della funzione inizializzaUikit*/ $(document).ready(function() { inizializzaUikit(); }); /*Fine Inizializzazione*/ $(document).ready(function() { /*Gestione menu flottanti di testata*/ $('.menuPrincipale li').mouseover(function() { $(this).siblings().each(function(){ var _el = $(this).first().find('ul'); if (_el.css('visibility') == 'visible') { _el.css('visibility','hidden'); } }); }); $('.menuPrincipale li').mouseout(function() { var _el = $(this).find('ul').first(); _el.css('visibility','visible'); setTimeout(function (){ _el.css('visibility','hidden'); }, 1500); }); }); /*Visualizzazione Elementi allo scroll della pagina - scrollspy*/ $(document).ready(function() { $('.scrollspy').attr("data-uk-scrollspy","{cls:'uk-animation-fade'}"); }); /*funzione per lo scrollUp della pagina*/ $(document).scroll(function() { var y = $(this).scrollTop(); if (y > 200) { $('.pulsanteUp').fadeIn(); } else { $('.pulsanteUp').fadeOut(); } }); /***********************************************************************************************/ /********************funzioni per lo show e l'hide della finestra di quickview*****************/ /*********************************************************************************************/ function showQuickView (_el){ //$(_el).find('.quickView').show(); $('.quickView').magnificPopup({ items: { src: $(_el).find('.extra'), type: 'inline', midClick: true, removalDelay: 300 }, mainClass: 'mfp-fade' }); $('.availability_button').attr('title','Richiedi disponibilità'); } /*Esecuzuione delle funzioni di quickview*/ $(document).ready(function(){ $(document).on('mouseover', '.ecOfferboxComp-cell', function() { showQuickView (this); }); $(document).on('mouseover', '.ecCatalogComp-cell', function() { showQuickView (this); }); $(document).on('mouseover', '.ecPopularityComp-cell', function() { showQuickView (this); }); $(document).on('mouseover', '.ecCatalogsearchresultsboxComp-cell', function() { showQuickView (this); }); $(document).on('mouseover', '.ecCombinedboxComp-cell', function() { showQuickView (this); }); });$(document).ready(function(){ /*Pannello Con Note in Carrello apertura/chiusura con click $(document).on("click",'.pulsanteGridExtra', function(){ if ( $(this).parent().parent().find('.gridExtra').css('display') == 'none' ) { $(this).parent().parent().find('.gridExtra').animate({height: 'show'}, 400); } else { $(this).parent().parent().find('.gridExtra').animate({height: 'hide'}, 200); } });*/ /*Apertura/chiusura al clik dei pannelli sulle spese di spedizione, sul buono sconto e sul pagamento*/ $(document).on("click",'.ecCartCustomComp-titleVoucherQuote', function(){ if ( $(this).parent().parent().find('.ecCartCustomComp-contentVoucherQuote').css('display') == 'none' ) { $(this).parent().parent().find('.ecCartCustomComp-contentVoucherQuote').animate({height: 'show'}, 400); } else { $(this).parent().parent().find('.ecCartCustomComp-contentVoucherQuote').animate({height: 'hide'}, 200); } }); $(document).on("click",'.ecCartCustomComp-titleShippingQuote', function(){ if ( $(this).parent().parent().find('.ecCartCustomComp-contentShippingQuote').css('display') == 'none' ) { $(this).parent().parent().find('.ecCartCustomComp-contentShippingQuote').animate({height: 'show'}, 400); $(this).parent().parent().find('.ecCartCustomComp-linkQuoteShippingQuote').animate({height: 'show'}, 400); $(this).parent().parent().find('.ecCartCustomComp-resultShippingQuote').animate({height: 'show'}, 400); } else { $(this).parent().parent().find('.ecCartCustomComp-contentShippingQuote').animate({height: 'hide'}, 200); $(this).parent().parent().find('.ecCartCustomComp-linkQuoteShippingQuote').animate({height: 'hide'}, 200); $(this).parent().parent().find('.ecCartCustomComp-resultShippingQuote').animate({height: 'hide'}, 200); } }); $(document).on("click",'.ecCartCustomComp-titleBillingQuote', function(){ if ( $(this).parent().parent().find('.ecCartCustomComp-descriptionBillingQuote').css('display') == 'none' ) { $(this).parent().parent().find('.ecCartCustomComp-descriptionBillingQuote').animate({height: 'show'}, 400); $(this).parent().parent().find('.ecCartCustomComp-resultBillingQuote').animate({height: 'show'}, 400); $(this).parent().parent().find('.ecCartCustomComp-linkUpdateTotalBillingQuote').animate({height: 'show'}, 400); } else { $(this).parent().parent().find('.ecCartCustomComp-descriptionBillingQuote').animate({height: 'hide'}, 200); $(this).parent().parent().find('.ecCartCustomComp-resultBillingQuote').animate({height: 'hide'}, 200); $(this).parent().parent().find('.ecCartCustomComp-linkUpdateTotalBillingQuote').animate({height: 'hide'}, 200); } }); });
Powered by Passepartout