UNPKG

surveybuilder

Version:

Build surveys in the most advanced, flexable, and more moderated way, for all users to build and see.

1 lines 2.28 kB
function setupInvitationTemp(){document.getElementById("yourTitle").innerHTML="Invitation Template",document.getElementById("UserTitle").innerHTML="Invitation Template - SurveyBuilder",document.getElementById("Insert-Object").innerHTML="";let e=Math.random().toString(36).substring(7),t=document.createElement("div");t.className="heading",t.id=e,t.innerHTML="<h1 style='text-align:center;'>Your Invited!</h1>",document.getElementById("Insert-Object").appendChild(t);let n=Math.random().toString(36).substring(7),i=document.createElement("div");i.className="Name",i.id=n,i.innerHTML="<i class='fas fa-asterisk' style='color:red;'></i> First name: <input type='text' placeholder='First Name' id='FirstName' name='FirstName' required='true'/><br/> <i class='fas fa-asterisk' style='color:red;'></i> Last name: <input type='text' placeholder='Last Name' id='LirstName' name='LastName' required='true'/>",document.getElementById("Insert-Object").appendChild(i);let a=Math.random().toString(36).substring(7),r=document.createElement("div");r.className="Date",r.id=a,r.innerHTML="<i class='fas fa-asterisk' style='color:red;'></i> Start Date: <input type='date' max min required/>",document.getElementById("Insert-Object").appendChild(r);let d=Math.random().toString(36).substring(7),s=document.createElement("div");r.className="Time",r.id=d,r.innerHTML="<i class='fas fa-asterisk' style='color:red;'></i> Start Time: <input type='time' max min required/>",document.getElementById("Insert-Object").appendChild(s);let m=Math.random().toString(36).substring(7),l=document.createElement("div");l.className="Date",l.id=m,l.innerHTML="<i class='fas fa-asterisk' style='color:red;'></i> End Date: <input type='date' max min required/>",document.getElementById("Insert-Object").appendChild(l);let c=Math.random().toString(36).substring(7),o=document.createElement("div");o.className="Time",o.id=c,o.innerHTML="<i class='fas fa-asterisk' style='color:red;'></i> End Time: <input type='time' max min required/>",document.getElementById("Insert-Object").appendChild(o),InsertAddress();let u=Math.random().toString(36).substring(7),p=document.createElement("div");p.className="input",p.id=u,p.innerHTML="<input type='submit' value='Invite'>",document.getElementById("Insert-Object").appendChild(p)}