PageSourceSearch

https://www.mouzaki.gr/cache/plg_jch_optimize/904a75cbb627126f20e272f4e7c6af3c_2.js

js mouzaki.gr collected 2026-10-02 07:30:43 UTC 19,929 bytes, 79 lines download raw bytes

1try {
2;(function(e){e.isScrollToFixed=function(t){return!!e(t).data("ScrollToFixed")};e.ScrollToFixed=function(t,n){function m(){s.trigger("preUnfixed.ScrollToFixed");x();s.trigger("unfixed.ScrollToFixed");h=-1;f=s.offset().top;l=s.offset().left;if(r.options.offsets){l+=s.offset().left-s.position().left}if(c==-1){c=l}o=s.css("position");i=true;if(r.options.bottom!=-1){s.trigger("preFixed.ScrollToFixed");E();s.trigger("fixed.ScrollToFixed")}}function g(){var e=r.options.limit;if(!e)return 0;if(typeof e==="function"){return e.apply(s)}return e}function y(){return o==="fixed"}function b(){return o==="absolute"}function w(){return!(y()||b())}function E(){if(!y()){p.css({display:s.css("display"),width:(s.outerWidth(true)*100/s.parent().width()).toFixed(2)-.04+"%",height:s.outerHeight(true),"float":s.css("float")});cssOptions={position:"fixed",top:r.options.bottom==-1?N():"",bottom:r.options.bottom==-1?"":r.options.bottom,"margin-left":"0px"};if(!r.options.dontSetWidth){cssOptions["width"]=s.width()}s.css(cssOptions);s.addClass(r.options.baseClassName);if(r.options.className){s.addClass(r.options.className)}o="fixed"}}function S(){var e=g();var t=l;if(r.options.removeOffsets){t="";e=e-f}cssOptions={position:"absolute",top:e,left:t,"margin-left":"0px",bottom:""};if(!r.options.dontSetWidth){cssOptions["width"]=s.width()}s.css(cssOptions);o="absolute"}function x(){if(!w()){h=-1;p.css("display","none");s.css({width:"",position:u,left:"",top:a,"margin-left":""});s.removeClass("scroll-to-fixed-fixed");if(r.options.className){s.removeClass(r.options.className)}o=null}}function T(e){if(e!=h){s.css("left",l-e);h=e}}function N(){var e=r.options.marginTop;if(!e)return 0;if(typeof e==="function"){return e.apply(s)}return e}function C(){if(!e.isScrollToFixed(s))return;var t=i;if(!i){m()}var n=e(window).scrollLeft();var o=e(window).scrollTop();var a=g();if(r.options.minWidth&&e(window).width()<r.options.minWidth){if(!w()||!t){L();s.trigger("preUnfixed.ScrollToFixed");x();s.trigger("unfixed.ScrollToFixed")}}else if(r.options.maxWidth&&e(window).width()>r.options.maxWidth){if(!w()||!t){L();s.trigger("preUnfixed.ScrollToFixed");x();s.trigger("unfixed.ScrollToFixed")}}else if(r.options.bottom==-1){if(a>0&&o>=a-N()){if(!b()||!t){L();s.trigger("preAbsolute.ScrollToFixed");S();s.trigger("unfixed.ScrollToFixed")}}else if(o>=f-N()){if(!y()||!t){L();s.trigger("preFixed.ScrollToFixed");E();h=-1;s.trigger("fixed.ScrollToFixed")}T(n)}else{if(!w()||!t){L();s.trigger("preUnfixed.ScrollToFixed");x();s.trigger("unfixed.ScrollToFixed")}}}else{if(a>0){if(o+e(window).height()-s.outerHeight(true)>=a-(N()||-k())){if(y()){L();s.trigger("preUnfixed.ScrollToFixed");if(u==="absolute"){S()}else{x()}s.trigger("unfixed.ScrollToFixed")}}else{if(!y()){L();s.trigger("preFixed.ScrollToFixed");E()}T(n);s.trigger("fixed.ScrollToFixed")}}else{T(n)}}}function k(){if(!r.options.bottom)return 0;return r.options.bottom}function L(){var e=s.css("position");if(e=="absolute"){s.trigger("postAbsolute.ScrollToFixed")}else if(e=="fixed"){s.trigger("postFixed.ScrollToFixed")}else{s.trigger("postUnfixed.ScrollToFixed")}}var r=this;r.$el=e(t);r.el=t;r.$el.data("ScrollToFixed",r);var i=false;var s=r.$el;var o;var u;var a;var f=0;var l=0;var c=-1;var h=-1;var p=null;var d;var v;var A=function(e){if(s.is(":visible")){i=false;C()}};var O=function(e){C()};var M=function(){var e=document.body;if(document.createElement&&e&&e.appendChild&&e.removeChild){var t=document.createElement("");if(!t.getBoundingClientRect)return null;t.innerHTML="x";t.style.cssText="position:fixed;top:100px;";e.appendChild(t);var n=e.style.height,r=e.scrollTop;e.style.height="3000px";e.scrollTop=500;var i=t.getBoundingClientRect().top;e.style.height=n;var s=i===100;e.removeChild(t);e.scrollTop=r;return s}return null};var _=function(e){e=e||window.event;if(e.preventDefault){e.preventDefault()}e.returnValue=false};r.init=function(){r.options=e.extend({},e.ScrollToFixed.defaultOptions,n);r.$el.css("z-index",r.options.zIndex);p=e("");o=s.css("position");u=s.css("position");a=s.css("top");if(w())r.$el.after(p);if(r.options.preFixed){s.bind("preFixed.ScrollToFixed",r.options.preFixed)}if(r.options.postFixed){s.bind("postFixed.ScrollToFixed",r.options.postFixed)}if(r.options.preUnfixed){s.bind("preUnfixed.ScrollToFixed",r.options.preUnfixed)}if(r.options.postUnfixed){s.bind("postUnfixed.ScrollToFixed",r.options.postUnfixed)}if(r.options.preAbsolute){s.bind("preAbsolute.ScrollToFixed",r.options.preAbsolute)}if(r.options.postAbsolute){s.bind("postAbsolute.ScrollToFixed",r.options.postAbsolute)}if(r.options.fixed){s.bind("fixed.ScrollToFixed",r.options.fixed)}if(r.options.unfixed){s.bind("unfixed.ScrollToFixed",r.options.unfixed)}if(r.options.spacerClass){p.addClass(r.options.spacerClass)}s.bind("resize.ScrollToFixed",function(){p.height(s.height())});s.bind("scroll.ScrollToFixed",function(){s.trigger("preUnfixed.ScrollToFixed");x();s.trigger("unfixed.ScrollToFixed");C()});s.bind("detach.ScrollToFixed",function(t){_(t);s.trigger("preUnfixed.ScrollToFixed");x();s.trigger("unfixed.ScrollToFixed");e(window).unbind("resize.ScrollToFixed",A);e(window).unbind("scroll.ScrollToFixed",O);s.unbind(".ScrollToFixed");p.remove();r.$el.removeData("ScrollToFixed")});A()};r.init()};e.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed"};e.fn.scrollToFixed=function(t){return this.each(function(){new e.ScrollToFixed(this,t)})}})(jQuery)
3jQuery(function($){
4	$('.menu-search>.iceMenuTitle').on('click',function(){
5        var parent=$(this).parent();
6        $(this).parent().find('.top_search').toggleClass('visible');
7        if(!parent.hasClass('visible')){
8            parent.addClass('visible');
9            $('.mod-search__<?php echo $moduleclass_sfx; ?> #searchword').focus()
10        }
11    });
12    $('.mod-search>.fa-times').click(function(){
13        $(this).parents('.icemega_modulewrap').removeClass('visible')
14    });
15	var $scrollEl=($.browser.mozilla||$.browser.msie)?$('html'):$('body');if(screen.width>767){$(window).load(function(){$('#icemegamenu').closest('div[id]').addClass('stuck').scrollToFixed({minWidth:768});})}var fixed=$('#icemegamenu').closest('div[id]');
16	if($(window).width() > 1600){
17		var height=fixed.offset().top+fixed.innerHeight()-100;
18	} else {
19		var height=fixed.offset().top+fixed.innerHeight()-50;
20	}
21	//var height=fixed.offset().top+fixed.innerHeight()/*-230*/;
22	$(window).on('load scroll',checkStuck);function checkStuck(){
23		var st=$(window).scrollTop();if(st<height && $(window).width()>767){
24			fixed.removeClass('scroll-to-fixed-fixed').css('top','auto').css('position','static').css('width', fixed_clone.width());
25			$('#fixed_cloned').css('display', 'none').css('visibility','hidden');
26		}else{
27			if(!$('body').hasClass('desktop_mode') && screen.width>767 && st>height){
28				fixed.addClass('scroll-to-fixed-fixed').css('position','fixed').css('top','0');
29				$('#fixed_cloned').css('display', 'block').css('width', fixed_clone.width());
30			}
31		}
32	}
33	$('.icemegamenu li>a.iceMenuTitle').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')});var $hide_block=false;$('.icemega_modulewrap input[type]').focus(function(){$hide_block=true})
34$('.icemega_modulewrap input[type]').blur(function(){$hide_block=false});
35if($('body').hasClass('desktop_mode')||($('body').hasClass('mobile')&&screen.width>767)){$('.icemegamenu li').not('.parent').find('>a.iceMenuTitle[href^="#"]').click(function(){var a=$(this);animate_body(a)})
36$('.icemegamenu li.parent>a.iceMenuTitle[href^="#"]').click(function(){var a=$(this);if(a.closest("li").hasClass("hover")){hide_submenu(a);animate_body(a)}else{$('.icemegamenu li.parent[class^="iceMenuLiLevel"]').not(a.closest("li").parents("li")).not(a.closest("li")).removeClass("hover");a.closest("li").addClass("hover").attr("data-hover","true");a.closest("li").find(">ul.icesubMenu").addClass("visible");return false}})
37$('.icemegamenu li.parent>a').not('[href]').click(function(){var a=$(this);if(a.closest("li").hasClass("hover")){if(!a.attr('href')){a.removeClass('hover');a.closest("li").attr('data-hover','false');hide_submenu(a,0)}}else{$('.icemegamenu li.parent[class^="iceMenuLiLevel"]').not(a.closest("li").parents("li")).not(a.closest("li")).removeClass("hover");a.closest("li").addClass("hover").attr("data-hover","true");a.closest("li").find(">ul.icesubMenu").addClass("visible");return false;}})
38$('.icemegamenu li[class^="iceMenuLiLevel"]').not('.parent').find('>a.iceMenuTitle[href]').not('[href^="#"]').click(function(){var a=$(this);if(window.location.href.split("#")[0]==a.attr('href')){animate_body(a);return false}})
39$('.icemegamenu li.parent[class^="iceMenuLiLevel"]').find('>a.iceMenuTitle[href]').not('[href^="#"]').click(function(){var a=$(this);if(a.closest("li").hasClass("hover")){if(window.location.href.split("#")[0]==a.attr('href')){hide_submenu(a);animate_body(a);return false}}else{$('.icemegamenu li.parent[class^="iceMenuLiLevel"]').not(a.closest("li").parents("li")).not(a.closest("li")).removeClass("hover");a.closest("li").addClass("hover").attr("data-hover","true");a.closest("li").find(">ul.icesubMenu").addClass("visible");return false}})
40$('body').on('click',function(){$('.icemegamenu li.parent').each(function(){$(this).attr('data-hover','false');a=$(this).find('>a');hide_submenu(a,0);})})}else{$('.icemegamenu li.parent[class^="iceMenuLiLevel"]').hover(function(){$('#icemegamenu li.parent[class^="iceMenuLiLevel"]').not($(this).parents('li')).not($(this)).removeClass('hover');$(this).addClass('hover').attr('data-hover','true');$(this).find('>ul.icesubMenu').addClass('visible')},function(){$(this).attr('data-hover','false');a=$(this).find('>a');hide_submenu(a)})
41$('.icemegamenu li.iceMenuLiLevel_1>a.iceMenuTitle[href^="#"]').click(function(){var a=$(this);animate_body(a)})
42$('.icemegamenu li[class^="iceMenuLiLevel"]>a.iceMenuTitle[href]').click(function(){var a=$(this);if(window.location.href.split("#")[0]==a.attr('href')){animate_body(a);return false}})}function hide_submenu(a,delay){delay=typeof delay!=='undefined'?delay:800;a.delay(delay).queue(function(b){if(a.closest("li").attr("data-hover")=="false"&&$hide_block!=true){a.closest("li").removeClass("hover").delay(250).queue(function(c){if(a.closest("li").attr("data-hover")=="false"){a.closest("li").find(">ul.icesubMenu").removeClass("visible")}c()})}b()})}
42function animate_body(a){if(window.location.href.split("#")[0]!=a.attr('href')){if($('a[name="'+a.attr("href").substring(1)+'"]').length){click_scroll=true;$('.icemegamenu li[class^="iceMenuLiLevel"]').removeClass("hover").find(">a.iceMenuTitle").removeClass("icemega_active").removeClass('hover');a.addClass("icemega_active");if(history.pushState){history.pushState(null,null,a.attr("href"))}$scrollEl.animate({scrollTop:$('a[name="'+a.attr("href").substring(1)+'"]').offset().top-$(".scroll-to-fixed-fixed").outerHeight()},400,function(){$(this).delay(200).queue(function(b){click_scroll=false;$(this).delay(1200).queue(function(c){if(typeof $.fn.lazy=="function"){$("img.lazy").lazy({bind:"event",effect:"fadeIn",effectTime:500})}c()});b()})})}}if(window.location.href.split("#")[0]==a.attr('href')){click_scroll=true;$('.icemegamenu li[class^="iceMenuLiLevel"]').removeClass("hover").find(">a.iceMenuTitle").removeClass("icemega_active").removeClass('hover');a.addClass("icemega_active");if(history.pushState){history.pushState(null,null,'#')}$scrollEl.animate({scrollTop:0},400,function(){$(this).delay(200).queue(function(b){click_scroll=false;$(this).delay(1200).queue(function(c){if(typeof $.fn.lazy=="function"){$("img.lazy").lazy({bind:"event",effect:"fadeIn",effectTime:500})}c()});b()})})}return false;}function change_menu_item(){if(!click_scroll){var a=$(window).scrollTop(),d="";y=$(document).height();if(!init_hash||init_hash==""){for(var b=0,c=idArray.length;b<c;b++){if($('a[name="'+idArray[b].substring(1)+'"]').length){if(a+($(window).height()-$(".scroll-to-fixed-fixed").outerHeight())/2>=$('a[name="'+idArray[b].substring(1)+'"]').offset().top&&y>a+($(window).height()-$(".scroll-to-fixed-fixed").outerHeight())/2-$('a[name="'+idArray[b].substring(1)+'"]').offset().top){d=idArray[b];y=a+($(window).height()-$(".scroll-to-fixed-fixed").outerHeight())/2-$('a[name="'+idArray[b].substring(1)+'"]').offset().top}}}lastScrollTop=a;if(window.location.hash!=d&&d!=""){if(history.pushState){history.pushState(null,null,d)}$('.icemegamenu li[class^="iceMenuLiLevel"]').removeClass("hover").find(">a.iceMenuTitle").removeClass("icemega_active").removeClass('hover');$("a.iceMenuTitle[href="+d+"]").addClass("icemega_active")}if(a==0){if(history.pushState&&window.location.hash){history.pushState(null,null,'#')}$('.icemegamenu li[class^="iceMenuLiLevel"]').removeClass("hover").find(">a.iceMenuTitle").removeClass("icemega_active").removeClass('hover');if(window.location.hash){$("a.iceMenuTitle[href=\""+window.location.href+"\"]").addClass("icemega_active")}else{$("a.iceMenuTitle[href=\""+window.location.href.split('#')[0]+"\"]").addClass("icemega_active")}}}else{if($("a.iceMenuTitle[href="+init_hash+"]").length){$('.icemegamenu li[class^="iceMenuLiLevel"]').removeClass("hover").find(">a.iceMenuTitle").removeClass("icemega_active").removeClass('hover');$("a.iceMenuTitle[href="+init_hash+"]").addClass("icemega_active");}if($('a[name="'+init_hash.substring(1)+'"]').length){click_scroll=true;$scrollEl.delay(100).queue(function(z){$scrollEl.animate({scrollTop:$('a[name="'+init_hash.substring(1)+'"]').offset().top-$(".scroll-to-fixed-fixed").outerHeight()},400,function(){$(this).delay(200).queue(function(e){click_scroll=false;init_hash=false;$(this).delay(1200).queue(function(f){if(typeof $.fn.lazy=="function"){$(".lazy_container img").lazy({bind:"event",effect:"fadeIn",effectTime:500})}f()});e()})})
43z()})}}return false}}if($('.icemegamenu li[class^="iceMenuLiLevel"]>a.iceMenuTitle[href^="#"]').length&&$('.icemegamenu li[class^="iceMenuLiLevel"]>a.iceMenuTitle[href^="#"]').attr('href')!='#'){$(window).scroll($.throttle(500,function(){change_menu_item()}));$(window).load(function(){change_menu_item();if($(this).scrollTop()>24){$("body:first").addClass("scrolled")}else{$("body:first").removeClass("scrolled")}});var idArray=[],click_scroll=false,init_hash=window.location.hash,lastScrollTop=0;$('.icemegamenu li[class^="iceMenuLiLevel"]>a.iceMenuTitle[href^="#"]').each(function(a){idArray[a]=$(this).attr("href")})}});
44
45;(function($){
46	loaded_clone = 0;
47	if($(window).width()>767){
48		
49		$(window).on('load scroll',function(){
50		
51			if(loaded_clone==0)
52			{
53				fixed_pos = $('#icemegamenu').closest('div[id]');
54				fixed_clone = $('#icemegamenu').closest('div[id]').clone().attr('id','fixed_cloned').insertAfter(fixed_pos).addClass('fixed_cloned').css({
55					   'height' : fixed_pos.height(),
56					   'width' : fixed_pos.width()
57					});
58				loaded_clone = 1;
59			}
60		});
61
62		$(window).on('load',function(){
63			if($('#icemegamenu li').hasClass('fullwidth')){
64				$('#icemegamenu').closest('.container').css('position','relative').find('nav[class*=\'col-sm-\']').css('position','inherit');
65			}
66		});
67	}
68	
69	
70
71})(jQuery);
72} catch (e) {
73console.error('Error in file:/templates/theme3310/html/mod_icemegamenu/js/menu.js; Error:' + e.message);
74};
75try {
76!function(e){var t,s,a={cntClass:"rd-mobilemenu",menuClass:"rd-mobilemenu_ul",submenuClass:"rd-mobilemenu_submenu",panelClass:"rd-mobilepanel",toggleClass:"rd-mobilepanel_toggle",titleClass:"rd-mobilepanel_title"},l=function(t,s){this.options=s,this.$source=e(t)};l.prototype={init:function(){var e=this;e.createDOM(),e.createListeners()},createDOM:function(){var t=this;e("body").append(e("<div/>",{"class":a.cntClass}).append(t.createNavDOM())).append(e("<div/>",{"class":a.panelClass}).append(e("<button/>",{"class":a.toggleClass}).append(e("<span/>"))).append(e("<div/>",{"class":a.titleClass,text:document.title})))},createNavDOM:function(){for(var t=this,s=e("<ul>",{"class":a.menuClass}),l=t.$source.children(),o=0;o<l.length;o++){for(var n=l[o].children,i=null,r=0;r<n.length;r++)if(n[r].tagName)switch(i||(i=document.createElement("li"),i.className=l[o].className.indexOf("active")>-1?"level_1 active":"level_1"),n[r].tagName.toLowerCase()){case"a":var c=n[r].cloneNode(!0);i.appendChild(c);break;case"ul":var u=n[r].cloneNode(!0);u.className=a.submenuClass,e(u).css({display:"none"}),i.appendChild(u),e(i).find("> a").each(function(){$this=e(this),$this.addClass("rd-with-ul").append(e("<span/>",{"class":"rd-submenu-toggle"})).find(".rd-submenu-toggle").on("click",function(t){if(t.preventDefault(),$this=e(this).parent(),$this.hasClass("rd-with-ul")&&!$this.hasClass("active")){e(".rd-with-ul").removeClass("active");var s=$this.addClass("active").parent().find("."+a.submenuClass);s.stop().slideDown(),e("."+a.submenuClass).not(s).stop().slideUp()}else{var s=$this.removeClass("active").parent().find("."+a.submenuClass);s.stop().slideUp()}})})}i&&s.append(i)}return s},createListeners:function(){var e=this;e.createToggleListener(),e.createResizeListener()},createToggleListener:function(){var t,s=this;t=s.isMobile()?"touchstart":"click",e("body").delegate("."+a.toggleClass,t,function(){var l=e("."+a.cntClass);e(this).toggleClass("active"),l.hasClass("active")?(e(this).removeClass("active"),l.removeClass("active"),e("body").undelegate("*","mousewheel",s.scroll),e("body").undelegate("*","touchmove",s.scroll),e("body").undelegate("*","touchend",s.touchend),e("body").undelegate("*","touchstart",s.close),e("body").undelegate("*:not(."+a.toggleClass+" span)","click",s.close)):(e(this).addClass("active"),l.addClass("active"),e("body").delegate("*","mousewheel",s.scroll),e("body").delegate("*","touchmove",s.scroll),e("body").delegate("*","touchend",s.touchend),e("body").delegate("*","touchstart",{type:t},s.close),e("body").delegate("*:not(."+a.toggleClass+" span)","click",{type:t},s.close))})},createResizeListener:function(){var t=this;e(window).on("resize",function(){var s=e("."+a.cntClass);"none"==s.css("display")&&(s.removeClass("active"),e("."+a.toggleClass).removeClass("active"),e("body").undelegate("*","mousewheel",t.scroll),e("body").undelegate("*","touchmove",t.scroll),e("body").undelegate("*","touchend",t.touchend),e("body").undelegate("*","touchstart",t.close),e("body").undelegate("*:not(."+a.toggleClass+" span)","click",t.close))})},scroll:function(l){l.preventDefault();var o=e("."+a.menuClass),n=l.originalEvent.targetTouches?l.originalEvent.targetTouches[0].pageX:l.pageX,i=l.originalEvent.targetTouches?l.originalEvent.targetTouches[0].pageY:l.pageY;if(i>o.offset().top&&i<o.offset().top+o.outerHeight()&&n>o.offset().left&&n<o.offset().left+o.outerWidth()){var r=0;l.originalEvent.targetTouches?(t||(t=i),r=t-i,t=i,s=r>0):r=-50*(l.originalEvent.wheelDelta||-l.originalEvent.detail),o.stop().scrollTop(o.scrollTop()+r)}return!1},touchend:function(){var l=e("."+a.menuClass);l.stop().animate({scrollTop:l.scrollTop()+(s?100:-100)},3e3,"easeOutQuint"),t=void 0},close:function(t){if(t.originalEvent){var s=e("."+a.menuClass),l=t.originalEvent.targetTouches?t.originalEvent.targetTouches[0].pageX:t.pageX,o=t.originalEvent.targetTouches?t.originalEvent.targetTouches[0].pageY:t.pageY;o>s.offset().top&&o<s.offset().top+s.outerHeight()&&l>s.offset().left&&l<s.offset().left+s.outerWidth()||e("."+a.toggleClass).trigger(t.data.type)}},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},e.fn.rdparallax=function(){var e=this;return e.length&&new l(e[0]).init(),e},window.RDMobilemenu_autoinit=function(e){var t=jQuery(e);t.length&&new l(t[0]).init()}}(jQuery),jQuery(document).ready(function(){RDMobilemenu_autoinit("#icemegamenu")});
77} catch (e) {
78console.error('Error in file:/templates/theme3310/html/mod_icemegamenu/js/jquery.rd-navbar.js; Error:' + e.message);
79};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.