s4

changeset 673:42bf03cb3712

Enlarge div of form field when bring them visible
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 13 May 2020 07:30:55 +0900
parents 4d580bd8c47f
children 2199d20249a8
files s4-main.js
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/s4-main.js	Tue May 12 11:31:50 2020 +0900
     1.2 +++ b/s4-main.js	Wed May 13 07:30:55 2020 +0900
     1.3 @@ -81,6 +81,10 @@
     1.4  	var emailbtn = document.getElementById("email");
     1.5  	emailbtn.addEventListener("click", function(ev){
     1.6  	    if (!ev.target.checked) return;
     1.7 +	    var x = collectElementsByAttr("div", "class", "foldtabs");
     1.8 +	    if (x && x[0] && x[0].style) {
     1.9 +		x[0].style.height = "10em";
    1.10 +	    }
    1.11  	    let myuid = document.getElementById("myuid");
    1.12  	    if (myuid) {
    1.13  		let usel = collectElementsByAttr("input", "name", "usel");