|
|
@ -12,7 +12,14 @@
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
|
<canvas class="output_canvas" width="1280px" height="720px"></canvas>
|
|
|
|
<canvas class="output_canvas" width="1280px" height="720px"></canvas>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button id="clean" onclick="clean()">清空</button>
|
|
|
|
<div id="txtHint"></div>
|
|
|
|
<div id="txtHint"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
function clean() {
|
|
|
|
|
|
|
|
var obj = document.getElementById("txtHint");
|
|
|
|
|
|
|
|
obj.innerHTML="";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<script type="module">
|
|
|
|
<script type="module">
|
|
|
|
function ajax(str) {
|
|
|
|
function ajax(str) {
|
|
|
|
var xmlhttp;
|
|
|
|
var xmlhttp;
|
|
|
@ -27,11 +34,13 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (xmlhttp.readyState==4 && xmlhttp.status==200)
|
|
|
|
if (xmlhttp.readyState==4 && xmlhttp.status==200)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
document.getElementById("txtHint").innerHTML+=xmlhttp.responseText;
|
|
|
|
var xml = xmlhttp.responseText
|
|
|
|
|
|
|
|
xml = xml.slice(33,xml.length-2);
|
|
|
|
|
|
|
|
document.getElementById("txtHint").innerHTML+=xml;
|
|
|
|
num=0
|
|
|
|
num=0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
xmlhttp.open("GET","/trans?="+str,true)
|
|
|
|
xmlhttp.open("GET","/trans?str="+str,true)
|
|
|
|
xmlhttp.send();
|
|
|
|
xmlhttp.send();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|