PageSourceSearch

https://iscte-iul.pt/assets/javascripts/main.js

js iscte-iul.pt collected 2026-09-24 08:29:18 UTC 1,752 bytes, 61 lines download raw bytes

1
2/*
3    it's possible to pass extra arguments that are to be removed from the querystring
4*/
5function getQueryString(page){
6	var index = window.location.href.indexOf('?');
7	var queryString = "page=" + page;
8	if(index > -1){
9		queryString = window.location.href.slice(index + 1);
10		queryString = queryString.replace(/(page=)[^\&]+/, '$1' + page);//replace query string page value with given page number
11        for(var i = 1; i < arguments.length; i++){
12    		console.log(arguments[i])
13            if(arguments[i] !== "undefined"){
14                const re = new RegExp("(selectedExecutionYear=)[^\&]+");
15                queryString = queryString.replace(re, "");//remove argument and previous value with nothing
16            }
17        }
18	}
19
20	return queryString;
21}
22
23$(document).ready(function(){
24    $(document).on("change", "select", function() {
25        $(this).attr("data-chosen", $(this).val());
26    });
27    $('select').trigger('change');
28  	$('[data-toggle="popover"]').popover();
29  	$('[data-toggle="tooltip"]').tooltip();
30
31	// homepage teaser typography scroll  
32	// let homepage = $('.p-homepage');
33
34	// if (homepage.length > 0) {
35	// 	let panels = gsap.utils.toArray(".o-teaser-typography");
36
37	// 	if(panels){
38	// 		panels.forEach((panel, i) => {
39	// 			ScrollTrigger.create({
40	// 			trigger: panel,
41	// 			start: "top top", // when the top of the trigger hits the top of the viewport
42	// 			pin: panel, 
43	// 			pinSpacing: false
44	// 			});
45	// 		});
46			
47	// 		gsap.set(panels, {zIndex: (i, target, targets) => targets.length - i});
48	// 	}
49	// }
50});
51
52function setPageAndSubmit(page_number){
53	var form = $('.form-paginate-results');
54	if(form){
55		var page = $('input[name="page"]');
56		if(page){
57			page.val(page_number);
58			form.submit();
59		}
60	}
61}

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.