forked from hellolwq/nproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtset.html
More file actions
25 lines (24 loc) · 655 Bytes
/
tset.html
File metadata and controls
25 lines (24 loc) · 655 Bytes
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
<html>
<head>
<script src="lib/htmlparser.js"> </script>
</head>
<body>
<textarea id="input" rows="20" style="width:100%">
</textarea>
<button onClick="onRewrite()" style="width:200px;">ok</button>
<textarea id="output" rows="20" style="width:100%">
</textarea>
<script>
function onRewrite()
{
var input = document.getElementById("input").innerText;
var output = RewriteHtml(input,null,tran_url);
document.getElementById("output").innerText = output;
}
function tran_url(url)
{
return url+"##";
}
</script>
</body>
</html>