-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSuccess.html
25 lines (25 loc) · 899 Bytes
/
Success.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
<iframe id="bloxorzIframe" loading='eager' src='https://www.coolmathgames.com/0-bloxorz' hidden></iframe>
<button id="bloxorzButton">Bloxorz</button>
<script>
function bloxorsButton() {
alert("bloxorsclicked");
var bloxorziframe = document.getElementById("bloxorsIframe");
bloxorziframe.removeAttribute("hidden");
}
document.getElementById('bloxorzButton').onclick = function() {
alert("button was clicked");
var bloxorziframe = document.getElementById("bloxorzIframe");
bloxorziframe.removeAttribute("hidden");
bloxorzFullscreen();
}
var elem = document.getElementById("bloxorzIframe");
function bloxorzFullscreen() {
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.webkitRequestFullscreen) { /* Safari */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE11 */
elem.msRequestFullscreen();
}
}
</script>