-
Notifications
You must be signed in to change notification settings - Fork 2
/
vpl-license.html
74 lines (66 loc) · 1.38 KB
/
vpl-license.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<link href="https://fonts.googleapis.com/css?family=Rubik:300,400,500" rel="stylesheet">
<head>
<title>About VPL 3</title>
<style>
body, html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
nav {
position: absolute;
top: 40px;
left: 0;
padding: 5px;
padding-left: 10px;
}
nav p {
padding: 0;
margin: 0;
font: 30px;
}
#container {
display: flex;
width: 100%;
height: 100%;
}
iframe {
flex-grow: 1;
width: 100%;
height: 100%;
border: none;
margin: 0;
padding: 0;
padding-left: 50px;
}
</style>
<script>
window.addEventListener("load", function () {
document.getElementById("license").src = document.location.search.slice(1);
}, false);
// forward keydown event to parent to handle close shortcut etc.
window.addEventListener("keydown", function (ev) {
window.parent.postMessage({
charCode: ev.charCode,
code: ev.code,
ctrlKey: ev.ctrlKey,
key: ev.key,
keyCode: ev.keyCode,
metaKey: ev.metaKey,
shiftKey: ev.shiftKey
}, window.origin === "null" ? "*" : window.origin);
}, false);
</script>
</head>
<body>
<nav>
<p><span onclick="window.history.back();">◄</span></p>
</nav>
<div id="container">
<iframe id="license" frameBorder="0"></iframe>
</div>
</body>
</html>