-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
71 lines (66 loc) · 2.53 KB
/
index.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
<!-- This is an example file -->
<html>
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<link rel="shortcut icon" type="image/x-icon" href="ninjapad/favicon.ico">
<title>My Cool NES Game - Powered by NinjaPad</title>
<!-- jQuery is required for NinjaPad to work -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Path or URL of the emulator you're going to use -->
<!-- <script src="ninjapad/emu/jsnes/jsnes.min.js"></script> -->
<script src="ninjapad/emu/binjnes/binjnes.js"></script>
<!-- NinjaPad Interface -->
<script src="ninjapad/ninjapad.js"></script>
<style>
body {
margin: 0;
padding: 0;
background-color: #222;
}
#myCoolDiv {
width: 100%;
height: 100%;
background-color: #222;
justify-content: center;
align-items: center;
display: flex;
}
/* REQUIRED BY NINJAPAD */
#emu-screen {
width: 256px;
max-width: 768px;
height: 240px;
max-height: 720px;
position: relative;
margin: auto;
object-fit: contain;
overflow: clip;
}
#emu-canvas {
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: -o-crisp-edges;
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
image-rendering: pixelated;
width: 100%;
height: 100%;
}
/* End of REQUIRED BY NINJAPAD */
</style>
</head>
<body>
<div id="myCoolDiv">
<!-- REQUIRED BY NINJAPAD -->
<!-- This is the emulator screen (as in the piece of glass that covers the display) -->
<div id="emu-screen">
<!-- This is the emulator display (where the pixels are drawn) -->
<canvas id="emu-canvas" width="256" height="240"/>
</div>
<!-- End of REQUIRED BY NINJAPAD -->
</div>
</body>
</html>