Add Fullscreening

This commit is contained in:
bingus_violet 2024-07-26 03:00:56 -05:00
parent 14a5a6607d
commit 1fadd74918
3 changed files with 40 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -8,6 +8,7 @@
<script src="../jquery.js"></script> <script src="../jquery.js"></script>
<script src="../main.js"></script> <script src="../main.js"></script>
<script src="./fullscreen.js"></script>
<script src="./main.js"></script> <script src="./main.js"></script>
<meta charset="UTF-8"> <meta charset="UTF-8">

View file

@ -20,3 +20,13 @@ function loop() {
window.onload = () => { window.onload = () => {
loop() loop()
} }
$(document).on('keypress',function(e) {
if(e.which == 102) {
if ($.fullscreen.isFullScreen()) {
$.fullscreen.exit()
} else {
$("body").fullscreen()
}
}
});