PageSourceSearch

https://www.unmsm.edu.pe/js/formacion-academica/admision-navs.js

js unmsm.edu.pe collected 2026-10-01 10:20:58 UTC 878 bytes, 31 lines download raw bytes

1$(document).ready(() => {
2    let url = location.href.replace(/\/$/, "");
3   
4    if (location.hash) {
5      const hash = url.split("#");
6      $('#nav-admision-tab a[href="#'+hash[1]+'"]').tab("show");
7      url = location.href.replace(/\/#/, "#");
8      history.replaceState(null, null, url);
9      setTimeout(() => {
10        $(window).scrollTop(0);
11      }, 400);
12    } 
13     
14    $('a[data-toggle="tab"]').on("click", function() {
15      let newUrl;
16      const hash = $(this).attr("href");
17    //   if(hash == "#home") {
18    //     newUrl = url.split("#")[0];
19    //   } else {
20        newUrl = url.split("#")[0] + hash;
21    //   }
22      newUrl += "/";
23      history.replaceState(null, null, newUrl);
24    });
25
26    $('a[data-tab]').on("click", function() {
27        const hash = $(this).data("tab");
28        $('#nav-admision-tab a[href="'+hash+'"]').tab('show')
29    });
30
31  });

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.