-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRetroWebdir.html
34 lines (28 loc) · 1.33 KB
/
RetroWebdir.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
<!-- NOTE: Adding comments to any code you create/edit would make me very happy-->
<!DOCTYPE html>
<html>
<!--epic CSS customization-->
<head>
<title>Dude's Zone - RetroArch (Web)</title>
<link rel="shortcut icon" type="image/png" href="faviV2.png"/>
<link rel="stylesheet" href="stylesheets.css">
</head>
<!-- oh my goodness gracious thank you so much @PlainSys for giving me the javascript code-->
<body>
<center><iframe id="embeddedGame" src="https://dudenoob34.github.io/RetroArch/" width="100%" height="500" style="border:1px double #39FF14;"></iframe></center>
<br>
<center><button onclick="goFullscreen('embeddedGame'); return true">Fullscreen</button></center>
<p>amazing pro gamer tip: Quick save with "2" on your keyboard and load states with "1"</p>
<p>pressing "3" changes where your save is stored/loaded (dont be like me and accidentally overwrite your saves when trying to load them instead)</p>
<script>
function goFullscreen(id) {
var element = document.getElementById(id);
if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
</script>
</body>
</html>