const njigs=5; let nthPic=-1; let nrow,ncol; let initSign; const mcoef=[1,1,1,1,1,1]; const bkcol=["#efefef","#efefef","#efefef","#efefef","#efefef","#efefef"]; function initpz(){ pn2=document.createElement("div"); if(isMobile) pn2.style="background:#0e2841;100%;height:1000px;position:absolute;margin-left:0px;margin-top:160px;"; else pn2.style="background:#0e2841;width:800px;height:1000px;position:absolute;margin-left:150px;margin-top:20px;"; for(i=0;i=0) pzig[i].style=`width:${(vpshort-60)/2}px;margin-left:15px;margin-top:15px;margin-bottom:0px;border-radius:10px;`; else pzig[i].style=`width:${(vplong-90)/3}px;margin-left:20px;margin-top:20px;margin-bottom:0px;border-radius:10px;`; } else pzig[i].style="width:150px;margin-left:20px;margin-top:30px;margin-bottom:0px;border-radius:10px;"; pzig[i].addEventListener('click',(event)=>selectPZ(event)); pn2.appendChild(pzig[i]); } document.body.appendChild(pn2); }