' + ''; } return result; } }, callbacks: { open: function() { yaCounter40101690.reachGoal('C_zum_1'); console.log('C_zum_1'); } } }); /*$('.thumbnails_').magnificPopup({ type:'image', delegate: 'a', key: 'key2', gallery: { enabled:true, tCounter: '%curr% из %total%' } });*/ }); $(document).ready(function() { $('.thumbnails_fasady').magnificPopup({ type:'image', delegate: 'a', gallery: { enabled:true, tCounter: '%curr% из %total%' }, mainClass: 'mfp-with-zoom', // this class is for CSS animation below zoom: { enabled: true, // By default it's false, so don't forget to enable it duration: 300, // duration of the effect, in milliseconds easing: 'ease-in-out', // CSS transition easing function // The "opener" function should return the element from which popup will be zoomed in // and to which popup will be scaled down // By defailt it looks for an image tag: opener: function(openerElement) { // openerElement is the element on which popup was initialized, in this case its tag // you don't need to add "opener" option if this code matches your needs, it's defailt one. return openerElement.is('img') ? openerElement : openerElement.find('img'); } } }); $('.thumbnails_dekor').magnificPopup({ type:'image', delegate: 'a', gallery: { enabled:true, tCounter: '%curr% из %total%' }, mainClass: 'mfp-with-zoom', // this class is for CSS animation below zoom: { enabled: true, // By default it's false, so don't forget to enable it duration: 300, // duration of the effect, in milliseconds easing: 'ease-in-out', // CSS transition easing function // The "opener" function should return the element from which popup will be zoomed in // and to which popup will be scaled down // By defailt it looks for an image tag: opener: function(openerElement) { // openerElement is the element on which popup was initialized, in this case its tag // you don't need to add "opener" option if this code matches your needs, it's defailt one. return openerElement.is('img') ? openerElement : openerElement.find('img'); } } }); }); $(document).ready(function() { $("#owl-demo").owlCarousel({ items : 1, nav: true, navText : ['',''] }); owl = $("#owl-demo1"); //owl.owlCarousel({ owl.owlCarousel({ items : 3, responsive:{ 0:{items:1}, 320:{items:1}, 992:{items:2}, 1199:{items:3} }, nav: true, navContainer: '#controll', navText : ['',''], callbacks: true /*, afterInit: function(){ }*/ }); /*owl.on('onInitAfter',function(e){ });*/ }); /*$('.hovertip').on('click',function(){ return false; });*/ //--> '; } html += ''; } //Products if (data.products.length) { if (data.categories.length) { html += '
'+prodTitle+''; } var products = data.products; for (i = 0; i '; html += ''; html += products[i]['name']; html += '
'; html += ''; } if (data.categories.length) { html += '
'; } html += '
'+viewAllTitle+'
'; } //suggestion if (data.suggestion.length) { html += '
'+data.suggestion+''; html += '
'; } if (!data.products.length && !data.suggestion.length) { html = '
'+noResTitle+'
'; } $(selector).next().html(html); }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } function hideSearch() { $('.sphinxsearch').hide(); $('#search input').removeAttr('style'); }