-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtesting.html
More file actions
39 lines (33 loc) · 1.01 KB
/
Copy pathtesting.html
File metadata and controls
39 lines (33 loc) · 1.01 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Google</title>
</head>
<body>
<script>
window.onload = function() {
openGame();
window.location.href = "https://classroom.google.com";
};
function openGame() {
var win = window.open();
var url = "index.html";
var iframe = win.document.createElement('iframe');
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.border = "none";
iframe.style.margin = "0";
iframe.style.padding = "0";
iframe.src = url;
iframe.allowFullscreen = true;
iframe.allow = "fullscreen";
win.document.body.style.margin = "0";
win.document.body.style.padding = "0";
win.document.body.style.overflow = "hidden";
win.document.body.appendChild(iframe);
}
</script>
</body>
</html>