-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (39 loc) · 1.02 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
45
46
47
<!DOCTYPE html>
<html>
<head>
<style>
#urlIframe {
width: 100%;
height: 100%;
border: none;
filter: invert(.92) saturate(0.5) hue-rotate(145deg) brightness(150%);
display:block
}
* {
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
height: 100%;
}
</style>
</head>
<body>
<iframe id="urlIframe"></iframe>
<script>
// Function to retrieve the value of a URL parameter
function getURLParameter(name) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(name);
}
// Get the value of the 'url' parameter
const urlParameterValue = getURLParameter('url');
// Set the iframe source to the URL parameter value
const urlIframe = document.getElementById('urlIframe');
urlIframe.src = urlParameterValue;
</script>
</body>
</html>