Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files
templates/proposed-GUI.html
CHANGED
|
@@ -554,13 +554,15 @@ document.getElementById('measureADRbutton').addEventListener('click',function(){
|
|
| 554 |
|
| 555 |
/*Clear output everytime the user clicks on measureADR button*/
|
| 556 |
var rightside=document.getElementById('rightside');
|
|
|
|
|
|
|
|
|
|
| 557 |
var rightchidren= rightside.children;
|
| 558 |
for (let ch=0;ch<rightchidren.length; ch++)
|
| 559 |
{
|
| 560 |
if (rightchidren[ch].id == 'imgcanvas')
|
| 561 |
{
|
| 562 |
rightside.removeChild(rightchidren[ch])
|
| 563 |
-
document.getElementById('underimgbuttons').innerHTML=''
|
| 564 |
clearInterval()
|
| 565 |
clearTimeout()
|
| 566 |
}
|
|
@@ -1146,7 +1148,7 @@ function getData(form) {
|
|
| 1146 |
// imgcanvas.width=700;
|
| 1147 |
imgcanvas.height=600;
|
| 1148 |
console.log(imgcanvas.width)
|
| 1149 |
-
imgcanvas.id=
|
| 1150 |
imgcanvas.alt="Larry";
|
| 1151 |
imgcanvas.style.zIndex=999;
|
| 1152 |
imgcanvas.addEventListener('click',function(){
|
|
|
|
| 554 |
|
| 555 |
/*Clear output everytime the user clicks on measureADR button*/
|
| 556 |
var rightside=document.getElementById('rightside');
|
| 557 |
+
var rightside=document.getElementById('rightside');
|
| 558 |
+
document.getElementById("backgroundimg").innerHTML='';
|
| 559 |
+
document.getElementById("underimgbuttons").innerHTML='';
|
| 560 |
var rightchidren= rightside.children;
|
| 561 |
for (let ch=0;ch<rightchidren.length; ch++)
|
| 562 |
{
|
| 563 |
if (rightchidren[ch].id == 'imgcanvas')
|
| 564 |
{
|
| 565 |
rightside.removeChild(rightchidren[ch])
|
|
|
|
| 566 |
clearInterval()
|
| 567 |
clearTimeout()
|
| 568 |
}
|
|
|
|
| 1148 |
// imgcanvas.width=700;
|
| 1149 |
imgcanvas.height=600;
|
| 1150 |
console.log(imgcanvas.width)
|
| 1151 |
+
imgcanvas.id='imgcanvas';
|
| 1152 |
imgcanvas.alt="Larry";
|
| 1153 |
imgcanvas.style.zIndex=999;
|
| 1154 |
imgcanvas.addEventListener('click',function(){
|