PageSourceSearch

https://lloretdemar.org/wp-content/cache/min/1/wp-content/themes/l…/assets/js/ddsmoothmenu.js?ver=1789553943

js lloretdemar.org collected 2026-09-24 09:59:51 UTC 5,278 bytes, 47 lines download raw bytes

1var ddsmoothmenu={arrowimages:{down:['downarrowclass',23],right:['rightarrowclass',]},transition:{overtime:300,outtime:300},shadow:{enable:!1,offsetx:5,offsety:5},showhidedelay:{showdelay:100,hidedelay:200},detectwebkit:navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1,detectie6:document.all&&!window.XMLHttpRequest,css3support:window.msPerformance||(!document.all&&document.querySelector),getajaxmenu:function($,setting){var $menucontainer=$('#'+setting.contentsource[0])
2$menucontainer.html("Loading Menu...")
3$.ajax({url:setting.contentsource[1],async:!0,error:function(ajaxrequest){$menucontainer.html('Error fetching content. Server Response: '+ajaxrequest.responseText)},success:function(content){$menucontainer.html(content)
4ddsmoothmenu.buildmenu($,setting)}})},buildmenu:function($,setting){var smoothmenu=ddsmoothmenu
5var $mainmenu=$("#"+setting.mainmenuid+">ul")
6$mainmenu.parent().get(0).className=setting.classname||"ddsmoothmenu"
7var $headers=$mainmenu.find("ul").parent()
8$headers.hover(function(e){$(this).children('a:eq(0)').addClass('selected')},function(e){$(this).children('a:eq(0)').removeClass('selected')})
9$headers.each(function(i){var $curobj=$(this).css({zIndex:100-i})
10var $subul=$(this).find('ul:eq(0)').css({display:'block'})
11$subul.data('timers',{})
12this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:$subul.outerWidth(),subulh:$subul.outerHeight()}
13this.istopheader=$curobj.parents("ul").length==1?!0:!1
14$subul.css({top:this.istopheader&&setting.orientation!='v'?this._dimensions.h+"px":0})
15$curobj.children("a:eq(0)").css(this.istopheader?{paddingRight:smoothmenu.arrowimages.down[2]}:{}).append()
16if(smoothmenu.shadow.enable&&!smoothmenu.css3support){this._shadowoffset={x:(this.istopheader?$subul.offset().left+smoothmenu.shadow.offsetx:this._dimensions.w),y:(this.istopheader?$subul.offset().top+smoothmenu.shadow.offsety:$curobj.position().top)}
17if(this.istopheader)
18$parentshadow=$(document.body)
19else{var $parentLi=$curobj.parents("li:eq(0)")
20$parentshadow=$parentLi.get(0).$shadow}
21this.$shadow=$('<div class="ddshadow'+(this.istopheader?' toplevelshadow':'')+'"></div>').prependTo($parentshadow).css({left:this._shadowoffset.x+'px',top:this._shadowoffset.y+'px'})}
22$curobj.hover(function(e){var $targetul=$subul
23var header=$curobj.get(0)
24clearTimeout($targetul.data('timers').hidetimer)
25$targetul.data('timers').showtimer=setTimeout(function(){header._offsets={left:$curobj.offset().left,top:$curobj.offset().top}
26var menuleft=header.istopheader&&setting.orientation!='v'?0:header._dimensions.w
27menuleft=(header._offsets.left+menuleft+header._dimensions.subulw>$(window).width())?(header.istopheader&&setting.orientation!='v'?-header._dimensions.subulw+header._dimensions.w:-header._dimensions.w):menuleft
28if($targetul.queue().length<=1){$targetul.css({left:menuleft+"px",width:header._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'},ddsmoothmenu.transition.overtime)
29if(smoothmenu.shadow.enable&&!smoothmenu.css3support){var shadowleft=header.istopheader?$targetul.offset().left+ddsmoothmenu.shadow.offsetx:menuleft
30var shadowtop=header.istopheader?$targetul.offset().top+smoothmenu.shadow.offsety:header._shadowoffset.y
31if(!header.istopheader&&ddsmoothmenu.detectwebkit){header.$shadow.css({opacity:1})}
32header.$shadow.css({overflow:'',width:header._dimensions.subulw+'px',left:shadowleft+'px',top:shadowtop+'px'}).animate({height:header._dimensions.subulh+'px'},ddsmoothmenu.transition.overtime)}}},ddsmoothmenu.showhidedelay.showdelay)},function(e){var $targetul=$subul
33var header=$curobj.get(0)
34clearTimeout($targetul.data('timers').showtimer)
35$targetul.data('timers').hidetimer=setTimeout(function(){$targetul.animate({height:'hide',opacity:'hide'},ddsmoothmenu.transition.outtime)
36if(smoothmenu.shadow.enable&&!smoothmenu.css3support){if(ddsmoothmenu.detectwebkit){header.$shadow.children('div:eq(0)').css({opacity:0})}
37header.$shadow.css({overflow:'hidden'}).animate({height:0},ddsmoothmenu.transition.outtime)}},ddsmoothmenu.showhidedelay.hidedelay)})})
38if(smoothmenu.shadow.enable&&smoothmenu.css3support){var $toplevelul=$('#'+setting.mainmenuid+' ul li ul')
39var css3shadow=parseInt(smoothmenu.shadow.offsetx)+"px "+parseInt(smoothmenu.shadow.offsety)+"px 5px #aaa"
40var shadowprop=["boxShadow","MozBoxShadow","WebkitBoxShadow","MsBoxShadow"]
41for(var i=0;
41i<shadowprop.length;i++){$toplevelul.css(shadowprop[i],css3shadow)}}
42$mainmenu.find("ul").css({display:'none',visibility:'visible'})},init:function(setting){if(typeof setting.customtheme=="object"&&setting.customtheme.length==2){var mainmenuid='#'+setting.mainmenuid
43var mainselector=(setting.orientation=="v")?mainmenuid:mainmenuid+', '+mainmenuid
44document.write('<style type="text/css">\n'+mainselector+' ul li a {background:'+setting.customtheme[0]+';}\n'+mainmenuid+' ul li a:hover {background:'+setting.customtheme[1]+';}\n'+'</style>')}
45this.shadow.enable=(document.all&&!window.XMLHttpRequest)?!1:this.shadow.enable
46jQuery(document).ready(function($){if(typeof setting.contentsource=="object"){ddsmoothmenu.getajaxmenu($,setting)}else{ddsmoothmenu.buildmenu($,setting)}})}}
47if(document.getElementById("smoothmenu")){ddsmoothmenu.init({mainmenuid:"smoothmenu",orientation:'h',classname:'ddsmoothmenu',contentsource:"markup"})}

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.