-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebshell.html
57 lines (52 loc) · 2.03 KB
/
webshell.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
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Pictomage</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<meta name="title" content="Pictomage">
<meta name="description" content="Top-down puzzle shooter game">
<meta name="keywords" content="videogame, game, html5, programming, C, raylib">
<meta name="viewport" content="width=device-width">
<meta property="og:title" content="Pictomage">
<meta property="og:image:type" content="image/png">
<meta property="og:image" content="https://github.com/blat-blatnik/Pictomage/blob/main/screenshots/title.png">
<meta property="og:url" content="https://blatnik.itch.io/pictomage">
<meta property="og:description" content="Top-down puzzle shooter game">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Pictomage">
<meta name="twitter:image" content="https://github.com/blat-blatnik/Pictomage/blob/main/screenshots/title.png">
<meta name="twitter:url" content="https://blatnik.itch.io/pictomage">
<meta name="twitter:description" content="Top-down puzzle shooter game">
<style>
body { margin: 0; border: 0; }
canvas.emscripten { margin: 0; border: 0; background-color: black; }
</style>
</head>
<body>
<canvas class=emscripten id=canvas oncontextmenu=event.preventDefault() tabindex=-1></canvas>
<p id="output" />
<script>
var Module = {
print: (function() {
var element = document.getElementById('output');
if (element) element.value = ''; // clear browser cache
return function(text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
console.log(text);
if (element) {
element.value += text + "\n";
element.scrollTop = element.scrollHeight; // focus on bottom
}
};
})(),
canvas: (function() {
var canvas = document.getElementById('canvas');
return canvas;
})()
};
</script>
{{{ SCRIPT }}}
</body>
</html>