1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10/** 11 * Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com 12 * Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/ 13 * Menu created: Nov 12, 2008 14 * Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) contain sub menus: http://www.dynamicdrive.com/forums/showthread.php?t=39177&highlight=smooth 15 * Feb 11th, 09" (v1.02): The currently active main menu item (LI A) now gets a CSS class of ".selected", including sub menu items. 16 * May 1st, 09" (v1.3): 17 * 1) Now supports vertical (side bar) menu mode- set "orientation" to 'v' 18 * 2) In IE6, shadows are now always disabled 19 * July 27th, 09" (v1.31): Fixed bug so shadows can be disabled if desired. 20 * Feb 2nd, 10" (v1.4): Adds ability to specify delay before sub menus appear and disappear, respectively. See showhidedelay variable below 21 */ 22 23var ddsmoothmenu = { 24 25 //Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs): 26 arrowimages: { down: ['downarrowclass', '/wp-content/themes/comicpress/images/down.gif', 15], right: ['rightarrowclass', '/wp-content/themes/comicpress/images/right.gif'] }, 27 transition: { overtime: 200, outtime: 200 }, //duration of slide in/ out animation, in milliseconds 28 shadow: { enable: false, offsetx: 2, offsety: 2 }, //enable shadow? 29 showhidedelay: { showdelay: 100, hidedelay: 200 }, //set delay in milliseconds before sub menus appear and disappear, respectively 30 31 ///////Stop configuring beyond here/////////////////////////// 32 33 detectwebkit: navigator.userAgent.toLowerCase().indexOf("applewebkit") !== -1, //detect WebKit browsers (Safari, Chrome etc) 34 detectie6: document.all && !window.XMLHttpRequest, 35 36 getajaxmenu: function ($, setting) { //function to fetch external page containing the panel DIVs 37 var $menucontainer = $('#' + setting.contentsource[0]); //reference empty div on page that will hold menu 38 $menucontainer.html("Loading Menu..."); 39 $.ajax({ 40 url: setting.contentsource[1], //path to external menu file 41 async: true, 42 error: function (ajaxrequest) { 43 $menucontainer.html('Error fetching content. Server Response: ' + ajaxrequest.responseText); 44 }, 45 success: function (content) { 46 $menucontainer.html(content); 47 ddsmoothmenu.buildmenu($, setting); 48 } 49 }); 50 }, 51 52 buildmenu: function ($, setting) { 53 var smoothmenu = ddsmoothmenu; 54 var $mainmenu = $("#" + setting.mainmenuid + " ul:eq(0)"); //reference main menu UL 55 $mainmenu.parent().get(0).className = setting.classname || "ddsmoothmenu"; 56 var $headers = $mainmenu.find("ul").parent(); 57 $headers.hover( 58 function (e) { 59 $(this).children('a:eq(0)').addClass('selected'); 60 }, 61 function (e) { 62 $(this).children('a:eq(0)').removeClass('selected'); 63 } 64 ); 65 $headers.each(function (i) { //loop through each LI header 66 var $curobj = $(this).css({ zIndex: 100 - i }); //reference current LI header 67 var $subul = $(this).find('ul:eq(0)').css({ display: 'block' }); 68 $subul.data('timers', {}); 69 this._dimensions = { w: this.offsetWidth, h: this.offsetHeight, subulw: $subul.outerWidth(), subulh: $subul.outerHeight() }; 70 this.istopheader = $curobj.parents("ul").length === 1 ? true : false; //is top level header? 71 $subul.css({ top: this.istopheader && setting.orientation !== 'v' ? this._dimensions.h + "px" : 0 }); 72 $curobj.children("a:eq(0)").css(this.istopheader ? { paddingRight: smoothmenu.arrowimages.down[2]} : {}).append( //add arrow images 73 '<span class="menubar-arrow ' + (this.istopheader && setting.orientation !== 'v' ? 'menubar-down' : 'menubar-right') + '-arrow">' + (this.istopheader && setting.orientation !== 'v' ? '↓' : '→') + '</span>' 74 ); 75 if (smoothmenu.shadow.enable) { 76 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)}; //store this shadow's offsets 77 if (this.istopheader) $parentshadow = $(document.body); 78 else { 79 var $parentLi = $curobj.parents("li:eq(0)"); 80 $parentshadow = $parentLi.get(0).$shadow; 81 } 82 this.$shadow = $('<div class="ddshadow' + (this.istopheader ? ' toplevelshadow' : '') + '"></div>').prependTo($parentshadow).css({ left: this._shadowoffset.x + 'px', top: this._shadowoffset.y + 'px' }); //insert shadow DIV and set it to parent node for the next shadow div 83 } 84 $curobj.hover( 85 function (e) { 86 var $targetul = $subul; //reference UL to reveal 87 var header = $curobj.get(0); //reference header LI as DOM object 88 clearTimeout($targetul.data('timers').hidetimer); 89 $targetul.data('timers').showtimer = setTimeout(function() { 90 header._offsets = { left: $curobj.offset().left, top: $curobj.offset().top }; 91 var menuleft = header.istopheader && setting.orientation != 'v' ? 0 : header._dimensions.w; 92 menuleft = (header._offsets.left + menuleft + header._dimensions.subulw > $(window).width()) ? (header.istopheader && setting.orientation != 'v' ? -header._dimensions.subulw + header._dimensions.w : -header._dimensions.w) : menuleft; //calculate this sub menu's offsets from its parent 93 if ($targetul.queue().length <= 1) { //if 1 or less queued animations 94 $targetul.css({ left: menuleft + "px", width: header._dimensions.subulw + 'px' }).animate({ height: 'show', opacity: 'show' }
94, ddsmoothmenu.transition.overtime); 95 if (smoothmenu.shadow.enable) { 96 var shadowleft = header.istopheader ? $targetul.offset().left + ddsmoothmenu.shadow.offsetx : menuleft; 97 var shadowtop = header.istopheader ? $targetul.offset().top + smoothmenu.shadow.offsety : header._shadowoffset.y; 98 if (!header.istopheader && ddsmoothmenu.detectwebkit) { //in WebKit browsers, restore shadow's opacity to full 99 header.$shadow.css({ opacity: 1 }); 100 } 101 header.$shadow.css({ overflow: '', width: header._dimensions.subulw + 'px', left: shadowleft + 'px', top: shadowtop + 'px' }).animate({ height: header._dimensions.subulh + 'px' }, ddsmoothmenu.transition.overtime); 102 } 103 } 104 }, ddsmoothmenu.showhidedelay.showdelay); 105 }, 106 function (e) { 107 var $targetul = $subul; 108 var header = $curobj.get(0); 109 clearTimeout($targetul.data('timers').showtimer); 110 $targetul.data('timers').hidetimer = setTimeout(function() { 111 $targetul.animate({ height: 'hide', opacity: 'hide' }, ddsmoothmenu.transition.outtime); 112 if (smoothmenu.shadow.enable) { 113 if (ddsmoothmenu.detectwebkit) { //in WebKit browsers, set first child shadow's opacity to 0, as "overflow:hidden" doesn't work in them 114 header.$shadow.children('div:eq(0)').css({ opacity: 0 }); 115 } 116 header.$shadow.css({ overflow: 'hidden' }).animate({ height: 0 }, ddsmoothmenu.transition.outtime); 117 } 118 }, ddsmoothmenu.showhidedelay.hidedelay); 119 } 120 ); //end hover 121 }); //end $headers.each() 122 $mainmenu.find("ul").css({ display: 'none', visibility: 'visible' }); 123 }, 124 125 init: function (setting) { 126 // if (typeof setting.customtheme=="object" && setting.customtheme.length==2){ //override default menu colors (default/hover) with custom set? 127 // var mainmenuid='#'+setting.mainmenuid 128 // var mainselector=(setting.orientation=="v")? mainmenuid : mainmenuid+', '+mainmenuid
129 // document.write('<style type="text/css">\n' 130 // +mainselector+' ul li a {background:'+setting.customtheme[0]+';}\n' 131 // +mainmenuid+' ul li a:hover {background:'+setting.customtheme[1]+';}\n' 132 // +'</style>') 133 // } 134 this.shadow.enable = (document.all && !window.XMLHttpRequest) ? false : this.shadow.enable; //in IE6, always disable shadow 135 jQuery(document).ready(function($) { //ajax menu? 136 if (typeof setting.contentsource == "object") { //if external ajax menu 137 ddsmoothmenu.getajaxmenu($, setting); 138 } 139 else { //else if markup menu 140 ddsmoothmenu.buildmenu($, setting); 141 } 142 }); 143 } 144 145};//end ddsmoothmenu variable 146 147 148}
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.