-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (40 loc) · 1.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<html>
<head>
<title>
Hi
</title>
</head>
<body>
Hello
<br/>
<a id="continue_link" href="#">I agree to terms of service</a>
<script type="text/javascript">
var wifi4euTimerStart = Date.now();
var wifi4euNetworkIdentifier = 'NETWORK_IDENTIFIER';
var wifi4euLanguage = 'EN';
</script>
<script type="text/javascript" src="https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js"></script>
<script type="application/javascript">
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
function getUrlParam(parameter, defaultvalue){
var urlparameter = defaultvalue;
if(window.location.href.indexOf(parameter) > -1){
urlparameter = getUrlVars()[parameter];
}
return urlparameter;
}
document.getElementById("continue_link").addEventListener("click", function() {
var baseGrantUrl = getUrlParam("base_grant_url");
var continueUrl = getUrlParam("continue_url");
window.location = baseGrantUrl + "?continue_url=" + continueUrl;
return false;
});
</script>
</body>
</html>