PageSourceSearch

https://www.iol.pt/js/main.js

js iol.pt collected 2026-09-24 08:27:04 UTC 768 bytes, 28 lines download raw bytes

1/*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
6
7// JavaScript Document
8function openMenu() {
9    var menuLayer = document.getElementById('menu-layer');
10    if (menuLayer.style.display == 'none') {
11        menuLayer.style.display = 'block';
12    }else{
13        menuLayer.style.display = 'none';
14    }
15}
16
17function redirectToUrl(url) {
18    if (url.indexOf("http") != -1) {
19        window.location.href = url;
20    } else {
21        window.location.href = window.location.origin + url;
22    }
23}
24function newPage(page) {
25    var url = new URL(window.location.href);
26    url.searchParams.set('pagina', page);
27    redirectToUrl(url.href);
28}

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.