PageSourceSearch

https://www.donegalculture.ie/scripts/vendor/myname.js

js donegalculture.ie collected 2026-10-09 04:58:46 UTC 1,350 bytes, 43 lines download raw bytes

1// Parse paramaters
2var base_grant_url = decodeURIComponent(GetURLParameter("base_grant_url"));
3var user_continue_url = decodeURIComponent(GetURLParameter("user_continue_url"));
4var node_mac = GetURLParameter("node_mac");
5var client_ip = GetURLParameter("client_ip");
6var client_mac = GetURLParameter("client_mac");
7
8// ******************
9// Login to Meraki by redirecting client to the base_grant_url 
10// 
11// The logingUrl will add a continue_url parameter for a final client
12// redirect to their intended site. 
13// (you could override this url to send the user to a home page)
14// ****************** 
15
16// Button handler function to login
17function login(){    
18    var loginUrl = base_grant_url;
19    if(user_continue_url !== "undefined"){
20        loginUrl += "?continue_url="+user_continue_url;
21    }
22    console.log("Logging in... ",loginUrl);
23    // redirect browser to meraki auth URL.
24    window.location.href = loginUrl;
25}
26
27// Helper function to parse URL
28function GetURLParameter(sParam)
29{
30    var sPageURL = window.location.search.substring(1);
31    var sURLVariables = sPageURL.split('&');
32    for (var i = 0; i < sURLVariables.length; i++) 
33    {
34        var sParameterName = sURLVariables[i].split('=');
35        if (sParameterName[0] == sParam) 
36        {
37            return sParameterName[1];
38        }
39    }
40}
41   
42
43                        

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.