-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
58 lines (43 loc) · 1.19 KB
/
main.html
File metadata and controls
58 lines (43 loc) · 1.19 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Copy/past image</title>
<style>
</style>
</head>
<body>
<div class="main">
<h1>Form to upload image</h1>
<p>What is it for?</p>
<p>It allows you to paste image (screenshot) on your web-site. First press _Ctrl+Shift+PrntScrn_, than paste by pressing
<b>Ctrl+V</b>!
</p>
<form action="" method="post">
<textarea name="msg" class="arena data" id="myTextarea" rows="20" cols="80"></textarea>
</form>
<div class="">
<canvas id="canvas_id"></canvas>
</div>
</div>
<!-- Previous non oop implementation -->
<!--
<script src="pasteimage.js"></script>
<script>
var pasteImage = new PasteImage(
document.getElementById("canvas_id"),
document.getElementById("myTextarea")
);
pasteImage.init();
</script>
-->
<script type="application/javascript" src="pasteobjects.js"></script>
<script>
new AGTextareaUploader(
document.getElementById('myTextarea')
).run();
</script>
</body>
</html>