School backup Add New Row Edit ElementClone ElementAdvanced Element OptionsMoveRemove Element <p data-wpview-marker=”%5Bimages%20style%3D%220%22%20image%3D%22http%253A%252F%252Faliandsumaya.com%252Fwp-content%252Fuploads%252F2016%252F12%252FAS_Logo_School.png%22%20custom_width%3D%22Y%22%20width%3D%22200%22%20custom_width_val%3D%22200%22%20align%3D%22center%22%20top_margin%3D%220%22%20bottom_margin%3D%22-30%22%20full_width%3D%22Y%22%5D”>.</p> Add Element Add New Row Edit ElementClone ElementAdvanced Element OptionsMoveRemove Element The Worlds First Interactive Online Islamic School <p data-wpview-marker=”%5Bheadline%20style%3D%221%22%20font_size%3D%2232%22%20font_font%3D%22Open%2520Sans%22%20font_style%3D%22bold%22%20font_color%3D%22%2523ffffff%22%20font_spacing%3D%22-1%22%20align%3D%22center%22%20line_height%3D%2237%22%20bottom_margin%3D%2220%22%5D%26lt%3Bspan%20style%3D%22color%3A%20%23ffffff%3B%22%26gt%3B%26lt%3Bb%26gt%3BThe%20Worlds%20First%20Interactive%20Online%20Islamic%20School%26lt%3B%2Fb%26gt%3B%26lt%3B%2Fspan%26gt%3B%5B%2Fheadline%5D”>.</p> Edit ElementClone ElementAdvanced Element OptionsMoveRemove Element <p data-wpview-marker=”%5Bimages%20style%3D%220%22%20image%3D%22http%253A%252F%252Faliandsumaya.com%252Fwp-content%252Fuploads%252F2017%252F02%252FDevices_Quote.png%22%20width%3D%221479%22%20align%3D%22center%22%20full_width%3D%22Y%22%5D”>.</p> Add Element Add New Row Edit ElementClone ElementAdvanced Element OptionsMoveRemove Element Join our waiting list to claim your FREE 7 Day Trial <p data-wpview-marker=”%5Bheadline%20style%3D%221%22%20font_size%3D%2224%22%20font_font%3D%22Open%2520Sans%22%20font_style%3D%22bold%22%20font_color%3D%22%2523ffffff%22%20font_spacing%3D%22-1%22%20align%3D%22center%22%20line_height%3D%2237%22%5D%26lt%3Bspan%20style%3D%22color%3A%20%23000000%3B%22%26gt%3B%26lt%3Bb%26gt%3BJoin%20our%20waiting%20list%20to%26nbsp%3Bclaim%20your%20FREE%207%20Day%20Trial%26lt%3B%2Fb%26gt%3B%26lt%3B%2Fspan%26gt%3B%5B%2Fheadline%5D”>.</p> Edit ElementClone ElementAdvanced Element OptionsMoveRemove Element [custom_html] By checking this box you confirm that you have read and agree to our Terms of Service, and that you have read our Privacy Policy* By checking this box you would like to recieve more information about our products/services, events news and offers Terms of Service & Privacy Policy Reserve Your Place! [/custom_html] [custom_html]<style><br /><br /> #_form_229_ { font-size:14px; line-height:1.6; font-family:arial, helvetica, sans-serif; margin:0; }<br /><br /> #_form_229_ * { outline:0; }<br /><br /> ._form_hide { display:none; visibility:hidden; }<br /><br /> ._form_show { display:block; visibility:visible; }<br /><br /> #_form_229_._form-top { top:0; }<br /><br /> #_form_229_._form-bottom { bottom:0; }<br /><br /> #_form_229_._form-left { left:0; }<br /><br /> #_form_229_._form-right { right:0; }<br /><br /> #_form_229_ input[type="text"],#_form_229_ input[type="date"],#_form_229_ textarea { padding:6px; height:auto; border:#979797 1px solid; border-radius:4px; color:#000 !important; font-size:13px; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; }<br /><br /> #_form_229_ textarea { resize:none; }<br /><br /> #_form_229_ ._submit { -webkit-appearance:none; cursor:pointer; font-family:arial, sans-serif; font-size:14px; text-align:center; background:#ff1003 !important; border:0 !important; -moz-border-radius:4px !important; -webkit-border-radius:4px !important; border-radius:4px !important; color:#fff !important; padding:15px !important; }<br /><br /> #_form_229_ ._close-icon { cursor:pointer; background-image:url('https://d226aj4ao1t61q.cloudfront.net/esfkyjh1u_forms-close-dark.png'); background-repeat:no-repeat; background-size:14.2px 14.2px; position:absolute; display:block; top:11px; right:9px; overflow:hidden; width:16.2px; height:16.2px; }<br /><br /> #_form_229_ ._close-icon:before { position:relative; }<br /><br /> #_form_229_ ._form-body { margin-bottom:30px; }<br /><br /> #_form_229_ ._form-image-left { width:150px; float:left; }<br /><br /> #_form_229_ ._form-content-right { margin-left:164px; }<br /><br /> #_form_229_ ._form-branding { color:#fff; font-size:10px; clear:both; text-align:left; margin-top:30px; font-weight:100; }<br /><br /> #_form_229_ ._form-branding ._logo { display:block; width:130px; height:14px; margin-top:6px; background-image:url('https://d226aj4ao1t61q.cloudfront.net/hh9ujqgv5_aclogo_li.png'); background-size:130px auto; background-repeat:no-repeat; }<br /><br /> #_form_229_ ._form-label,#_form_229_ ._form_element ._form-label { font-weight:bold; margin-bottom:5px; display:block; }<br /><br /> #_form_229_._dark ._form-branding { color:#333; }<br /><br /> #_form_229_._dark ._form-branding ._logo { background-image:url('https://d226aj4ao1t61q.cloudfront.net/jftq2c8s_aclogo_dk.png'); }<br /><br /> #_form_229_ ._form_element { position:relative; margin-bottom:10px; font-size:0; max-width:100%; }<br /><br /> #_form_229_ ._form_element * { font-size:14px; }<br /><br /> #_form_229_ ._form_element._clear { clear:both; width:100%; float:none; }<br /><br /> #_form_229_ ._form_element._clear:after { clear:left; }<br /><br /> #_form_229_ ._form_element input[type="text"],#_form_229_ ._form_element input[type="date"],#_form_229_ ._form_element select,#_form_229_ ._form_element textarea:not(.g-recaptcha-response) { display:block; width:100%; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; }<br /><br /> #_form_229_ ._field-wrapper { position:relative; }<br /><br /> #_form_229_ ._inline-style { float:left; }<br /><br /> #_form_229_ ._inline-style input[type="text"] { width:150px; }<br /><br /> #_form_229_ ._inline-style:not(._clear) + ._inline-style:not(._clear) { margin-left:20px; }<br /><br /> #_form_229_ ._form_element img._form-image { max-width:100%; }<br /><br /> #_form_229_ ._clear-element { clear:left; }<br /><br /> #_form_229_ ._full_width { width:100%; }<br /><br /> #_form_229_ ._form_full_field { display:block; width:100%; margin-bottom:10px; }<br /><br /> #_form_229_ input[type="text"]._has_error,#_form_229_ textarea._has_error { border:#f37c7b 1px solid; }<br /><br /> #_form_229_ input[type="checkbox"]._has_error { outline:#f37c7b 1px solid; }<br /><br /> #_form_229_ ._error { display:block; position:absolute; font-size:13px; z-index:10000001; }<br /><br /> #_form_229_ ._error._above { padding-bottom:4px; top:-41px; right:0; }<br /><br /> #_form_229_ ._error._below { padding-top:4px; top:100%; right:0; }<br /><br /> #_form_229_ ._error._above ._error-arrow { bottom:0; right:15px; border-left:5px solid transparent; border-right:5px solid transparent; border-top:5px solid #f37c7b; }<br /><br /> #_form_229_ ._error._below ._error-arrow { top:0; right:15px; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:5px solid #f37c7b; }<br /><br /> #_form_229_ ._error-inner { padding:8px 12px; background-color:#f37c7b; font-size:13px; font-family:arial, sans-serif; color:#fff; text-align:center; text-decoration:none; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; }<br /><br /> #_form_229_ ._error-inner._form_error { margin-bottom:5px; text-align:left; }<br /><br /> #_form_229_ ._button-wrapper ._error-inner._form_error { position:static; }<br /><br /> #_form_229_ ._error-inner._no_arrow { margin-bottom:10px; }<br /><br /> #_form_229_ ._error-arrow { position:absolute; width:0; height:0; }<br /><br /> #_form_229_ ._error-html { margin-bottom:10px; }<br /><br /> .pika-single { z-index:10000001 !important; }<br /><br /> @media all and (min-width:320px) and (max-width:667px) { ::-webkit-scrollbar { display:none; }<br /><br /> #_form_229_ { margin:0; width:100%; min-width:100%; max-width:100%; box-sizing:border-box; }<br /><br /> #_form_229_ * { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; font-size:1em; }<br /><br /> #_form_229_ ._form-content { margin:0; width:100%; }<br /><br /> #_form_229_ ._form-inner { display:block; min-width:100%; }<br /><br /> #_form_229_ ._form-title,#_form_229_ ._inline-style { margin-top:0; margin-right:0; margin-left:0; }<br /><br /> #_form_229_ ._form-title { font-size:1.2em; }<br /><br /> #_form_229_ ._form_element { margin:0 0 20px; padding:0; width:100%; }<br /><br /> #_form_229_ ._form-element,#_form_229_ ._inline-style,#_form_229_ input[type="text"],#_form_229_ label,#_form_229_ p,#_form_229_ textarea:not(.g-recaptcha-response) { float:none; display:block; width:100%; }<br /><br /> #_form_229_ ._row._checkbox-radio label { display:inline; }<br /><br /> #_form_229_ ._row,#_form_229_ p,#_form_229_ label { margin-bottom:0.7em; width:100%; }<br /><br /> #_form_229_ ._row input[type="checkbox"],#_form_229_ ._row input[type="radio"] { margin:0 !important; vertical-align:middle !important; }<br /><br /> #_form_229_ ._row input[type="checkbox"] + span label { display:inline; }<br /><br /> #_form_229_ ._row span label { margin:0 !important; width:initial !important; vertical-align:middle !important; }<br /><br /> #_form_229_ ._form-image { max-width:100%; height:auto !important; }<br /><br /> #_form_229_ input[type="text"] { padding-left:10px; padding-right:10px; font-size:16px; line-height:1.3em; -webkit-appearance:none; }<br /><br /> #_form_229_ input[type="radio"],#_form_229_ input[type="checkbox"] { display:inline-block; width:1.3em; height:1.3em; font-size:1em; margin:0 0.3em 0 0; vertical-align:baseline; }<br /><br /> #_form_229_ button[type="submit"] { padding:20px; font-size:1.5em; }<br /><br /> #_form_229_ ._inline-style { margin:20px 0 0 !important; }<br /><br /> }<br /><br /> #_form_229_ { position:relative; text-align:left; margin:25px auto 0; padding:20px; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; *zoom:1; background:#fff !important; border:0px solid #b0b0b0 !important; width:700px; -moz-border-radius:10px !important; -webkit-border-radius:10px !important; border-radius:10px !important; color:#000 !important; }<br /><br /> #_form_229_ ._form-title { font-size:22px; line-height:22px; font-weight:600; margin-bottom:0; }<br /><br /> #_form_229_:before,#_form_229_:after { content:" "; display:table; }<br /><br /> #_form_229_:after { clear:both; }<br /><br /> #_form_229_._inline-style { width:auto; display:inline-block; }<br /><br /> #_form_229_._inline-style input[type="text"],#_form_229_._inline-style input[type="date"] { padding:10px 12px; }<br /><br /> #_form_229_._inline-style button._inline-style { position:relative; top:27px; }<br /><br /> #_form_229_._inline-style p { margin:0; }<br /><br /> #_form_229_._inline-style ._button-wrapper { position:relative; margin:27px 12.5px 0 20px; }<br /><br /> #_form_229_ ._form-thank-you { position:relative; left:0; right:0; text-align:center; font-size:18px; }<br /><br /> @media all and (min-width:320px) and (max-width:667px) { #_form_229_._inline-form._inline-style ._inline-style._button-wrapper { margin-top:20px !important; margin-left:0 !important; }<br /><br /> }</p><br /> <p></style><br /><br /> <form method="POST" action="https://imanimationstudios.activehosted.com/proc.php" id="_form_229_" class="_form _form_229 _inline-form _dark" novalidate><br /><br /> <input type="hidden" name="u" value="229" /><br /><br /> <input type="hidden" name="f" value="229" /><br /><br /> <input type="hidden" name="s" /><br /><br /> <input type="hidden" name="c" value="0" /><br /><br /> <input type="hidden" name="m" value="0" /><br /><br /> <input type="hidden" name="act" value="sub" /><br /><br /> <input type="hidden" name="v" value="2" /><br /><br /> <div class="_form-content"><br /><br /> <div class="_form_element _x93715288 _full_width " ><br /><br /> <label class="_form-label"><br /><br /> </label><br /><br /> <div class="_field-wrapper"><br /><br /> <input type="text" name="email" placeholder="Enter your email address" required/><br /><br /> </div><br /><br /> </div><br /><br /> <div class="_form_element _field29 _full_width " ><br /><br /> <div class="_row"><br /><br /> <label class="_form-label"><br /><br /> </label><br /><br /> </div><br /><br /> <input type="hidden" name="field[29][]" value="~|"><br /><br /> <div class="_row _checkbox-radio"><br /><br /> <input id="field_29By checking this box you confirm that you have read and agree to our Terms of Service, and that you have read our Privacy Policy" type="checkbox" name="field[29][]" value="By checking this box you confirm that you have read and agree to our Terms of Service, and that you have read our Privacy Policy" required><br /><br /> <span><br /><br /> <label for="field_29By checking this box you confirm that you have read and agree to our Terms of Service, and that you have read our Privacy Policy"><br /><br /> By checking this box you confirm that you have read and agree to our Terms of Service, and that you have read our Privacy Policy*<br /><br /> </label><br /><br /> </span><br /><br /> </div><br /><br /> <div class="_row _checkbox-radio"><br /><br /> <input id="field_29By checking this box you would like to recieve more information about our products/services, events news and offers" type="checkbox" name="field[29][]" value="By checking this box you would like to recieve more information about our products/services, events news and offers" ><br /><br /> <span><br /><br /> <label for="field_29By checking this box you would like to recieve more information about our products/services, events news and offers"><br /><br /> By checking this box you would like to recieve more information about our products/services, events news and offers<br /><br /> </label><br /><br /> </span><br /><br /> </div><br /><br /> </div><br /><br /> <div class="_form_element _x88203608 _full_width _clear" ><br /><br /> <div class="_html-code"><br /><br /> <p><br /><br /> <a href="https://aliandsumaya.com/terms-and-conditions/" target="_blank" rel="noopener">Terms of Service</a><br /><br /> & <a href="https://aliandsumaya.com/privacy-policy/" target="_blank" rel="noopener">Privacy Policy</a><br /><br /> </p><br /><br /> </div><br /><br /> </div><br /><br /> <div class="_button-wrapper _full_width"><br /><br /> <button id="_form_229_submit" class="_submit" type="submit"><br /><br /> Reserve Your Place!<br /><br /> </button><br /><br /> </div><br /><br /> <div class="_clear-element"><br /><br /> </div><br /><br /> </div><br /><br /> <div class="_form-thank-you" style="display:none;"><br /><br /> </div><br /><br /> </form><script type="text/javascript"><br /><br /> window.cfields = {"29":"gdpr_consent"};<br /><br /> window._show_thank_you = function(id, message, trackcmp_url) {<br /><br /> var form = document.getElementById('_form_' + id + '_'), thank_you = form.querySelector('._form-thank-you');<br /><br /> form.querySelector('._form-content').style.display = 'none';<br /><br /> thank_you.innerHTML = message;<br /><br /> thank_you.style.display = 'block';<br /><br /> if (typeof(trackcmp_url) != 'undefined' && trackcmp_url) {<br /><br /> // Site tracking URL to use after inline form submission.<br /><br /> _load_script(trackcmp_url);<br /><br /> }<br /><br /> if (typeof window._form_callback !== 'undefined') window._form_callback(id);<br /><br /> };<br /><br /> window._show_error = function(id, message, html) {<br /><br /> var form = document.getElementById('_form_' + id + '_'), err = document.createElement('div'), button = form.querySelector('button'), old_error = form.querySelector('._form_error');<br /><br /> if (old_error) old_error.parentNode.removeChild(old_error);<br /><br /> err.innerHTML = message;<br /><br /> err.className = '_error-inner _form_error _no_arrow';<br /><br /> var wrapper = document.createElement('div');<br /><br /> wrapper.className = '_form-inner';<br /><br /> wrapper.appendChild(err);<br /><br /> button.parentNode.insertBefore(wrapper, button);<br /><br /> document.querySelector('[id^="_form"][id$="_submit"]').disabled = false;<br /><br /> if (html) {<br /><br /> var div = document.createElement('div');<br /><br /> div.className = '_error-html';<br /><br /> div.innerHTML = html;<br /><br /> err.appendChild(div);<br /><br /> }<br /><br /> };<br /><br /> window._load_script = function(url, callback) {<br /><br /> var head = document.querySelector('head'), script = document.createElement('script'), r = false;<br /><br /> script.type = 'text/javascript';<br /><br /> script.charset = 'utf-8';<br /><br /> script.src = url;<br /><br /> if (callback) {<br /><br /> script.onload = script.onreadystatechange = function() {<br /><br /> if (!r && (!this.readyState || this.readyState == 'complete')) {<br /><br /> r = true;<br /><br /> callback();<br /><br /> }<br /><br /> };<br /><br /> }<br /><br /> head.appendChild(script);<br /><br /> };<br /><br /> (function() {<br /><br /> if (window.location.search.search("excludeform") !== -1) return false;<br /><br /> var getCookie = function(name) {<br /><br /> var match = document.cookie.match(new RegExp('(^|; )' + name + '=([^;]+)'));<br /><br /> return match ? match[2] : null;<br /><br /> }<br /><br /> var setCookie = function(name, value) {<br /><br /> var now = new Date();<br /><br /> var time = now.getTime();<br /><br /> var expireTime = time + 1000 * 60 * 60 * 24 * 365;<br /><br /> now.setTime(expireTime);<br /><br /> document.cookie = name + '=' + value + '; expires=' + now + ';path=/';<br /><br /> }<br /><br /> var addEvent = function(element, event, func) {<br /><br /> if (element.addEventListener) {<br /><br /> element.addEventListener(event, func);<br /><br /> } else {<br /><br /> var oldFunc = element['on' + event];<br /><br /> element['on' + event] = function() {<br /><br /> oldFunc.apply(this, arguments);<br /><br /> func.apply(this, arguments);<br /><br /> };<br /><br /> }<br /><br /> }<br /><br /> var _removed = false;<br /><br /> var form_to_submit = document.getElementById('_form_229_');<br /><br /> var allInputs = form_to_submit.querySelectorAll('input, select, textarea'), tooltips = [], submitted = false;</p><br /> <p> var getUrlParam = function(name) {<br /><br /> var regexStr = '[?&]' + name + '=([^&#]*)';<br /><br /> var results = new RegExp(regexStr, 'i').exec(window.location.href);<br /><br /> return results != undefined ? decodeURIComponent(results[1]) : false;<br /><br /> };</p><br /> <p> for (var i = 0; i < allInputs.length; i++) {<br /><br /> var regexStr = "field[(d+)]";<br /><br /> var results = new RegExp(regexStr).exec(allInputs[i].name);<br /><br /> if (results != undefined) {<br /><br /> allInputs[i].dataset.name = window.cfields[results[1]];<br /><br /> } else {<br /><br /> allInputs[i].dataset.name = allInputs[i].name;<br /><br /> }<br /><br /> var fieldVal = getUrlParam(allInputs[i].dataset.name);</p><br /> <p> if (fieldVal) {<br /><br /> if (allInputs[i].type == "radio" || allInputs[i].type == "checkbox") {<br /><br /> if (allInputs[i].value == fieldVal) {<br /><br /> allInputs[i].checked = true;<br /><br /> }<br /><br /> } else {<br /><br /> allInputs[i].value = fieldVal;<br /><br /> }<br /><br /> }<br /><br /> }</p><br /> <p> var remove_tooltips = function() {<br /><br /> for (var i = 0; i < tooltips.length; i++) {<br /><br /> tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);<br /><br /> }<br /><br /> tooltips = [];<br /><br /> };<br /><br /> var remove_tooltip = function(elem) {<br /><br /> for (var i = 0; i < tooltips.length; i++) {<br /><br /> if (tooltips[i].elem === elem) {<br /><br /> tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);<br /><br /> tooltips.splice(i, 1);<br /><br /> return;<br /><br /> }<br /><br /> }<br /><br /> };<br /><br /> var create_tooltip = function(elem, text) {<br /><br /> var tooltip = document.createElement('div'), arrow = document.createElement('div'), inner = document.createElement('div'), new_tooltip = {};<br /><br /> if (elem.type != 'radio' && elem.type != 'checkbox') {<br /><br /> tooltip.className = '_error';<br /><br /> arrow.className = '_error-arrow';<br /><br /> inner.className = '_error-inner';<br /><br /> inner.innerHTML = text;<br /><br /> tooltip.appendChild(arrow);<br /><br /> tooltip.appendChild(inner);<br /><br /> elem.parentNode.appendChild(tooltip);<br /><br /> } else {<br /><br /> tooltip.className = '_error-inner _no_arrow';<br /><br /> tooltip.innerHTML = text;<br /><br /> elem.parentNode.insertBefore(tooltip, elem);<br /><br /> new_tooltip.no_arrow = true;<br /><br /> }<br /><br /> new_tooltip.tip = tooltip;<br /><br /> new_tooltip.elem = elem;<br /><br /> tooltips.push(new_tooltip);<br /><br /> return new_tooltip;<br /><br /> };<br /><br /> var resize_tooltip = function(tooltip) {<br /><br /> var rect = tooltip.elem.getBoundingClientRect();<br /><br /> var doc = document.documentElement, scrollPosition = rect.top - ((window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0));<br /><br /> if (scrollPosition < 40) {<br /><br /> tooltip.tip.className = tooltip.tip.className.replace(/ ?(_above|_below) ?/g, '') + ' _below';<br /><br /> } else {<br /><br /> tooltip.tip.className = tooltip.tip.className.replace(/ ?(_above|_below) ?/g, '') + ' _above';<br /><br /> }<br /><br /> };<br /><br /> var resize_tooltips = function() {<br /><br /> if (_removed) return;<br /><br /> for (var i = 0; i < tooltips.length; i++) {<br /><br /> if (!tooltips[i].no_arrow) resize_tooltip(tooltips[i]);<br /><br /> }<br /><br /> };<br /><br /> var validate_field = function(elem, remove) {<br /><br /> var tooltip = null, value = elem.value, no_error = true;<br /><br /> remove ? remove_tooltip(elem) : false;<br /><br /> if (elem.type != 'checkbox') elem.className = elem.className.replace(/ ?_has_error ?/g, '');<br /><br /> if (elem.getAttribute('required') !== null) {<br /><br /> if (elem.type == 'radio' || (elem.type == 'checkbox' && /any/.test(elem.className))) {<br /><br /> var elems = form_to_submit.elements[elem.name];<br /><br /> if (!(elems instanceof NodeList || elems instanceof HTMLCollection) || elems.length <= 1) {<br /><br /> no_error = elem.checked;<br /><br /> }<br /><br /> else {<br /><br /> no_error = false;<br /><br /> for (var i = 0; i < elems.length; i++) {<br /><br /> if (elems[i].checked) no_error = true;<br /><br /> }<br /><br /> }<br /><br /> if (!no_error) {<br /><br /> tooltip = create_tooltip(elem, "Please select an option.");<br /><br /> }<br /><br /> } else if (elem.type =='checkbox') {<br /><br /> var elems = form_to_submit.elements[elem.name], found = false, err = [];<br /><br /> no_error = true;<br /><br /> for (var i = 0; i < elems.length; i++) {<br /><br /> if (elems[i].getAttribute('required') === null) continue;<br /><br /> if (!found && elems[i] !== elem) return true;<br /><br /> found = true;<br /><br /> elems[i].className = elems[i].className.replace(/ ?_has_error ?/g, '');<br /><br /> if (!elems[i].checked) {<br /><br /> no_error = false;<br /><br /> elems[i].className = elems[i].className + ' _has_error';<br /><br /> err.push("Checking %s is required".replace("%s", elems[i].value));<br /><br /> }<br /><br /> }<br /><br /> if (!no_error) {<br /><br /> tooltip = create_tooltip(elem, err.join('<br/>'));<br /><br /> }<br /><br /> } else if (elem.tagName == 'SELECT') {<br /><br /> var selected = true;<br /><br /> if (elem.multiple) {<br /><br /> selected = false;<br /><br /> for (var i = 0; i < elem.options.length; i++) {<br /><br /> if (elem.options[i].selected) {<br /><br /> selected = true;<br /><br /> break;<br /><br /> }<br /><br /> }<br /><br /> } else {<br /><br /> for (var i = 0; i < elem.options.length; i++) {<br /><br /> if (elem.options[i].selected && !elem.options[i].value) {<br /><br /> selected = false;<br /><br /> }<br /><br /> }<br /><br /> }<br /><br /> if (!selected) {<br /><br /> elem.className = elem.className + ' _has_error';<br /><br /> no_error = false;<br /><br /> tooltip = create_tooltip(elem, "Please select an option.");<br /><br /> }<br /><br /> } else if (value === undefined || value === null || value === '') {<br /><br /> elem.className = elem.className + ' _has_error';<br /><br /> no_error = false;<br /><br /> tooltip = create_tooltip(elem, "This field is required.");<br /><br /> }<br /><br /> }<br /><br /> if (no_error && elem.name == 'email') {<br /><br /> if (!value.match(/^[+_a-z0-9-'&=]+(.[+_a-z0-9-']+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,})$/i)) {<br /><br /> elem.className = elem.className + ' _has_error';<br /><br /> no_error = false;<br /><br /> tooltip = create_tooltip(elem, "Enter a valid email address.");<br /><br /> }<br /><br /> }<br /><br /> if (no_error && /date_field/.test(elem.className)) {<br /><br /> if (!value.match(/^dddd-dd-dd$/)) {<br /><br /> elem.className = elem.className + ' _has_error';<br /><br /> no_error = false;<br /><br /> tooltip = create_tooltip(elem, "Enter a valid date.");<br /><br /> }<br /><br /> }<br /><br /> tooltip ? resize_tooltip(tooltip) : false;<br /><br /> return no_error;<br /><br /> };<br /><br /> var needs_validate = function(el) {<br /><br /> return el.name == 'email' || el.getAttribute('required') !== null;<br /><br /> };<br /><br /> var validate_form = function(e) {<br /><br /> var err = form_to_submit.querySelector('._form_error'), no_error = true;<br /><br /> if (!submitted) {<br /><br /> submitted = true;<br /><br /> for (var i = 0, len = allInputs.length; i < len; i++) {<br /><br /> var input = allInputs[i];<br /><br /> if (needs_validate(input)) {<br /><br /> if (input.type == 'text') {<br /><br /> addEvent(input, 'blur', function() {<br /><br /> this.value = this.value.trim();<br /><br /> validate_field(this, true);<br /><br /> });<br /><br /> addEvent(input, 'input', function() {<br /><br /> validate_field(this, true);<br /><br /> });<br /><br /> } else if (input.type == 'radio' || input.type == 'checkbox') {<br /><br /> (function(el) {<br /><br /> var radios = form_to_submit.elements[el.name];<br /><br /> for (var i = 0; i < radios.length; i++) {<br /><br /> addEvent(radios[i], 'click', function() {<br /><br /> validate_field(el, true);<br /><br /> });<br /><br /> }<br /><br /> })(input);<br /><br /> } else if (input.tagName == 'SELECT') {<br /><br /> addEvent(input, 'change', function() {<br /><br /> validate_field(this, true);<br /><br /> });<br /><br /> }<br /><br /> }<br /><br /> }<br /><br /> }<br /><br /> remove_tooltips();<br /><br /> for (var i = 0, len = allInputs.length; i < len; i++) {<br /><br /> var elem = allInputs[i];<br /><br /> if (needs_validate(elem)) {<br /><br /> if (elem.tagName.toLowerCase() !== "select") {<br /><br /> elem.value = elem.value.trim();<br /><br /> }<br /><br /> validate_field(elem) ? true : no_error = false;<br /><br /> }<br /><br /> }<br /><br /> if (!no_error && e) {<br /><br /> e.preventDefault();<br /><br /> }<br /><br /> resize_tooltips();<br /><br /> return no_error;<br /><br /> };<br /><br /> addEvent(window, 'resize', resize_tooltips);<br /><br /> addEvent(window, 'scroll', resize_tooltips);<br /><br /> window._old_serialize = null;<br /><br /> if (typeof serialize !== 'undefined') window._old_serialize = window.serialize;<br /><br /> _load_script("//d3rxaij56vjege.cloudfront.net/form-serialize/0.3/serialize.min.js", function() {<br /><br /> window._form_serialize = window.serialize;<br /><br /> if (window._old_serialize) window.serialize = window._old_serialize;<br /><br /> });<br /><br /> var form_submit = function(e) {<br /><br /> e.preventDefault();<br /><br /> if (validate_form()) {<br /><br /> // use this trick to get the submit button & disable it using plain javascript<br /><br /> document.querySelector('[id^="_form"][id$="_submit"]').disabled = true;<br /><br /> var serialized = _form_serialize(document.getElementById('_form_229_'));<br /><br /> var err = form_to_submit.querySelector('._form_error');<br /><br /> err ? err.parentNode.removeChild(err) : false;<br /><br /> _load_script('https://imanimationstudios.activehosted.com/proc.php?' + serialized + '&jsonp=true');<br /><br /> }<br /><br /> return false;<br /><br /> };<br /><br /> addEvent(form_to_submit, 'submit', form_submit);<br /><br /> })();</p><br /> <p></script>[/custom_html] Edit ElementClone ElementAdvanced Element OptionsMoveRemove Element <p data-wpview-marker="%5Bimages%20style%3D%220%22%20image%3D%22http%253A%252F%252Fwww.aliandsumaya.com%252Fwp-content%252Fuploads%252F2015%252F12%252FFeatured3.jpg%22%20width%3D%221048%22%20align%3D%22center%22%20top_margin%3D%225%22%20full_width%3D%22Y%22%5D">.</p> Add Element Add New Row Add Element Add New Row Add Element Edit ElementClone ElementAdvanced Element OptionsMoveRemove Element Title Copyright © 2017 Imanimation Studios Ltd [text_block style="style_1.png" align="center" font_size="14" font_font="Open%20Sans" font_style="normal" font_color="%23cfcfcf" bottom_padding="5"]Copyright © 2017 Imanimation Studios Ltd[/text_block] Add Element Add Element