Demo updated.
This commit is contained in:
parent
a8f26fdf33
commit
514d9e5f01
|
|
@ -39,6 +39,26 @@
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
height: 25px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#controls .m {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#controls .bg {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: white;
|
||||||
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -96,7 +116,14 @@
|
||||||
main();</textarea>
|
main();</textarea>
|
||||||
<textarea id="translation"></textarea>
|
<textarea id="translation"></textarea>
|
||||||
<textarea id="result"></textarea>
|
<textarea id="result"></textarea>
|
||||||
<div id="controls"><button id="exec" onclick="exec()">Execute</button><input type="checkbox" id="is_js" onclick="compile()"><label for="is_js">js parser</label></div>
|
<div id="controls">
|
||||||
|
<div class="bg"> </div>
|
||||||
|
<div class="m">
|
||||||
|
<button id="exec" onclick="exec()">Execute</button>
|
||||||
|
<input type="checkbox" id="is_js" onclick="compile()">
|
||||||
|
<label for="is_js">js parser</label>
|
||||||
|
<span id="lenstat"></span>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
var sourceArea = document.getElementById("source"),
|
var sourceArea = document.getElementById("source"),
|
||||||
|
|
@ -140,6 +167,8 @@ main();</textarea>
|
||||||
translationArea.value = '';
|
translationArea.value = '';
|
||||||
resultArea.value = '';
|
resultArea.value = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.querySelector('#lenstat').innerHTML = sourceArea.value.length+" : "+translationArea.value.length+" : "+resultArea.value.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
function exec(){
|
function exec(){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user