forked from finscn/weapp-adapter
-
Notifications
You must be signed in to change notification settings - Fork 19
/
game.html
37 lines (32 loc) · 944 Bytes
/
game.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
<!doctype html>
<html>
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<style>
body {
padding: 0;
margin: 0;
border: 0;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<script>
var width = 360;
var height = 640;
var canvas = document.getElementById('canvas');
canvas.width = width;
canvas.height = height;
window.onload = function(){
window._onload();
}
</script>
<!-- include your js files ( without weapp-adapter & wx) -->
<!-- <script src="./js/my-game.js"></script> -->
</body>
</html>