forked from dankogai/js-deflate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
33 lines (33 loc) · 1.01 KB
/
test.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test</title>
<script src="../../clone/trunk/uneval.js"></script>
<script src="../../Base64/trunk/base64.js"></script>
<script src="rawinflate.js"></script>
<script src="rawdeflate.js"></script>
<script>
$ = function(id){ return document.getElementById(id) };
</script>
</head>
<body>
<h1>テスト</h1>
<p>$Id: test.html,v 0.3 2009/03/01 22:52:17 dankogai Exp dankogai $</p>
<dl>
<dt>Inflated + Base64-Decoded (Original):</dt>
<dd><textarea id="inflated" cols="64" rows="16" onkeyup="
var that = this, dst = $('deflated');
window.setTimeout(function(){
dst.value = Base64.toBase64(RawDeflate.deflate(Base64.utob(that.value)));
},0);
"></textarea></dd>
<dt>Deflated + Base64-Encoded (Compressed):</dt>
<dd><textarea id="deflated" cols="64" rows="16" onkeyup="
var that = this, dst = $('inflated');
window.setTimeout(function(){
dst.value = Base64.btou(RawDeflate.inflate(Base64.fromBase64(that.value)));
},0);
"></textarea></dd>
</dl>
</body>
</html>