mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
36 lines
1,022 B
HTML
36 lines
1,022 B
HTML
<!doctype html>
|
|
<html lang="en-us">
|
|
|
|
<head>
|
|
<meta charset=utf-8>
|
|
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>v 2048</title>
|
|
<style>
|
|
body {
|
|
margin-left: 1rem;
|
|
background-color: rgb(250, 248, 239);
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>V 2048 demo</h1>
|
|
<h3>
|
|
Authors: <a href="http://github.com/spaceface777">@spaceface777</a>, <a href="http://github.com/spytheman">@spytheman</a> and other V contributors.
|
|
<br>
|
|
Original game by <a href="http://github.com/gabrielecirulli">@gabrielecirulli</a>.
|
|
</h3>
|
|
<h3>Click on the canvas to go into fullscreen mode</h3>
|
|
<canvas id=canvas oncontextmenu=event.preventDefault() tabindex=-1 width="544" height="560"></canvas>
|
|
<script src=index.js></script>
|
|
<script>
|
|
const m = Module()
|
|
const e = document.getElementById("canvas");
|
|
e.onclick = e.ontouchstart = () => {
|
|
e.requestFullscreen()
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|