forked from alwc/CurvedSynthText
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreview.html
executable file
·38 lines (35 loc) · 1.23 KB
/
preview.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
<html>
<head>
<title>preview</title>
</head>
<body>
<!-- <p>
<input type="text" id="imgname">
<input type="button" id="load" value="load">
</p> -->
<p>
<img id="imga" src=""><img id="imgb" src="">
</p>
<script type="text/javascript">
// var button = document.getElementById("load");
// button.onclick = function()
// {
// var textbox = document.getElementById("imgname").value;
// var imga = document.getElementById("imga");
// var imgb = document.getElementById("imgb");
// imga.src = "http://localhost:33333/static/" + textbox + "_0.bin_ori.png";
// imgb.src = "http://localhost:33333/static/" + textbox + "_0.bin.png";
// };
for (var i=0; i<100; i++)
{
istr = i.toString();
document.write(
"<p><img id=\"imga\" src=\"/static/"
+ istr
+ "_0.bin_ori.png\"><img id=\"imgb\" src=\"/static/"
+ istr
+ "_0.bin.png\"></p>");
}
</script>
</body>
</html>