+ Подробные коменты в не [[]]

This commit is contained in:
2022-08-19 17:12:00 +06:00
parent b0ddda219f
commit d46b696e6d
10 changed files with 279 additions and 96 deletions

View File

@ -86,6 +86,7 @@ class tcTab
this.par=null;
this.sel=false;
this.con=null; //Элемент с содержимым
this.display = 'block'; //Для сохранения старого значения
this.href='';
//Сам таб на который нажимаем (ушко)
@ -116,6 +117,9 @@ class tcTab
val=document.getElementById(val);
if(val===null || typeof(val)=='undefined') return;
this.con=val;
this.display = this.con.style.display;
if(!this.sel) this.con.style.display='none';
this.par.ctt.appendChild(this.con);
return val;
@ -131,8 +135,7 @@ class tcTab
}
this.div.style.background = 'var(--row-color-2)';
this.div.style.borderBottom = '1px solid var(--back-color)'
//this.con.style.display='inline'
this.con.style.display='block';
this.con.style.display = this.display; //this.con.style.display='block'; //this.con.style.display='inline'
this.sel=true
}
}