PageSourceSearch

https://colfonochile.cl/wp-content/plugins/jobboardwp/assets/frontend/js/dropdown.min.js?ver=1.3.1

js colfonochile.cl collected 2026-10-07 16:42:03 UTC 2,858 bytes, 1 lines download raw bytes

1function jb_init_dropdown(){jQuery(".jb-dropdown").JBDropdownMenu()}(t=>{function n(e){var i={get:function(){return i},show:function(){return i.hideAll(),i.$menu=i.$element.find(".jb-dropdown"),i.$menu.length||(i.$menu=t('div.jb-dropdown[data-element="'+i.data.element+'"]').first()),i.$dropdown=i.$menu.clone(),i.$dropdown.on("click","li a",i.itemHandler),t(window).on("resize",i.updatePosition),t(document.body).append(i.$dropdown),i.$element.trigger("jb_dropdown_render",{dropdown_layout:i.$dropdown,trigger:i.data.trigger,element:i.data.elemen,obj:i.$element}),i.$dropdown.css(i.calculatePosition()).show(),i.$element.addClass("jb-dropdown-shown").data("jb-dropdown-show",!0),i},hide:function(){return i.$dropdown&&i.$dropdown.is(":visible")&&(t(window).off("resize",i.updatePosition),i.$dropdown.remove(),i.$element.removeClass("jb-dropdown-shown").data("jb-dropdown-show",!1)),i},hideAll:function(){return i.hide(),t("body > div.jb-dropdown").remove(),t(".jb-dropdown-shown").removeClass("jb-dropdown-shown").data("jb-dropdown-show",!1),i},calculatePosition:function(){var e=i.$element.offset(),t=i.$element.get(0).getBoundingClientRect(),o=i.$dropdown.innerHeight()||150,n=i.$menu.data("width")||150,d="",r={position:"absolute",width:n+"px"};switch(window.innerHeight-t.bottom>o?(r.top=e.top+t.height+"px",d+="bottom"):(d+="top",r.top=e.top-o+"px"),e.left>n||e.left>window.innerWidth/2?(r.left=e.left+t.width-n+"px",d+="-left"):(r.left=e.left+"px",d+="-right"),d){case"bottom-right":r.borderRadius="0px 5px 5px 5px";break;case"bottom-left":r.borderRadius="5px 0px 5px 5px";break;case"top-right":r.borderRadius="5px 5px 5px 0px";break;case"top-left":r.borderRadius="5px 5px 0px 5px"}return r},updatePosition:function(){return i.$dropdown&&i.$dropdown.is(":visible")&&i.$dropdown.css(i.calculatePosition()),i},itemHandler:function(e){e.stopPropagation();e=t(e.currentTarget).attr("class");i.$menu.find('li a[class="'+e+'"]').trigger("click"),i.hide()},triggerHandler:function(e){e.stopPropagation(),i.$element=t(e.currentTarget),i.$element.data("jb-dropdown-show")?i.hide():i.show()}};return i.$menu=t(e),i.data=i.$menu.data(),i.data.width=i.$menu.data("width"),i.$element=i.$menu.closest(i.data.element),i.$element.length||(i.$element=t(i.data.element).first()),i.$dropdown=t(document.body).children('div[data-element="'+i.data.element+'"]'),void 0===i.data.initted&&(i.$menu.data("initted",!0),t(document.body).on(i.data.trigger,i.data.element,i.triggerHandler)),void 0===n.globalHandlersInitted&&(n.globalHandlersInitted=!0,t(document.body).on("click",function(e){t(e.target).closest(".jb-dropdown").length||i.hideAll()})),i}t.fn.JBDropdownMenu=function(o){return"string"==typeof o&&o?this.map(function(e,t){t=n(t);return"function"==typeof t[o]?t[o]():t[o]}).toArray():this.each(function(e,t){n(t)})}})(jQuery),jQuery(function(){jb_init_dropdown()});

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.