PageSourceSearch

https://fundacionrenta4.org/etc.clientlibs/rentapublicweb/componen…-6d7413bbb8bcd7cab1cdb9c211c0f9bd-lc.min.js

js fundacionrenta4.org collected 2026-10-02 22:52:03 UTC 3,701 bytes, 8 lines download raw bytes

1$(document).ready(function(){$(".navigation-header").hasClass("has-secondary-nav")&&$("body").addClass("has-secondary-nav");$(".lenguage").each(function(){$(this).attr("data-idioma")==document.documentElement.lang&&$(this).addClass("active")});$(".header .menu-options .menu-option \x3e .nivel1").click(function(a){1024<=$(window).width()||!$(this).parents(".menu-option").find(".nav-section a").length||(document.documentElement.classList.contains("user-is-logged"),document.documentElement.classList.contains("user-is-logged")&&
2!$(this).parents(".menu-option").find(".logged-nav-item").length)||(a.preventDefault(),$(this).siblings(".submenu-block").length&&($(this).parents(".menu-option").addClass("is-active"),$(".header .menu-options").addClass("is-active")))});$(".header .menu-options").find(".menu-option .submenu-block").children(".nivel1").click(function(a){a.stopPropagation();1024>$(window).width()&&restoreDrawerInitialState()});$(".icon-hamburguer-menu").click(function(a){a.stopPropagation();$("body").addClass("drawer-is-open");
3!document.documentElement.classList.contains("user-is-logged")&&$(".submenu-block.is-active").length&&($(".header .menu-options").addClass("is-active"),$(".submenu-block.is-active").parents(".menu-option").addClass("is-active"))});$(window).resize(function(){$("body").hasClass("drawer-is-open")&&closeDrawer()});$(".block-sites-nav span").click(function(a){a.stopPropagation();$(".block-sites-nav").toggleClass("is-active")});document.addEventListener("userIsFetched",function(a){window._r4.user?showLoggedUser(window._r4.user):
4showUnloggedHeader()},!1);window._r4.isLoadingUser||(window._r4.user?showLoggedUser(window._r4.user):showUnloggedHeader())});
5function showLoggedUser(a){a=a.nombre;$(".block-right.loadingUser").addClass("d-none");$(".block-right.loggedUser").removeClass("d-none");$(".drawer-header.loggedUser").removeClass("d-none");$("header .favorites").html('\x3ca href\x3d"/portal?TX\x3dgoto\x26FWD\x3dFAVORITOS\x26PAG\x3d0"\x3e\x3cimg src\x3d"https://www.r4.com/recursos/images/mw-images/star.svg" id\x3d"fav-star" alt\x3d"Mis productos favoritos"\x3e\x3c/a\x3e');$("header .userName").html('\x3ca href\x3d"/portal?TX\x3dgoto\x26FWD\x3dWEB\x26PAGE\x3dPERFIL"\x3e\x3cspan class\x3d"icon-user-circle"\x3e\x3c/span\x3eHola, '+
6a+"\x3c/a\x3e");$(".drawer-header .userName").html('\x3cspan class\x3d"icon-user-circle"\x3e\x3c/span\x3e\x3cspan class\x3d"usernameText"\x3e'+a+"\x3c/span\x3e");$("a.logo-header").attr("href","/portal?TX\x3dgoto\x26FWD\x3dMAIN10");$("body").append($("\x3cscript /\x3e",{src:document.domain.includes("test")?"https://test.renta4.es/recursos/js/timeout_cookie_webl_src.js":"https://www.r4.com/recursos/js/timeout_cookie_webl.js"}));$.each($(".menu-options").children(),function(){var b=$(this).children("a").first();
7$(this).children("span").first();b.length&&b.data("user-url")&&b.attr("href",b.data("user-url"))});a=$(".btn-contratacion");a.length&&a.data("href-logged")&&a.attr("href",a.data("href-logged"))}function showUnloggedHeader(){$(".block-right.loadingUser").addClass("d-none");$(".block-right.unloggedUser").removeClass("d-none");$(".drawer-header.unloggedUser").removeClass("d-none")}$(window).click(function(a){0===$(a.target).closest(".navigation-header nav").length&&closeDrawer()});
8function restoreDrawerInitialState(){$(".header .menu-options").removeClass("is-active");$(".header .menu-option").removeClass("is-active");$(".block-sites-nav").removeClass("is-active");$(".header .block-left span .icon").removeClass("up");$(".header .block-left ul").slideUp()}function closeDrawer(){$("body").hasClass("drawer-is-open")&&($("body").removeClass("drawer-is-open"),restoreDrawerInitialState())};

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.