forked from kadavr95/php-practice-6
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript.min.js
More file actions
1 lines (1 loc) · 1.06 KB
/
javascript.min.js
File metadata and controls
1 lines (1 loc) · 1.06 KB
1
function loginTabsChange(e,t){var n,a,l;for(a=document.getElementsByClassName("tabcontent"),n=0;n<a.length;n++)a[n].style.display="none";for(l=document.getElementsByClassName("tablinks"),n=0;n<l.length;n++)l[n].className=l[n].className.replace(" active","");document.getElementById(t).style.display="block",e.currentTarget.className+=" active"}function addInput(e){var t;(t=document.createElement("input")).setAttribute("name","account[]"),t.setAttribute("type","varchar"),t.setAttribute("placeholder","Account type"),t.setAttribute("class","login-input-label"),t.setAttribute("maxlength","40"),document.getElementById("extForm").appendChild(t),(t=document.createElement("input")).setAttribute("name","account_id[]"),t.setAttribute("type","varchar"),t.setAttribute("placeholder","Account ID"),t.setAttribute("class","login-input-label"),t.setAttribute("maxlength","40"),document.getElementById("extForm").appendChild(t);var n=document.createElement("br");document.getElementById("extForm").appendChild(n);n=document.createElement("br");document.getElementById("extForm").appendChild(n)}