UNPKG

surveybuilder

Version:

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

31 lines 2.77 kB
function Structure(structure,cate){this.structure=structure;this.cate=cate;if(this.structure===""||this.structure===null){console.error("Cannot have a Structure as null");return false;} if(this.cate===""||this.cate===null){console.error("Cannot have a Category as null");return false;} if(this.structure==="heading"&&this.cate==="default_inserts"){setTimeout(InsertHeadings,0);} if(this.structure==="paragraph"&&this.cate==="default_inserts"){setTimeout(InsertPara,0);} if(this.structure==="name"&&this.cate==="default_inserts"){setTimeout(InsertNames,0);} if(this.structure==="email"&&this.cate==="default_inserts"){setTimeout(InsertEmailAddress,0);} if(this.structure==="address"&&this.cate==="default_inserts"){setTimeout(InsertAddress);} if(this.structure==="phone"&&this.cate==="default_inserts"){setTimeout(InsertPhone,0);} if(this.structure==="date"&&this.cate==="default_inserts"){setTimeout(InsertDate,0);} if(this.structure==="time"&&this.cate==="default_inserts"){setTimeout(InsertTime,0);} if(this.structure==="qrcode"&&this.cate==="widgets"){setTimeout(Insertqrcode,0);} if(this.structure==="smf"&&this.cate==="widgets"){setTimeout(InsertSocial,0);} if(this.structure==="tac"&&this.cate==="widgets"){setTimeout(TaC,0);} if(this.structure==="audio"&&this.cate==="widgets"){setTimeout(InsertAudio,0);} if(this.structure==="yt"&&this.cate==="widgets"){setTimeout(InsertYouTube,0);} if(this.structure==="ife"&&this.cate==="widgets"){setTimeout(InsertIframeEmbeder,0);} if(this.structure==="text"&&this.cate==="elements"){setTimeout(InsertsText,0);} if(this.structure==="textarea"&&this.cate==="elements"){setTimeout(InsertTextArea,0);} if(this.structure==="radios"&&this.cate==="elements"){setTimeout(InsertRadios,0);} if(this.structure==="checkbox"&&this.cate==="elements"){setTimeout(InsertCheckboxs,0);} if(this.structure==="dropdown"&&this.cate==="elements"){setTimeout(InsertDropdown,0);} if(this.structure==="images"&&this.cate==="elements"){setTimeout(InsertImages,0);} if(this.structure==="video"&&this.cate==="elements"){setTimeout(InsertVideo,0);} if(this.structure==="file"&&this.cate==="elements"){setTimeout(IntertFileUploader,0);} if(this.structure==="number"&&this.cate==="elements"){setTimeout(InsertNumber,0);} if(this.structure==="submit"&&this.cate==="elements"){setTimeout(InsertSubBtn,0);} if(this.structure==="txteditor"&&this.cate==="elements"){setTimeout(InsertTextEdit,0);} if(this.structure==="table"&&this.cate==="elements"){setTimeout(InsertTable,0);} if(this.structure==="table"&&this.cate==="elements"){setTimeout(InsertTable,0);} if(this.structure==="paypal"&&this.cate==="eCommerce"){setTimeout(InsertPayPal,0);} if(this.structure==="stripe"&&this.cate==="eCommerce"){setTimeout(InsertStripe,0);}}