-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (32 loc) · 1.17 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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Kompresja RLE</title>
<link rel="stylesheet" href="app.css" type="text/css" />
<script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/rgbcolor.js"></script>
<script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/canvg.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="raphael.js"></script>
<script src="svgfix-0.2.js"></script>
<script src="app.js">
</script>
</head>
<body>
<h1>Kompresja RLE</h1>
<div id="svg_drawing">
</div>
<canvas id="canvas" width="800px" height="600px" hidden="true" ></canvas>
<script>
var paper = Raphael("svg_drawing", 800, 600);
</script>
<div id="control"><form>
<input id="rx" type="text" onkeyup="init(paper)" /> Ciąg danych do kompresji<br />
<br />
<input id="draw" type="button" value="Kompresuj" onclick="rle(paper)"/><br />
<input id="save" type="button" value="Zapisz" onclick="toImg()"/><br />
</form>
</div>
<script>rle()</script>
</body>
</html>