PageSourceSearch

https://www.lalfas.es/wp-content/themes/Divi/js/theme-scripts-library-side-nav.js?ver=5.13.1

js lalfas.es collected 2026-10-02 06:46:38 UTC 3,744 bytes, 2 lines download raw bytes

1/*! For license information please see theme-scripts-library-side-nav.js.LICENSE.txt */
2!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=97)}({97:function(e,t){!function(e){const t="object"==typeof window.ET_Builder;window.et_calculating_scroll_position=!1,window.et_side_nav_links_initialized=!1,document.addEventListener("DOMContentLoaded",(function(){var n=function(){const n=e(".et-l--post"),i=e(".et-l--body .et_pb_section:visible").not(".et-l--post .et_pb_section");let o;return o=t?n.find(".et-fb-post-content > .et_pb_section"):n.find(".et_builder_inner_content > .et_pb_section:visible"),0===i.length||o.length>1?o:i};window.et_pb_window_side_nav_scroll_init=function(){if(!0!==window.et_calculating_scroll_position&&!1!==window.et_side_nav_links_initialized){var t=n();window.et_calculating_scroll_position=!0;var i,o=e(".et-l--header").length||e(".et-l--body").length||!e("#main-header").length?0:-90,a=e("body").hasClass("et_fixed_nav")?20:o,_=e("#top-header").length>0?parseInt(e("#top-header").height()):0,l=e("#main-header").length>0?parseInt(e("#main-header").height()):0;e("#wpadminbar").length>0&&parseInt(e(window).width())>600&&(a+=parseInt(e("#wpadminbar").outerHeight())),i=window.et_is_vertical_nav?_+a+60:_+l+a;for(var s=parseInt(e(window).height()),d=parseInt(e(window).scrollTop()),r=s+d===parseInt(e(document).height()),c=e(".side_nav_item a").length-1,p=0;p<=c;p++){var u=t.eq(p),v=void 0===u.offset(),w=e(".side_nav_item a.active").parent().index(),f=null,b=!1===v?u.offset().top-i:0;v?f=0:r?f=c:d>=b&&(f=p),null!==f&&f!==w&&(e(".side_nav_item a").removeClass("active"),e("a#side_nav_item_id_"+f).addClass("active"))}window.et_calculating_scroll_position=!1}},window.et_pb_side_nav_page_init=function(t){if(e(".et_pb_side_nav_page").length){var i=n(),o=i.length,a=parseInt((20*o+40)/2);window.et_side_nav_links_initialized=!1,window.et_calculating_scroll_position=!1,o>1&&e(".et_pb_side_nav_page").length&&(t?e(".et_pb_side_nav").empty():e("#main-content").append('<ul class="et_pb_side_nav"></ul>'),i.each((function(t,n){var i=0===t?"active":"";e(".et_pb_side_nav").append('<li class="side_nav_item"><a href="#" id="side_nav_item_id_'+t+'" class= "'+i+'">'+t+"</a></li>"),o-1===t&&(window.et_side_nav_links_initialized=!0)})),e("ul.et_pb_side_nav").css("marginTop","-"+a+"px"),e(".et_pb_side_nav").addClass("et-visible"),e(".et_pb_side_nav a").on("click",(function(){var t=parseInt(e(this).text()),n=i.eq(t),o="0"==e(this).text()&&!e(".et-l--body").length;return window.et_pb_smooth_scroll(n,o,800),!e("#main-header").hasClass("et-fixed-header")&&e("body").hasClass("et_fixed_nav")&&parseInt(e(window).width())>980&&setTimeout((function(){window.et_pb_smooth_scroll(n,o,200)}),500),!1})),e(window).on("scroll",et_pb_window_side_nav_scroll_init))}},e(window).on("resize",(function(){et_pb_side_nav_page_init(!0)})),et_pb_side_nav_page_init()}))}(jQuery)}});

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.