< script > Out For morigenos.org

Where we have the records of the script libraries used by the website you are looking for. These libraries fulfill the JavaScript tasks of morigenos.org domain name.

<script type='application/ld+json'>{"@context":"http:\/\/schema.org","@type":"WebSite","@id":"#website","url":"http:\/\/www.morigenos.org\/","name":"MORIGENOS","potentialAction":{"@type":"SearchAction","target":"http:\/\/www.morigenos.org\/?s={search_term_string}","query-input":"required name=search_term_string"}}</script></br><script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2.2.1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2.2.1\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/www.morigenos.org\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.7.3"}}; !function(a,b,c){function d(a){var b,c,d,e,f=String.fromCharCode;if(!k||!k.fillText)return!1;switch(k.clearRect(0,0,j.width,j.height),k.textBaseline="top",k.font="600 32px Arial",a){case"flag":return k.fillText(f(55356,56826,55356,56819),0,0),!(j.toDataURL().length<3e3)&&(k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57331,65039,8205,55356,57096),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57331,55356,57096),0,0),c=j.toDataURL(),b!==c);case"emoji4":return k.fillText(f(55357,56425,55356,57341,8205,55357,56507),0,0),d=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55357,56425,55356,57341,55357,56507),0,0),e=j.toDataURL(),d!==e}return!1}function e(a){var c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var f,g,h,i,j=b.createElement("canvas"),k=j.getContext&&j.getContext("2d");for(i=Array("flag","emoji4"),c.supports={everything:!0,everythingExceptFlag:!0},h=0;h<i.length;h++)c.supports[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.supports[i[h]],"flag"!==i[h]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings); </script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/font/js/jquery.fcarousel.min.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/widget.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/mouse.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/draggable.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/slider.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/font/js/colorpicker.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/sortable.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/font/js/jquery.fontPlugin.js?pver=7.5.1&#038;ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/font/js/pluginscripts.js?pver=7.5.1&#038;ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/form-maker/js/if_gmap_front_end.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/form-maker/js/calendar/calendar.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/form-maker/js/calendar/calendar_function.js?ver=4.7.3'></script></br><script type='text/javascript'> /* <![CDATA[ */ var mb_ajax = {"ajaxurl":"http:\/\/www.morigenos.org\/wp-admin\/admin-ajax.php"}; /* ]]> */ </script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/maxbuttons/js/min/front.js?ver=1'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/revslider/public/assets/js/jquery.themepunch.tools.min.js?ver=5.2.5.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/revslider/public/assets/js/jquery.themepunch.revolution.min.js?ver=5.2.5.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js?ver=4.7.3'></script></br><script type="text/javascript"> var ajaxproxy = 'http://www.morigenos.org/wp-admin/admin-ajax.php'; var fontBlogUrl = 'http://www.morigenos.org'; var fontBlogName = 'MORIGENOS'; var fontPluginVersion = '7.5.1'; </script></br><script>var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss=""; if(htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; }else{ var htmlDiv = document.createElement("div"); htmlDiv.innerHTML = "<style>" + htmlDivCss + "</style>"; document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]); } </script></br><script>var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss=".tp-caption.NotGeneric-SubTitle,.NotGeneric-SubTitle{color:rgba(255,255,255,1.00);font-size:13px;line-height:20px;font-weight:500;font-style:normal;font-family:Raleway;padding:0 0 0 0px;text-decoration:none;background-color:transparent;border-color:transparent;border-style:none;border-width:0px;border-radius:0 0 0 0px;letter-spacing:4px;text-align:left}.tp-caption.Newspaper-Button,.Newspaper-Button{color:rgba(255,255,255,1.00);font-size:13px;line-height:17px;font-weight:700;font-style:normal;font-family:Roboto;padding:12px 35px 12px 35px;text-decoration:none;text-align:left;background-color:rgba(255,255,255,0);border-color:rgba(255,255,255,0.25);border-style:solid;border-width:1px;border-radius:0px 0px 0px 0px;letter-spacing:2px}.tp-caption.Newspaper-Button:hover,.Newspaper-Button:hover{color:rgba(0,0,0,1.00);text-decoration:none;background-color:rgba(255,255,255,1.00);border-color:rgba(255,255,255,1.00);border-style:solid;border-width:1px;border-radius:0px 0px 0px 0px;cursor:pointer}"; if(htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; }else{ var htmlDiv = document.createElement("div"); htmlDiv.innerHTML = "<style>" + htmlDivCss + "</style>"; document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]); } </script></br><script type="text/javascript"> /****************************************** - PREPARE PLACEHOLDER FOR SLIDER - ******************************************/ var setREVStartSize=function(){ try{var e=new Object,i=jQuery(window).width(),t=9999,r=0,n=0,l=0,f=0,s=0,h=0; e.c = jQuery('#rev_slider_12_1'); e.gridwidth = [1140]; e.gridheight = [700]; e.sliderLayout = "auto"; if(e.responsiveLevels&&(jQuery.each(e.responsiveLevels,function(e,f){f>i&&(t=r=f,l=e),i>f&&f>r&&(r=f,n=e)}),t>r&&(l=n)),f=e.gridheight[l]||e.gridheight[0]||e.gridheight,s=e.gridwidth[l]||e.gridwidth[0]||e.gridwidth,h=i/s,h=h>1?1:h,f=Math.round(h*f),"fullscreen"==e.sliderLayout){var u=(e.c.width(),jQuery(window).height());if(void 0!=e.fullScreenOffsetContainer){var c=e.fullScreenOffsetContainer.split(",");if (c) jQuery.each(c,function(e,i){u=jQuery(i).length>0?u-jQuery(i).outerHeight(!0):u}),e.fullScreenOffset.split("%").length>1&&void 0!=e.fullScreenOffset&&e.fullScreenOffset.length>0?u-=jQuery(window).height()*parseInt(e.fullScreenOffset,0)/100:void 0!=e.fullScreenOffset&&e.fullScreenOffset.length>0&&(u-=parseInt(e.fullScreenOffset,0))}f=u}else void 0!=e.minHeight&&f<e.minHeight&&(f=e.minHeight);e.c.closest(".rev_slider_wrapper").css({height:f}) }catch(d){console.log("Failure at Presize of Slider:"+d)} }; setREVStartSize(); var tpj=jQuery; tpj.noConflict(); var revapi12; tpj(document).ready(function() { if(tpj("#rev_slider_12_1").revolution == undefined){ revslider_showDoubleJqueryError("#rev_slider_12_1"); }else{ revapi12 = tpj("#rev_slider_12_1").show().revolution({ sliderType:"standard", jsFileLocation:"//www.morigenos.org/wp-content/plugins/revslider/public/assets/js/", sliderLayout:"auto", dottedOverlay:"none", delay:9000, navigation: { keyboardNavigation:"off", keyboard_direction: "horizontal", mouseScrollNavigation:"off", mouseScrollReverse:"default", onHoverStop:"off", touch:{ touchenabled:"on", swipe_threshold: 0.7, swipe_min_touches: 1, swipe_direction: "horizontal", drag_block_vertical: false } , arrows: { style:"hesperiden", enable:true, hide_onmobile:false, hide_onleave:false, tmp:'', left: { h_align:"left", v_align:"center", h_offset:20, v_offset:0 }, right: { h_align:"right", v_align:"center", h_offset:20, v_offset:0 } } , bullets: { enable:true, hide_onmobile:false, style:"hesperiden", hide_onleave:false, direction:"horizontal", h_align:"center", v_align:"bottom", h_offset:0, v_offset:20, space:5, tmp:'' } }, visibilityLevels:[1240,1024,778,480], gridwidth:1140, gridheight:700, lazyType:"none", shadow:0, spinner:"spinner0", stopLoop:"off", stopAfterLoops:-1, stopAtSlide:-1, shuffle:"off", autoHeight:"off", hideThumbsOnMobile:"off", hideSliderAtLimit:0, hideCaptionAtLimit:0, hideAllCaptionAtLilmit:0, debugMode:false, fallbacks: { simplifyAll:"off", nextSlideOnWindowFocus:"off", disableFocusListener:false, } }); } }); /*ready*/ </script></br><script> var htmlDivCss = unescape(".hesperiden.tparrows%20%7B%0A%09cursor%3Apointer%3B%0A%09background%3Argba%280%2C0%2C0%2C0.5%29%3B%0A%09width%3A40px%3B%0A%09height%3A40px%3B%0A%09position%3Aabsolute%3B%0A%09display%3Ablock%3B%0A%09z-index%3A100%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%7D%0A.hesperiden.tparrows%3Ahover%20%7B%0A%09background%3Argba%280%2C%200%2C%200%2C%201%29%3B%0A%7D%0A.hesperiden.tparrows%3Abefore%20%7B%0A%09font-family%3A%20%22revicons%22%3B%0A%09font-size%3A20px%3B%0A%09color%3Argb%28255%2C%20255%2C%20255%29%3B%0A%09display%3Ablock%3B%0A%09line-height%3A%2040px%3B%0A%09text-align%3A%20center%3B%0A%7D%0A.hesperiden.tparrows.tp-leftarrow%3Abefore%20%7B%0A%09content%3A%20%22%5Ce82c%22%3B%0A%20%20%20%20margin-left%3A-3px%3B%0A%7D%0A.hesperiden.tparrows.tp-rightarrow%3Abefore%20%7B%0A%09content%3A%20%22%5Ce82d%22%3B%0A%20%20%20%20margin-right%3A-3px%3B%0A%7D%0A.hesperiden.tp-bullets%20%7B%0A%7D%0A.hesperiden.tp-bullets%3Abefore%20%7B%0A%09content%3A%22%20%22%3B%0A%09position%3Aabsolute%3B%0A%09width%3A100%25%3B%0A%09height%3A100%25%3B%0A%09background%3Atransparent%3B%0A%09padding%3A10px%3B%0A%09margin-left%3A-10px%3Bmargin-top%3A-10px%3B%0A%09box-sizing%3Acontent-box%3B%0A%20%20%20border-radius%3A8px%3B%0A%20%20%0A%7D%0A.hesperiden%20.tp-bullet%20%7B%0A%09width%3A12px%3B%0A%09height%3A12px%3B%0A%09position%3Aabsolute%3B%0A%09background%3A%20rgb%28153%2C%20153%2C%20153%29%3B%20%2F%2A%20old%20browsers%20%2A%2F%0A%20%20%20%20background%3A%20-moz-linear-gradient%28top%2C%20%20rgb%28153%2C%20153%2C%20153%29%200%25%2C%20rgb%28225%2C%20225%2C%20225%29%20100%25%29%3B%20%2F%2A%20ff3.6%2B%20%2A%2F%0A%20%20%20%20background%3A%20-webkit-linear-gradient%28top%2C%20%20rgb%28153%2C%20153%2C%20153%29%200%25%2Crgb%28225%2C%20225%2C%20225%29%20100%25%29%3B%20%2F%2A%20chrome10%2B%2Csafari5.1%2B%20%2A%2F%0A%20%20%20%20background%3A%20-o-linear-gradient%28top%2C%20%20rgb%28153%2C%20153%2C%20153%29%200%25%2Crgb%28225%2C%20225%2C%20225%29%20100%25%29%3B%20%2F%2A%20opera%2011.10%2B%20%2A%2F%0A%20%20%20%20background%3A%20-ms-linear-gradient%28top%2C%20%20rgb%28153%2C%20153%2C%20153%29%200%25%2Crgb%28225%2C%20225%2C%20225%29%20100%25%29%3B%20%2F%2A%20ie10%2B%20%2A%2F%0A%20%20%20%20background%3A%20linear-gradient%28to%20bottom%2C%20%20rgb%28153%2C%20153%2C%20153%29%200%25%2Crgb%28225%2C%20225%2C%20225%29%20100%25%29%3B%20%2F%2A%20w3c%20%2A%2F%0A%20%20%20%20filter%3A%20progid%3Adximagetransform.microsoft.gradient%28%20%0A%20%20%20%20startcolorstr%3D%22rgb%28153%2C%20153%2C%20153%29%22%2C%20endcolorstr%3D%22rgb%28225%2C%20225%2C%20225%29%22%2Cgradienttype%3D0%20%29%3B%20%2F%2A%20ie6-9%20%2A%2F%0A%09border%3A3px%20solid%20rgb%28229%2C%20229%2C%20229%29%3B%0A%09border-radius%3A50%25%3B%0A%09cursor%3A%20pointer%3B%0A%09box-sizing%3Acontent-box%3B%0A%7D%0A.hesperiden%20.tp-bullet%3Ahover%2C%0A.hesperiden%20.tp-bullet.selected%20%7B%0A%09background%3Argb%28102%2C%20102%2C%20102%29%3B%0A%7D%0A.hesperiden%20.tp-bullet-image%20%7B%0A%7D%0A.hesperiden%20.tp-bullet-title%20%7B%0A%7D%0A%0A"); var htmlDiv = document.getElementById('rs-plugin-settings-inline-css'); if(htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else{ var htmlDiv = document.createElement('div'); htmlDiv.innerHTML = '<style>' + htmlDivCss + '</style>'; document.getElementsByTagName('head')[0].appendChild(htmlDiv.childNodes[0]); } </script></br><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script></br><script type="text/javascript">stLight.options({publisher: "ur-b4a0aaec-9733-1e85-1341-6dfcd856f67", doNotHash: true, doNotCopy: true, hashAddressBar: false});</script></br><script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-44942754-3', 'themecanon.com'); ga('send', 'pageview'); </script></br><script type='text/javascript'>/* <![CDATA[ */var fm_objectL10n = {"plugin_url":"http:\/\/www.morigenos.org\/wp-content\/plugins\/form-maker"};/* ]]> */</script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/form-maker/js/main_div_front_end.js?ver=1.10.7'></script></br><script type="text/javascript"> var plugin_url = "http://www.morigenos.org/wp-content/plugins/form-maker"; WDF_GRADING_TEXT ='Your score should be less than'; WDF_INVALID_GRADING_19 = 'Your score should be less than'; FormCurrency_19 = '$'; FormPaypalTax_19 = '0'; var check_submit19 = 0; var check_before_submit19 = {}; var required_fields19 = ["1","7","8"]; var labels_and_ids19 = {"1":"type_address","7":"type_checkbox","8":"type_checkbox","9":"type_address","15":"type_name","16":"type_textarea","17":"type_submit_reset"}; var check_regExp_all19 = []; var file_upload_check19 = []; var spinner_check19 = []; function wd_spinner_check(form_id, spinner_check_field){ var x = jQuery("#form" + form_id); var find_wrong_values = false; var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id]; jQuery.each( spinner_check, function( wdid, spinner_values ) { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) { jQuery("#form"+form_id+" #wd_price_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + "Value must be between " + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"); find_wrong_values = true; if(!spinner_check_field){ scroll_on_element(form_id); } } } }); if(find_wrong_values === false) return true; return false; } function wd_is_filled(form_id, field_id){ var x = jQuery("#form" + form_id); var req_fields = field_id ? field_id.split() : window['required_fields'+form_id]; var not_filled = {}; jQuery(req_fields).each(function(index, wdid){ if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) { switch(window['labels_and_ids'+form_id][wdid]){ case 'type_text': case 'type_textarea': case 'type_spinner': case 'type_number': case 'type_submitter_mail': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_own_select': case 'type_country': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_phone': { var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_name': { var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_address': { var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_checkbox': case 'type_radio': case 'type_scale_rating': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); }); } break; } case 'type_star_rating': { var element = "#wdform_" + wdid + "_selected_star_amount" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){ if(jQuery(element).val() != ""){ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); } break; } case 'type_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_grading': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_grading = 0; jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ if(jQuery(this).val() != "") count_grading ++; }); if(count_grading == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ jQuery(this).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } break; } case 'type_slider': { var slider_element = "#wdform_" + wdid + "_element" + form_id; var element = "#wdform_" + wdid + "_slider_value" + form_id; var min_value = "#wdform_" + wdid + "_element_min" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(min_value).html()){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(slider_element).slider({ change: function( event, ui ) { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); wd_is_filled(form_id, wdid); } }); } break; } case 'type_date': case 'type_date_new': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_date_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_date_fields': { var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_time': { var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_password': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_matrix': { if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); }); } } else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_input_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ if(jQuery(this).val() != "") count_input_matrix ++; }); if(count_input_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this) .focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }) .blur(function() { wd_is_filled(form_id, wdid); }); }); } } else{ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_select_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ if(jQuery(this).val() != "") count_select_matrix ++; }); if(count_select_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ jQuery(this).focus(function() { if(jQuery(this).val() == ""){ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }).change(function() { wd_is_filled(form_id, wdid); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } } break; } case 'type_send_copy': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); } break; } case 'type_captcha': case 'type_arithmetic_captcha':{ var element = ""; if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') element = '#wd_captcha_input' + form_id; else element = '#wd_arithmetic_captcha_input' + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } } } }); if(Object.keys(not_filled).length === 0 && Object.keys(window["check_before_submit" + form_id]).length === 0){ return true; } else { if(Object.keys(not_filled).length !== 0){ jQuery.each( not_filled, function( wdid, elem ) { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>Field is required</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label"); }); } if(!field_id){ scroll_on_element(form_id); } window['check_submit'+form_id] = 1; return false; } } function scroll_on_element(form_id){ var parent_div = jQuery("#form" + form_id + " .fm-not-filled:first").closest(".wdform_row"); var body_hight = document.body.clientHeight; var element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; var scrollChecker = function() { if(document.body.clientHeight !== body_hight ){ body_hight = document.body.clientHeight; element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; console.log(element_offset); jQuery('html body').stop(); animateBodyToError(); } }; jQuery(window).on("scroll",scrollChecker); function animateBodyToError(){ jQuery('html body').animate({ scrollTop: element_offset - 150 }, 500, function(){ jQuery(window).off("scroll", scrollChecker); old_bg=jQuery(parent_div).css("background-color"); jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); }); } animateBodyToError(); } function wd_check_regExp(form_id, regExpObj){ var x = jQuery("#form" + form_id); var find_wrong_exp = false; var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id]; jQuery.each( check_regExp, function( wdid, exp ) { var element = "#wdform_" + wdid + "_element" + form_id; var RegExpression = ""; var rules = unescape(exp[0]); (exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]); if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')){ if (RegExpression.test(jQuery(element).val()) != true){ jQuery("#form"+form_id+" #wd_exp_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"); find_wrong_exp = true; if(!regExpObj){ scroll_on_element(form_id); } } } } }); if(find_wrong_exp === false) return true; return false; } function formOnload19() { if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) { jQuery("#form19").find(jQuery("input[type='radio']")).click(function() {jQuery("input[type='radio']+label").removeClass('if-ie-div-label'); jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); jQuery("#form19").find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); jQuery("#form19").find(jQuery("input[type='checkbox']")).click(function() {jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); jQuery("#form19").find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } jQuery.each( check_regExp_all19, function( wdid, exp ) { var exp_array = {}; exp_array[wdid] = exp; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(19, exp_array)}).focus(function() {jQuery("#form"+19+" #wd_exp_"+wdid).remove(); jQuery("#form"+19+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")}); }); jQuery.each( spinner_check19, function( wdid, spinner_min_max ) { var spinner_min_max_array = {}; spinner_min_max_array[wdid] = spinner_min_max; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_spinner_check(19, spinner_min_max_array)}).focus(function() {jQuery("#form"+19+" #wd_price_"+wdid).remove(); jQuery("#form"+19+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")}); }); jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity").keypress(function(evt) {return check_isnum(evt)}); jQuery("div[type='type_grading'] input").keypress(function(evt) {return check_isnum_or_minus(evt)}); jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(19)}); jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input").change(function() {set_total_value(19)}); jQuery(".wdform-quantity").change(function() {set_total_value(19)}); jQuery("div[type='type_address'] select").change(function() {set_total_value(19)}); jQuery("div[type='type_time'] input").blur(function() {add_0(this)}); jQuery('.wdform-element-section').each(function() { if(!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width())!=0) { if(jQuery(this).css('display')=="table-cell") { if(jQuery(this).parent().attr('type')!="type_captcha") jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); else jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } if (!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width()) != 0) { if (jQuery(this).css('display') == "table-cell") { if (jQuery(this).parent().attr('type') != "type_captcha") { jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } else { jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } } if(parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', ''))-10); }); jQuery('.wdform-label').each(function() { if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) { jQuery(this).parent().css('max-width',jQuery(this).parent().width()); jQuery(this).parent().css('width',''); } }); (function(jQuery){ jQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = jQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = jQuery(allElems[parseInt(random)]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ jQuery(this).replaceWith(jQuery(shuffled[i])); }); return jQuery(shuffled); }; })(jQuery); if(window.before_load) { before_load(); } } jQuery(window).load(function () { formOnload19(); }); form_view_count19=0; jQuery(document).ready(function () { for(i=1; i<=30; i++) { if (document.getElementById('19form_view'+i)) { form_view_count19++; form_view_max19 = i; } } if (form_view_count19 > 1) { for (i = 1; i <= form_view_max19; i++) { if (document.getElementById('19form_view' + i)) { first_form_view19 = i; break; } } generate_page_nav(first_form_view19, '19', form_view_count19, form_view_max19); } }); function check_required19(but_type, form_id) { if (but_type == 'reset') { if (window.before_reset) { before_reset(); } jQuery.each(window['labels_and_ids'+form_id], function (index, elem) { switch(elem) { case "type_text": case "type_textarea": case "type_number": case "type_spinner": case 'type_own_select': case 'type_country': case 'type_date': case 'type_date_new': case 'type_hidden': jQuery("#wdform_"+index+"_element"+form_id).val(''); break; case 'type_submitter_mail': case 'type_password': jQuery("#wdform_"+index+"_element"+form_id).val(''); if(jQuery("#wdform_"+index+"_1_element"+form_id)){ jQuery("#wdform_"+index+"_1_element"+form_id).val(''); if(jQuery("#confirm_"+index+"_"+form_id)) jQuery("#confirm_"+index+"_"+form_id).remove(); if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id)) jQuery("#check_email_"+index+"_"+form_id).remove(); } break; case 'type_date_range': jQuery("#wdform_"+index+"_element"+form_id+"0").val(''); jQuery("#wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_send_copy': jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false); break; case 'type_phone': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val(''); break; case 'type_name': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val(''); break; case 'type_address': jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val(''); break; case 'type_checkbox': jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_radio': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_time': jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val(''); break; case 'type_date_fields': jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val(''); break; case 'type_file_upload': jQuery("#wdform_"+index+"_element"+form_id+"_save").remove(); break; case 'type_star_rating': jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(''); jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', plugin_url+'/images/star.png'); break; case 'type_scale_rating': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_slider': jQuery("#wdform_"+index+"_element"+form_id).slider({ value: eval(0), }); jQuery("#wdform_"+index+"_element_value"+form_id).html('0'); break; case 'type_range': jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_grading': jQuery("#wdform_"+index+"_element"+form_id+" input").val(''); break; case 'type_matrix': jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(''); jQuery("#wdform_"+index+"_element"+form_id+" select").val(''); break; case 'type_paypal_total': jQuery("#wdform_"+index+"div_total"+form_id).html('$0'); jQuery("#wdform_"+index+"paypal_products"+form_id).empty(); break; default: break; } }); return; } if (window.before_submit) { if(before_submit()) return false; } if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#form19"); var a = []; if (typeof a[19] !== 'undefined' && a[19] == 1) { return; } jQuery("<input type=\"hidden\" name=\"wdform_7_allow_other19\" value = \"no\" />").appendTo("#form19"); jQuery("<input type=\"hidden\" name=\"wdform_7_allow_other_num19\" value = \"0\" />").appendTo("#form19"); jQuery("<input type=\"hidden\" name=\"wdform_8_allow_other19\" value = \"no\" />").appendTo("#form19"); jQuery("<input type=\"hidden\" name=\"wdform_8_allow_other_num19\" value = \"0\" />").appendTo("#form19"); var disabled_fields =""; jQuery("div[wdid]").each(function() { if(jQuery(this).css("display")=="none") { disabled_fields += jQuery(this).attr("wdid"); disabled_fields += ","; } if(disabled_fields) jQuery("<input type=\"hidden\" name=\"disabled_fields19\" value =\""+disabled_fields+"\" />").appendTo("#form19"); }); a[19] = 1; document.getElementById("form"+19).submit(); } function check19(id, form_id) { if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#19form_view"+id); return true; } </script></br><script type="text/javascript"> function before_load() { } function before_submit() { } function before_reset() { }</script></br><script type="text/javascript"> var plugin_url = "http://www.morigenos.org/wp-content/plugins/form-maker"; WDF_GRADING_TEXT ='Your score should be less than'; WDF_INVALID_GRADING_18 = 'Your score should be less than'; FormCurrency_18 = '$'; FormPaypalTax_18 = '0'; var check_submit18 = 0; var check_before_submit18 = {}; var required_fields18 = ["1","13","14"]; var labels_and_ids18 = {"1":"type_address","7":"type_address","13":"type_own_select","14":"type_radio","15":"type_editor","16":"type_textarea","17":"type_submit_reset"}; var check_regExp_all18 = []; var file_upload_check18 = []; var spinner_check18 = []; function wd_spinner_check(form_id, spinner_check_field){ var x = jQuery("#form" + form_id); var find_wrong_values = false; var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id]; jQuery.each( spinner_check, function( wdid, spinner_values ) { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) { jQuery("#form"+form_id+" #wd_price_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + "Value must be between " + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"); find_wrong_values = true; if(!spinner_check_field){ scroll_on_element(form_id); } } } }); if(find_wrong_values === false) return true; return false; } function wd_is_filled(form_id, field_id){ var x = jQuery("#form" + form_id); var req_fields = field_id ? field_id.split() : window['required_fields'+form_id]; var not_filled = {}; jQuery(req_fields).each(function(index, wdid){ if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) { switch(window['labels_and_ids'+form_id][wdid]){ case 'type_text': case 'type_textarea': case 'type_spinner': case 'type_number': case 'type_submitter_mail': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_own_select': case 'type_country': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_phone': { var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_name': { var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_address': { var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_checkbox': case 'type_radio': case 'type_scale_rating': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); }); } break; } case 'type_star_rating': { var element = "#wdform_" + wdid + "_selected_star_amount" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){ if(jQuery(element).val() != ""){ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); } break; } case 'type_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_grading': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_grading = 0; jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ if(jQuery(this).val() != "") count_grading ++; }); if(count_grading == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ jQuery(this).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } break; } case 'type_slider': { var slider_element = "#wdform_" + wdid + "_element" + form_id; var element = "#wdform_" + wdid + "_slider_value" + form_id; var min_value = "#wdform_" + wdid + "_element_min" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(min_value).html()){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(slider_element).slider({ change: function( event, ui ) { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); wd_is_filled(form_id, wdid); } }); } break; } case 'type_date': case 'type_date_new': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_date_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_date_fields': { var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_time': { var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_password': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_matrix': { if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); }); } } else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_input_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ if(jQuery(this).val() != "") count_input_matrix ++; }); if(count_input_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this) .focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }) .blur(function() { wd_is_filled(form_id, wdid); }); }); } } else{ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_select_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ if(jQuery(this).val() != "") count_select_matrix ++; }); if(count_select_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ jQuery(this).focus(function() { if(jQuery(this).val() == ""){ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }).change(function() { wd_is_filled(form_id, wdid); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } } break; } case 'type_send_copy': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); } break; } case 'type_captcha': case 'type_arithmetic_captcha':{ var element = ""; if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') element = '#wd_captcha_input' + form_id; else element = '#wd_arithmetic_captcha_input' + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } } } }); if(Object.keys(not_filled).length === 0 && Object.keys(window["check_before_submit" + form_id]).length === 0){ return true; } else { if(Object.keys(not_filled).length !== 0){ jQuery.each( not_filled, function( wdid, elem ) { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>Field is required</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label"); }); } if(!field_id){ scroll_on_element(form_id); } window['check_submit'+form_id] = 1; return false; } } function scroll_on_element(form_id){ var parent_div = jQuery("#form" + form_id + " .fm-not-filled:first").closest(".wdform_row"); var body_hight = document.body.clientHeight; var element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; var scrollChecker = function() { if(document.body.clientHeight !== body_hight ){ body_hight = document.body.clientHeight; element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; console.log(element_offset); jQuery('html body').stop(); animateBodyToError(); } }; jQuery(window).on("scroll",scrollChecker); function animateBodyToError(){ jQuery('html body').animate({ scrollTop: element_offset - 150 }, 500, function(){ jQuery(window).off("scroll", scrollChecker); old_bg=jQuery(parent_div).css("background-color"); jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); }); } animateBodyToError(); } function wd_check_regExp(form_id, regExpObj){ var x = jQuery("#form" + form_id); var find_wrong_exp = false; var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id]; jQuery.each( check_regExp, function( wdid, exp ) { var element = "#wdform_" + wdid + "_element" + form_id; var RegExpression = ""; var rules = unescape(exp[0]); (exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]); if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')){ if (RegExpression.test(jQuery(element).val()) != true){ jQuery("#form"+form_id+" #wd_exp_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"); find_wrong_exp = true; if(!regExpObj){ scroll_on_element(form_id); } } } } }); if(find_wrong_exp === false) return true; return false; } function formOnload18() { if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) { jQuery("#form18").find(jQuery("input[type='radio']")).click(function() {jQuery("input[type='radio']+label").removeClass('if-ie-div-label'); jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); jQuery("#form18").find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); jQuery("#form18").find(jQuery("input[type='checkbox']")).click(function() {jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); jQuery("#form18").find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } jQuery.each( check_regExp_all18, function( wdid, exp ) { var exp_array = {}; exp_array[wdid] = exp; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(18, exp_array)}).focus(function() {jQuery("#form"+18+" #wd_exp_"+wdid).remove(); jQuery("#form"+18+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")}); }); jQuery.each( spinner_check18, function( wdid, spinner_min_max ) { var spinner_min_max_array = {}; spinner_min_max_array[wdid] = spinner_min_max; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_spinner_check(18, spinner_min_max_array)}).focus(function() {jQuery("#form"+18+" #wd_price_"+wdid).remove(); jQuery("#form"+18+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")}); }); jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity").keypress(function(evt) {return check_isnum(evt)}); jQuery("div[type='type_grading'] input").keypress(function(evt) {return check_isnum_or_minus(evt)}); jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(18)}); jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input").change(function() {set_total_value(18)}); jQuery(".wdform-quantity").change(function() {set_total_value(18)}); jQuery("div[type='type_address'] select").change(function() {set_total_value(18)}); jQuery("div[type='type_time'] input").blur(function() {add_0(this)}); jQuery('.wdform-element-section').each(function() { if(!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width())!=0) { if(jQuery(this).css('display')=="table-cell") { if(jQuery(this).parent().attr('type')!="type_captcha") jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); else jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } if (!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width()) != 0) { if (jQuery(this).css('display') == "table-cell") { if (jQuery(this).parent().attr('type') != "type_captcha") { jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } else { jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } } if(parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', ''))-10); }); jQuery('.wdform-label').each(function() { if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) { jQuery(this).parent().css('max-width',jQuery(this).parent().width()); jQuery(this).parent().css('width',''); } }); (function(jQuery){ jQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = jQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = jQuery(allElems[parseInt(random)]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ jQuery(this).replaceWith(jQuery(shuffled[i])); }); return jQuery(shuffled); }; })(jQuery); if(window.before_load) { before_load(); } } jQuery(window).load(function () { formOnload18(); }); form_view_count18=0; jQuery(document).ready(function () { for(i=1; i<=30; i++) { if (document.getElementById('18form_view'+i)) { form_view_count18++; form_view_max18 = i; } } if (form_view_count18 > 1) { for (i = 1; i <= form_view_max18; i++) { if (document.getElementById('18form_view' + i)) { first_form_view18 = i; break; } } generate_page_nav(first_form_view18, '18', form_view_count18, form_view_max18); } }); function check_required18(but_type, form_id) { if (but_type == 'reset') { if (window.before_reset) { before_reset(); } jQuery.each(window['labels_and_ids'+form_id], function (index, elem) { switch(elem) { case "type_text": case "type_textarea": case "type_number": case "type_spinner": case 'type_own_select': case 'type_country': case 'type_date': case 'type_date_new': case 'type_hidden': jQuery("#wdform_"+index+"_element"+form_id).val(''); break; case 'type_submitter_mail': case 'type_password': jQuery("#wdform_"+index+"_element"+form_id).val(''); if(jQuery("#wdform_"+index+"_1_element"+form_id)){ jQuery("#wdform_"+index+"_1_element"+form_id).val(''); if(jQuery("#confirm_"+index+"_"+form_id)) jQuery("#confirm_"+index+"_"+form_id).remove(); if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id)) jQuery("#check_email_"+index+"_"+form_id).remove(); } break; case 'type_date_range': jQuery("#wdform_"+index+"_element"+form_id+"0").val(''); jQuery("#wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_send_copy': jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false); break; case 'type_phone': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val(''); break; case 'type_name': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val(''); break; case 'type_address': jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val(''); break; case 'type_checkbox': jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_radio': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_time': jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val(''); break; case 'type_date_fields': jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val(''); break; case 'type_file_upload': jQuery("#wdform_"+index+"_element"+form_id+"_save").remove(); break; case 'type_star_rating': jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(''); jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', plugin_url+'/images/star.png'); break; case 'type_scale_rating': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_slider': jQuery("#wdform_"+index+"_element"+form_id).slider({ value: eval(0), }); jQuery("#wdform_"+index+"_element_value"+form_id).html('0'); break; case 'type_range': jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_grading': jQuery("#wdform_"+index+"_element"+form_id+" input").val(''); break; case 'type_matrix': jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(''); jQuery("#wdform_"+index+"_element"+form_id+" select").val(''); break; case 'type_paypal_total': jQuery("#wdform_"+index+"div_total"+form_id).html('$0'); jQuery("#wdform_"+index+"paypal_products"+form_id).empty(); break; default: break; } }); return; } if (window.before_submit) { if(before_submit()) return false; } if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#form18"); var a = []; if (typeof a[18] !== 'undefined' && a[18] == 1) { return; } jQuery("<input type=\"hidden\" name=\"wdform_14_allow_other18\" value = \"no\" />").appendTo("#form18"); jQuery("<input type=\"hidden\" name=\"wdform_14_allow_other_num18\" value = \"0\" />").appendTo("#form18"); var disabled_fields =""; jQuery("div[wdid]").each(function() { if(jQuery(this).css("display")=="none") { disabled_fields += jQuery(this).attr("wdid"); disabled_fields += ","; } if(disabled_fields) jQuery("<input type=\"hidden\" name=\"disabled_fields18\" value =\""+disabled_fields+"\" />").appendTo("#form18"); }); a[18] = 1; document.getElementById("form"+18).submit(); } function check18(id, form_id) { if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#18form_view"+id); return true; } </script></br><script type="text/javascript"> function before_load() { } function before_submit() { } function before_reset() { }</script></br><script type="text/javascript"> var plugin_url = "http://www.morigenos.org/wp-content/plugins/form-maker"; WDF_GRADING_TEXT ='Your score should be less than'; WDF_INVALID_GRADING_17 = 'Your score should be less than'; FormCurrency_17 = '$'; FormPaypalTax_17 = '0'; var check_submit17 = 0; var check_before_submit17 = {}; var required_fields17 = ["1","2","8","9"]; var labels_and_ids17 = {"1":"type_name","2":"type_address","8":"type_submitter_mail","9":"type_radio","10":"type_editor","11":"type_textarea","12":"type_submit_reset"}; var check_regExp_all17 = []; var file_upload_check17 = []; var spinner_check17 = []; function wd_spinner_check(form_id, spinner_check_field){ var x = jQuery("#form" + form_id); var find_wrong_values = false; var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id]; jQuery.each( spinner_check, function( wdid, spinner_values ) { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) { jQuery("#form"+form_id+" #wd_price_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + "Value must be between " + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"); find_wrong_values = true; if(!spinner_check_field){ scroll_on_element(form_id); } } } }); if(find_wrong_values === false) return true; return false; } function wd_is_filled(form_id, field_id){ var x = jQuery("#form" + form_id); var req_fields = field_id ? field_id.split() : window['required_fields'+form_id]; var not_filled = {}; jQuery(req_fields).each(function(index, wdid){ if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) { switch(window['labels_and_ids'+form_id][wdid]){ case 'type_text': case 'type_textarea': case 'type_spinner': case 'type_number': case 'type_submitter_mail': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_own_select': case 'type_country': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_phone': { var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_name': { var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_address': { var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_checkbox': case 'type_radio': case 'type_scale_rating': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); }); } break; } case 'type_star_rating': { var element = "#wdform_" + wdid + "_selected_star_amount" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){ if(jQuery(element).val() != ""){ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); } break; } case 'type_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_grading': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_grading = 0; jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ if(jQuery(this).val() != "") count_grading ++; }); if(count_grading == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ jQuery(this).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } break; } case 'type_slider': { var slider_element = "#wdform_" + wdid + "_element" + form_id; var element = "#wdform_" + wdid + "_slider_value" + form_id; var min_value = "#wdform_" + wdid + "_element_min" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(min_value).html()){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(slider_element).slider({ change: function( event, ui ) { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); wd_is_filled(form_id, wdid); } }); } break; } case 'type_date': case 'type_date_new': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_date_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_date_fields': { var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_time': { var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_password': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_matrix': { if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); }); } } else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_input_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ if(jQuery(this).val() != "") count_input_matrix ++; }); if(count_input_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this) .focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }) .blur(function() { wd_is_filled(form_id, wdid); }); }); } } else{ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_select_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ if(jQuery(this).val() != "") count_select_matrix ++; }); if(count_select_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ jQuery(this).focus(function() { if(jQuery(this).val() == ""){ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }).change(function() { wd_is_filled(form_id, wdid); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } } break; } case 'type_send_copy': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); } break; } case 'type_captcha': case 'type_arithmetic_captcha':{ var element = ""; if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') element = '#wd_captcha_input' + form_id; else element = '#wd_arithmetic_captcha_input' + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } } } }); if(Object.keys(not_filled).length === 0 && Object.keys(window["check_before_submit" + form_id]).length === 0){ return true; } else { if(Object.keys(not_filled).length !== 0){ jQuery.each( not_filled, function( wdid, elem ) { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>Field is required</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label"); }); } if(!field_id){ scroll_on_element(form_id); } window['check_submit'+form_id] = 1; return false; } } function scroll_on_element(form_id){ var parent_div = jQuery("#form" + form_id + " .fm-not-filled:first").closest(".wdform_row"); var body_hight = document.body.clientHeight; var element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; var scrollChecker = function() { if(document.body.clientHeight !== body_hight ){ body_hight = document.body.clientHeight; element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; console.log(element_offset); jQuery('html body').stop(); animateBodyToError(); } }; jQuery(window).on("scroll",scrollChecker); function animateBodyToError(){ jQuery('html body').animate({ scrollTop: element_offset - 150 }, 500, function(){ jQuery(window).off("scroll", scrollChecker); old_bg=jQuery(parent_div).css("background-color"); jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); }); } animateBodyToError(); } function wd_check_regExp(form_id, regExpObj){ var x = jQuery("#form" + form_id); var find_wrong_exp = false; var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id]; jQuery.each( check_regExp, function( wdid, exp ) { var element = "#wdform_" + wdid + "_element" + form_id; var RegExpression = ""; var rules = unescape(exp[0]); (exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]); if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')){ if (RegExpression.test(jQuery(element).val()) != true){ jQuery("#form"+form_id+" #wd_exp_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"); find_wrong_exp = true; if(!regExpObj){ scroll_on_element(form_id); } } } } }); if(find_wrong_exp === false) return true; return false; } function formOnload17() { if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) { jQuery("#form17").find(jQuery("input[type='radio']")).click(function() {jQuery("input[type='radio']+label").removeClass('if-ie-div-label'); jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); jQuery("#form17").find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); jQuery("#form17").find(jQuery("input[type='checkbox']")).click(function() {jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); jQuery("#form17").find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } jQuery.each( check_regExp_all17, function( wdid, exp ) { var exp_array = {}; exp_array[wdid] = exp; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(17, exp_array)}).focus(function() {jQuery("#form"+17+" #wd_exp_"+wdid).remove(); jQuery("#form"+17+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")}); }); jQuery.each( spinner_check17, function( wdid, spinner_min_max ) { var spinner_min_max_array = {}; spinner_min_max_array[wdid] = spinner_min_max; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_spinner_check(17, spinner_min_max_array)}).focus(function() {jQuery("#form"+17+" #wd_price_"+wdid).remove(); jQuery("#form"+17+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")}); }); jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity").keypress(function(evt) {return check_isnum(evt)}); jQuery("div[type='type_grading'] input").keypress(function(evt) {return check_isnum_or_minus(evt)}); jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(17)}); jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input").change(function() {set_total_value(17)}); jQuery(".wdform-quantity").change(function() {set_total_value(17)}); jQuery("div[type='type_address'] select").change(function() {set_total_value(17)}); jQuery("div[type='type_time'] input").blur(function() {add_0(this)}); jQuery('.wdform-element-section').each(function() { if(!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width())!=0) { if(jQuery(this).css('display')=="table-cell") { if(jQuery(this).parent().attr('type')!="type_captcha") jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); else jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } if (!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width()) != 0) { if (jQuery(this).css('display') == "table-cell") { if (jQuery(this).parent().attr('type') != "type_captcha") { jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } else { jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } } if(parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', ''))-10); }); jQuery('.wdform-label').each(function() { if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) { jQuery(this).parent().css('max-width',jQuery(this).parent().width()); jQuery(this).parent().css('width',''); } }); (function(jQuery){ jQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = jQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = jQuery(allElems[parseInt(random)]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ jQuery(this).replaceWith(jQuery(shuffled[i])); }); return jQuery(shuffled); }; })(jQuery); if(window.before_load) { before_load(); } } jQuery(window).load(function () { formOnload17(); }); form_view_count17=0; jQuery(document).ready(function () { for(i=1; i<=30; i++) { if (document.getElementById('17form_view'+i)) { form_view_count17++; form_view_max17 = i; } } if (form_view_count17 > 1) { for (i = 1; i <= form_view_max17; i++) { if (document.getElementById('17form_view' + i)) { first_form_view17 = i; break; } } generate_page_nav(first_form_view17, '17', form_view_count17, form_view_max17); } }); function check_required17(but_type, form_id) { if (but_type == 'reset') { if (window.before_reset) { before_reset(); } jQuery.each(window['labels_and_ids'+form_id], function (index, elem) { switch(elem) { case "type_text": case "type_textarea": case "type_number": case "type_spinner": case 'type_own_select': case 'type_country': case 'type_date': case 'type_date_new': case 'type_hidden': jQuery("#wdform_"+index+"_element"+form_id).val(''); break; case 'type_submitter_mail': case 'type_password': jQuery("#wdform_"+index+"_element"+form_id).val(''); if(jQuery("#wdform_"+index+"_1_element"+form_id)){ jQuery("#wdform_"+index+"_1_element"+form_id).val(''); if(jQuery("#confirm_"+index+"_"+form_id)) jQuery("#confirm_"+index+"_"+form_id).remove(); if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id)) jQuery("#check_email_"+index+"_"+form_id).remove(); } break; case 'type_date_range': jQuery("#wdform_"+index+"_element"+form_id+"0").val(''); jQuery("#wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_send_copy': jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false); break; case 'type_phone': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val(''); break; case 'type_name': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val(''); break; case 'type_address': jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val(''); break; case 'type_checkbox': jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_radio': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_time': jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val(''); break; case 'type_date_fields': jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val(''); break; case 'type_file_upload': jQuery("#wdform_"+index+"_element"+form_id+"_save").remove(); break; case 'type_star_rating': jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(''); jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', plugin_url+'/images/star.png'); break; case 'type_scale_rating': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_slider': jQuery("#wdform_"+index+"_element"+form_id).slider({ value: eval(0), }); jQuery("#wdform_"+index+"_element_value"+form_id).html('0'); break; case 'type_range': jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_grading': jQuery("#wdform_"+index+"_element"+form_id+" input").val(''); break; case 'type_matrix': jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(''); jQuery("#wdform_"+index+"_element"+form_id+" select").val(''); break; case 'type_paypal_total': jQuery("#wdform_"+index+"div_total"+form_id).html('$0'); jQuery("#wdform_"+index+"paypal_products"+form_id).empty(); break; default: break; } }); return; } if (window.before_submit) { if(before_submit()) return false; } if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#form17"); var a = []; if (typeof a[17] !== 'undefined' && a[17] == 1) { return; } jQuery("<input type=\"hidden\" name=\"wdform_9_allow_other17\" value = \"no\" />").appendTo("#form17"); jQuery("<input type=\"hidden\" name=\"wdform_9_allow_other_num17\" value = \"0\" />").appendTo("#form17"); var disabled_fields =""; jQuery("div[wdid]").each(function() { if(jQuery(this).css("display")=="none") { disabled_fields += jQuery(this).attr("wdid"); disabled_fields += ","; } if(disabled_fields) jQuery("<input type=\"hidden\" name=\"disabled_fields17\" value =\""+disabled_fields+"\" />").appendTo("#form17"); }); a[17] = 1; document.getElementById("form"+17).submit(); } function check17(id, form_id) { if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#17form_view"+id); return true; } </script></br><script type="text/javascript"> function before_load() { } function before_submit() { } function before_reset() { }</script></br><script type="text/javascript"> var plugin_url = "http://www.morigenos.org/wp-content/plugins/form-maker"; WDF_GRADING_TEXT ='Your score should be less than'; WDF_INVALID_GRADING_16 = 'Your score should be less than'; FormCurrency_16 = '$'; FormPaypalTax_16 = '0'; var check_submit16 = 0; var check_before_submit16 = {}; var required_fields16 = ["2","9","10"]; var labels_and_ids16 = {"2":"type_address","9":"type_checkbox","10":"type_checkbox","16":"type_address","24":"type_name","23":"type_textarea","13":"type_submit_reset"}; var check_regExp_all16 = []; var file_upload_check16 = []; var spinner_check16 = []; function wd_spinner_check(form_id, spinner_check_field){ var x = jQuery("#form" + form_id); var find_wrong_values = false; var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id]; jQuery.each( spinner_check, function( wdid, spinner_values ) { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) { jQuery("#form"+form_id+" #wd_price_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + "Value must be between " + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"); find_wrong_values = true; if(!spinner_check_field){ scroll_on_element(form_id); } } } }); if(find_wrong_values === false) return true; return false; } function wd_is_filled(form_id, field_id){ var x = jQuery("#form" + form_id); var req_fields = field_id ? field_id.split() : window['required_fields'+form_id]; var not_filled = {}; jQuery(req_fields).each(function(index, wdid){ if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) { switch(window['labels_and_ids'+form_id][wdid]){ case 'type_text': case 'type_textarea': case 'type_spinner': case 'type_number': case 'type_submitter_mail': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_own_select': case 'type_country': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_phone': { var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_name': { var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_address': { var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_checkbox': case 'type_radio': case 'type_scale_rating': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); }); } break; } case 'type_star_rating': { var element = "#wdform_" + wdid + "_selected_star_amount" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){ if(jQuery(element).val() != ""){ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); } break; } case 'type_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_grading': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_grading = 0; jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ if(jQuery(this).val() != "") count_grading ++; }); if(count_grading == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ jQuery(this).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } break; } case 'type_slider': { var slider_element = "#wdform_" + wdid + "_element" + form_id; var element = "#wdform_" + wdid + "_slider_value" + form_id; var min_value = "#wdform_" + wdid + "_element_min" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(min_value).html()){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(slider_element).slider({ change: function( event, ui ) { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); wd_is_filled(form_id, wdid); } }); } break; } case 'type_date': case 'type_date_new': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_date_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_date_fields': { var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_time': { var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_password': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_matrix': { if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); }); } } else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_input_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ if(jQuery(this).val() != "") count_input_matrix ++; }); if(count_input_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this) .focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }) .blur(function() { wd_is_filled(form_id, wdid); }); }); } } else{ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_select_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ if(jQuery(this).val() != "") count_select_matrix ++; }); if(count_select_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ jQuery(this).focus(function() { if(jQuery(this).val() == ""){ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }).change(function() { wd_is_filled(form_id, wdid); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } } break; } case 'type_send_copy': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); } break; } case 'type_captcha': case 'type_arithmetic_captcha':{ var element = ""; if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') element = '#wd_captcha_input' + form_id; else element = '#wd_arithmetic_captcha_input' + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } } } }); if(Object.keys(not_filled).length === 0 && Object.keys(window["check_before_submit" + form_id]).length === 0){ return true; } else { if(Object.keys(not_filled).length !== 0){ jQuery.each( not_filled, function( wdid, elem ) { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>Field is required</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label"); }); } if(!field_id){ scroll_on_element(form_id); } window['check_submit'+form_id] = 1; return false; } } function scroll_on_element(form_id){ var parent_div = jQuery("#form" + form_id + " .fm-not-filled:first").closest(".wdform_row"); var body_hight = document.body.clientHeight; var element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; var scrollChecker = function() { if(document.body.clientHeight !== body_hight ){ body_hight = document.body.clientHeight; element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; console.log(element_offset); jQuery('html body').stop(); animateBodyToError(); } }; jQuery(window).on("scroll",scrollChecker); function animateBodyToError(){ jQuery('html body').animate({ scrollTop: element_offset - 150 }, 500, function(){ jQuery(window).off("scroll", scrollChecker); old_bg=jQuery(parent_div).css("background-color"); jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); }); } animateBodyToError(); } function wd_check_regExp(form_id, regExpObj){ var x = jQuery("#form" + form_id); var find_wrong_exp = false; var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id]; jQuery.each( check_regExp, function( wdid, exp ) { var element = "#wdform_" + wdid + "_element" + form_id; var RegExpression = ""; var rules = unescape(exp[0]); (exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]); if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')){ if (RegExpression.test(jQuery(element).val()) != true){ jQuery("#form"+form_id+" #wd_exp_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"); find_wrong_exp = true; if(!regExpObj){ scroll_on_element(form_id); } } } } }); if(find_wrong_exp === false) return true; return false; } function formOnload16() { if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) { jQuery("#form16").find(jQuery("input[type='radio']")).click(function() {jQuery("input[type='radio']+label").removeClass('if-ie-div-label'); jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); jQuery("#form16").find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); jQuery("#form16").find(jQuery("input[type='checkbox']")).click(function() {jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); jQuery("#form16").find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } jQuery.each( check_regExp_all16, function( wdid, exp ) { var exp_array = {}; exp_array[wdid] = exp; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(16, exp_array)}).focus(function() {jQuery("#form"+16+" #wd_exp_"+wdid).remove(); jQuery("#form"+16+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")}); }); jQuery.each( spinner_check16, function( wdid, spinner_min_max ) { var spinner_min_max_array = {}; spinner_min_max_array[wdid] = spinner_min_max; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_spinner_check(16, spinner_min_max_array)}).focus(function() {jQuery("#form"+16+" #wd_price_"+wdid).remove(); jQuery("#form"+16+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")}); }); jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity").keypress(function(evt) {return check_isnum(evt)}); jQuery("div[type='type_grading'] input").keypress(function(evt) {return check_isnum_or_minus(evt)}); jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(16)}); jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input").change(function() {set_total_value(16)}); jQuery(".wdform-quantity").change(function() {set_total_value(16)}); jQuery("div[type='type_address'] select").change(function() {set_total_value(16)}); jQuery("div[type='type_time'] input").blur(function() {add_0(this)}); jQuery('.wdform-element-section').each(function() { if(!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width())!=0) { if(jQuery(this).css('display')=="table-cell") { if(jQuery(this).parent().attr('type')!="type_captcha") jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); else jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } if (!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width()) != 0) { if (jQuery(this).css('display') == "table-cell") { if (jQuery(this).parent().attr('type') != "type_captcha") { jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } else { jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } } if(parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', ''))-10); }); jQuery('.wdform-label').each(function() { if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) { jQuery(this).parent().css('max-width',jQuery(this).parent().width()); jQuery(this).parent().css('width',''); } }); (function(jQuery){ jQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = jQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = jQuery(allElems[parseInt(random)]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ jQuery(this).replaceWith(jQuery(shuffled[i])); }); return jQuery(shuffled); }; })(jQuery); if(window.before_load) { before_load(); } } jQuery(window).load(function () { formOnload16(); }); form_view_count16=0; jQuery(document).ready(function () { for(i=1; i<=30; i++) { if (document.getElementById('16form_view'+i)) { form_view_count16++; form_view_max16 = i; } } if (form_view_count16 > 1) { for (i = 1; i <= form_view_max16; i++) { if (document.getElementById('16form_view' + i)) { first_form_view16 = i; break; } } generate_page_nav(first_form_view16, '16', form_view_count16, form_view_max16); } }); function check_required16(but_type, form_id) { if (but_type == 'reset') { if (window.before_reset) { before_reset(); } jQuery.each(window['labels_and_ids'+form_id], function (index, elem) { switch(elem) { case "type_text": case "type_textarea": case "type_number": case "type_spinner": case 'type_own_select': case 'type_country': case 'type_date': case 'type_date_new': case 'type_hidden': jQuery("#wdform_"+index+"_element"+form_id).val(''); break; case 'type_submitter_mail': case 'type_password': jQuery("#wdform_"+index+"_element"+form_id).val(''); if(jQuery("#wdform_"+index+"_1_element"+form_id)){ jQuery("#wdform_"+index+"_1_element"+form_id).val(''); if(jQuery("#confirm_"+index+"_"+form_id)) jQuery("#confirm_"+index+"_"+form_id).remove(); if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id)) jQuery("#check_email_"+index+"_"+form_id).remove(); } break; case 'type_date_range': jQuery("#wdform_"+index+"_element"+form_id+"0").val(''); jQuery("#wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_send_copy': jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false); break; case 'type_phone': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val(''); break; case 'type_name': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val(''); break; case 'type_address': jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val(''); break; case 'type_checkbox': jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_radio': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_time': jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val(''); break; case 'type_date_fields': jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val(''); break; case 'type_file_upload': jQuery("#wdform_"+index+"_element"+form_id+"_save").remove(); break; case 'type_star_rating': jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(''); jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', plugin_url+'/images/star.png'); break; case 'type_scale_rating': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_slider': jQuery("#wdform_"+index+"_element"+form_id).slider({ value: eval(0), }); jQuery("#wdform_"+index+"_element_value"+form_id).html('0'); break; case 'type_range': jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_grading': jQuery("#wdform_"+index+"_element"+form_id+" input").val(''); break; case 'type_matrix': jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(''); jQuery("#wdform_"+index+"_element"+form_id+" select").val(''); break; case 'type_paypal_total': jQuery("#wdform_"+index+"div_total"+form_id).html('$0'); jQuery("#wdform_"+index+"paypal_products"+form_id).empty(); break; default: break; } }); return; } if (window.before_submit) { if(before_submit()) return false; } if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#form16"); var a = []; if (typeof a[16] !== 'undefined' && a[16] == 1) { return; } jQuery("<input type=\"hidden\" name=\"wdform_9_allow_other16\" value = \"no\" />").appendTo("#form16"); jQuery("<input type=\"hidden\" name=\"wdform_9_allow_other_num16\" value = \"0\" />").appendTo("#form16"); jQuery("<input type=\"hidden\" name=\"wdform_10_allow_other16\" value = \"no\" />").appendTo("#form16"); jQuery("<input type=\"hidden\" name=\"wdform_10_allow_other_num16\" value = \"0\" />").appendTo("#form16"); var disabled_fields =""; jQuery("div[wdid]").each(function() { if(jQuery(this).css("display")=="none") { disabled_fields += jQuery(this).attr("wdid"); disabled_fields += ","; } if(disabled_fields) jQuery("<input type=\"hidden\" name=\"disabled_fields16\" value =\""+disabled_fields+"\" />").appendTo("#form16"); }); a[16] = 1; document.getElementById("form"+16).submit(); } function check16(id, form_id) { if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#16form_view"+id); return true; } </script></br><script type="text/javascript"> function before_load() { } function before_submit() { } function before_reset() { }</script></br><script type="text/javascript"> var plugin_url = "http://www.morigenos.org/wp-content/plugins/form-maker"; WDF_GRADING_TEXT ='Your score should be less than'; WDF_INVALID_GRADING_14 = 'Your score should be less than'; FormCurrency_14 = '$'; FormPaypalTax_14 = '0'; var check_submit14 = 0; var check_before_submit14 = {}; var required_fields14 = ["1","2","12"]; var labels_and_ids14 = {"1":"type_name","2":"type_address","14":"type_address","12":"type_radio","20":"type_editor","11":"type_textarea","13":"type_submit_reset"}; var check_regExp_all14 = []; var file_upload_check14 = []; var spinner_check14 = []; function wd_spinner_check(form_id, spinner_check_field){ var x = jQuery("#form" + form_id); var find_wrong_values = false; var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id]; jQuery.each( spinner_check, function( wdid, spinner_values ) { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) { jQuery("#form"+form_id+" #wd_price_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + "Value must be between " + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"); find_wrong_values = true; if(!spinner_check_field){ scroll_on_element(form_id); } } } }); if(find_wrong_values === false) return true; return false; } function wd_is_filled(form_id, field_id){ var x = jQuery("#form" + form_id); var req_fields = field_id ? field_id.split() : window['required_fields'+form_id]; var not_filled = {}; jQuery(req_fields).each(function(index, wdid){ if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) { switch(window['labels_and_ids'+form_id][wdid]){ case 'type_text': case 'type_textarea': case 'type_spinner': case 'type_number': case 'type_submitter_mail': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_own_select': case 'type_country': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_phone': { var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_name': { var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_address': { var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_checkbox': case 'type_radio': case 'type_scale_rating': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); }); } break; } case 'type_star_rating': { var element = "#wdform_" + wdid + "_selected_star_amount" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){ if(jQuery(element).val() != ""){ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); } break; } case 'type_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_grading': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_grading = 0; jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ if(jQuery(this).val() != "") count_grading ++; }); if(count_grading == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ jQuery(this).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } break; } case 'type_slider': { var slider_element = "#wdform_" + wdid + "_element" + form_id; var element = "#wdform_" + wdid + "_slider_value" + form_id; var min_value = "#wdform_" + wdid + "_element_min" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(min_value).html()){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(slider_element).slider({ change: function( event, ui ) { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); wd_is_filled(form_id, wdid); } }); } break; } case 'type_date': case 'type_date_new': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_date_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_date_fields': { var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_time': { var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_password': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_matrix': { if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); }); } } else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_input_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ if(jQuery(this).val() != "") count_input_matrix ++; }); if(count_input_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this) .focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }) .blur(function() { wd_is_filled(form_id, wdid); }); }); } } else{ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_select_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ if(jQuery(this).val() != "") count_select_matrix ++; }); if(count_select_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ jQuery(this).focus(function() { if(jQuery(this).val() == ""){ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }).change(function() { wd_is_filled(form_id, wdid); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } } break; } case 'type_send_copy': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); } break; } case 'type_captcha': case 'type_arithmetic_captcha':{ var element = ""; if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') element = '#wd_captcha_input' + form_id; else element = '#wd_arithmetic_captcha_input' + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } } } }); if(Object.keys(not_filled).length === 0 && Object.keys(window["check_before_submit" + form_id]).length === 0){ return true; } else { if(Object.keys(not_filled).length !== 0){ jQuery.each( not_filled, function( wdid, elem ) { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>Field is required</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label"); }); } if(!field_id){ scroll_on_element(form_id); } window['check_submit'+form_id] = 1; return false; } } function scroll_on_element(form_id){ var parent_div = jQuery("#form" + form_id + " .fm-not-filled:first").closest(".wdform_row"); var body_hight = document.body.clientHeight; var element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; var scrollChecker = function() { if(document.body.clientHeight !== body_hight ){ body_hight = document.body.clientHeight; element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; console.log(element_offset); jQuery('html body').stop(); animateBodyToError(); } }; jQuery(window).on("scroll",scrollChecker); function animateBodyToError(){ jQuery('html body').animate({ scrollTop: element_offset - 150 }, 500, function(){ jQuery(window).off("scroll", scrollChecker); old_bg=jQuery(parent_div).css("background-color"); jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); }); } animateBodyToError(); } function wd_check_regExp(form_id, regExpObj){ var x = jQuery("#form" + form_id); var find_wrong_exp = false; var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id]; jQuery.each( check_regExp, function( wdid, exp ) { var element = "#wdform_" + wdid + "_element" + form_id; var RegExpression = ""; var rules = unescape(exp[0]); (exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]); if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')){ if (RegExpression.test(jQuery(element).val()) != true){ jQuery("#form"+form_id+" #wd_exp_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"); find_wrong_exp = true; if(!regExpObj){ scroll_on_element(form_id); } } } } }); if(find_wrong_exp === false) return true; return false; } function formOnload14() { if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) { jQuery("#form14").find(jQuery("input[type='radio']")).click(function() {jQuery("input[type='radio']+label").removeClass('if-ie-div-label'); jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); jQuery("#form14").find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); jQuery("#form14").find(jQuery("input[type='checkbox']")).click(function() {jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); jQuery("#form14").find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } jQuery.each( check_regExp_all14, function( wdid, exp ) { var exp_array = {}; exp_array[wdid] = exp; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(14, exp_array)}).focus(function() {jQuery("#form"+14+" #wd_exp_"+wdid).remove(); jQuery("#form"+14+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")}); }); jQuery.each( spinner_check14, function( wdid, spinner_min_max ) { var spinner_min_max_array = {}; spinner_min_max_array[wdid] = spinner_min_max; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_spinner_check(14, spinner_min_max_array)}).focus(function() {jQuery("#form"+14+" #wd_price_"+wdid).remove(); jQuery("#form"+14+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")}); }); jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity").keypress(function(evt) {return check_isnum(evt)}); jQuery("div[type='type_grading'] input").keypress(function(evt) {return check_isnum_or_minus(evt)}); jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(14)}); jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input").change(function() {set_total_value(14)}); jQuery(".wdform-quantity").change(function() {set_total_value(14)}); jQuery("div[type='type_address'] select").change(function() {set_total_value(14)}); jQuery("div[type='type_time'] input").blur(function() {add_0(this)}); jQuery('.wdform-element-section').each(function() { if(!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width())!=0) { if(jQuery(this).css('display')=="table-cell") { if(jQuery(this).parent().attr('type')!="type_captcha") jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); else jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } if (!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width()) != 0) { if (jQuery(this).css('display') == "table-cell") { if (jQuery(this).parent().attr('type') != "type_captcha") { jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } else { jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } } if(parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', ''))-10); }); jQuery('.wdform-label').each(function() { if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) { jQuery(this).parent().css('max-width',jQuery(this).parent().width()); jQuery(this).parent().css('width',''); } }); (function(jQuery){ jQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = jQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = jQuery(allElems[parseInt(random)]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ jQuery(this).replaceWith(jQuery(shuffled[i])); }); return jQuery(shuffled); }; })(jQuery); if(window.before_load) { before_load(); } } jQuery(window).load(function () { formOnload14(); }); form_view_count14=0; jQuery(document).ready(function () { for(i=1; i<=30; i++) { if (document.getElementById('14form_view'+i)) { form_view_count14++; form_view_max14 = i; } } if (form_view_count14 > 1) { for (i = 1; i <= form_view_max14; i++) { if (document.getElementById('14form_view' + i)) { first_form_view14 = i; break; } } generate_page_nav(first_form_view14, '14', form_view_count14, form_view_max14); } }); function check_required14(but_type, form_id) { if (but_type == 'reset') { if (window.before_reset) { before_reset(); } jQuery.each(window['labels_and_ids'+form_id], function (index, elem) { switch(elem) { case "type_text": case "type_textarea": case "type_number": case "type_spinner": case 'type_own_select': case 'type_country': case 'type_date': case 'type_date_new': case 'type_hidden': jQuery("#wdform_"+index+"_element"+form_id).val(''); break; case 'type_submitter_mail': case 'type_password': jQuery("#wdform_"+index+"_element"+form_id).val(''); if(jQuery("#wdform_"+index+"_1_element"+form_id)){ jQuery("#wdform_"+index+"_1_element"+form_id).val(''); if(jQuery("#confirm_"+index+"_"+form_id)) jQuery("#confirm_"+index+"_"+form_id).remove(); if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id)) jQuery("#check_email_"+index+"_"+form_id).remove(); } break; case 'type_date_range': jQuery("#wdform_"+index+"_element"+form_id+"0").val(''); jQuery("#wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_send_copy': jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false); break; case 'type_phone': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val(''); break; case 'type_name': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val(''); break; case 'type_address': jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val(''); break; case 'type_checkbox': jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_radio': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_time': jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val(''); break; case 'type_date_fields': jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val(''); break; case 'type_file_upload': jQuery("#wdform_"+index+"_element"+form_id+"_save").remove(); break; case 'type_star_rating': jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(''); jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', plugin_url+'/images/star.png'); break; case 'type_scale_rating': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_slider': jQuery("#wdform_"+index+"_element"+form_id).slider({ value: eval(0), }); jQuery("#wdform_"+index+"_element_value"+form_id).html('0'); break; case 'type_range': jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_grading': jQuery("#wdform_"+index+"_element"+form_id+" input").val(''); break; case 'type_matrix': jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(''); jQuery("#wdform_"+index+"_element"+form_id+" select").val(''); break; case 'type_paypal_total': jQuery("#wdform_"+index+"div_total"+form_id).html('$0'); jQuery("#wdform_"+index+"paypal_products"+form_id).empty(); break; default: break; } }); return; } if (window.before_submit) { if(before_submit()) return false; } if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#form14"); var a = []; if (typeof a[14] !== 'undefined' && a[14] == 1) { return; } jQuery("<input type=\"hidden\" name=\"wdform_12_allow_other14\" value = \"no\" />").appendTo("#form14"); jQuery("<input type=\"hidden\" name=\"wdform_12_allow_other_num14\" value = \"0\" />").appendTo("#form14"); var disabled_fields =""; jQuery("div[wdid]").each(function() { if(jQuery(this).css("display")=="none") { disabled_fields += jQuery(this).attr("wdid"); disabled_fields += ","; } if(disabled_fields) jQuery("<input type=\"hidden\" name=\"disabled_fields14\" value =\""+disabled_fields+"\" />").appendTo("#form14"); }); a[14] = 1; document.getElementById("form"+14).submit(); } function check14(id, form_id) { if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#14form_view"+id); return true; } </script></br><script type="text/javascript"> function before_load() { } function before_submit() { } function before_reset() { }</script></br><script type="text/javascript"> var plugin_url = "http://www.morigenos.org/wp-content/plugins/form-maker"; WDF_GRADING_TEXT ='Your score should be less than'; WDF_INVALID_GRADING_3 = 'Your score should be less than'; FormCurrency_3 = '$'; FormPaypalTax_3 = '0'; var check_submit3 = 0; var check_before_submit3 = {}; var required_fields3 = ["25","2","3"]; var labels_and_ids3 = {"25":"type_address","32":"type_address","2":"type_own_select","3":"type_radio","38":"type_editor","31":"type_textarea","7":"type_submit_reset"}; var check_regExp_all3 = []; var file_upload_check3 = []; var spinner_check3 = []; function wd_spinner_check(form_id, spinner_check_field){ var x = jQuery("#form" + form_id); var find_wrong_values = false; var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id]; jQuery.each( spinner_check, function( wdid, spinner_values ) { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) { jQuery("#form"+form_id+" #wd_price_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + "Value must be between " + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"); find_wrong_values = true; if(!spinner_check_field){ scroll_on_element(form_id); } } } }); if(find_wrong_values === false) return true; return false; } function wd_is_filled(form_id, field_id){ var x = jQuery("#form" + form_id); var req_fields = field_id ? field_id.split() : window['required_fields'+form_id]; var not_filled = {}; jQuery(req_fields).each(function(index, wdid){ if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) { switch(window['labels_and_ids'+form_id][wdid]){ case 'type_text': case 'type_textarea': case 'type_spinner': case 'type_number': case 'type_submitter_mail': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_own_select': case 'type_country': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_phone': { var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_name': { var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_address': { var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_checkbox': case 'type_radio': case 'type_scale_rating': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); }); } break; } case 'type_star_rating': { var element = "#wdform_" + wdid + "_selected_star_amount" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){ if(jQuery(element).val() != ""){ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); } break; } case 'type_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_grading': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_grading = 0; jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ if(jQuery(this).val() != "") count_grading ++; }); if(count_grading == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ jQuery(this).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } break; } case 'type_slider': { var slider_element = "#wdform_" + wdid + "_element" + form_id; var element = "#wdform_" + wdid + "_slider_value" + form_id; var min_value = "#wdform_" + wdid + "_element_min" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(min_value).html()){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(slider_element).slider({ change: function( event, ui ) { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); wd_is_filled(form_id, wdid); } }); } break; } case 'type_date': case 'type_date_new': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_date_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_date_fields': { var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_time': { var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_password': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_matrix': { if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); }); } } else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_input_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ if(jQuery(this).val() != "") count_input_matrix ++; }); if(count_input_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this) .focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }) .blur(function() { wd_is_filled(form_id, wdid); }); }); } } else{ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_select_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ if(jQuery(this).val() != "") count_select_matrix ++; }); if(count_select_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ jQuery(this).focus(function() { if(jQuery(this).val() == ""){ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }).change(function() { wd_is_filled(form_id, wdid); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } } break; } case 'type_send_copy': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); } break; } case 'type_captcha': case 'type_arithmetic_captcha':{ var element = ""; if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') element = '#wd_captcha_input' + form_id; else element = '#wd_arithmetic_captcha_input' + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } } } }); if(Object.keys(not_filled).length === 0 && Object.keys(window["check_before_submit" + form_id]).length === 0){ return true; } else { if(Object.keys(not_filled).length !== 0){ jQuery.each( not_filled, function( wdid, elem ) { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>Field is required</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label"); }); } if(!field_id){ scroll_on_element(form_id); } window['check_submit'+form_id] = 1; return false; } } function scroll_on_element(form_id){ var parent_div = jQuery("#form" + form_id + " .fm-not-filled:first").closest(".wdform_row"); var body_hight = document.body.clientHeight; var element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; var scrollChecker = function() { if(document.body.clientHeight !== body_hight ){ body_hight = document.body.clientHeight; element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled:first")).offset().top; console.log(element_offset); jQuery('html body').stop(); animateBodyToError(); } }; jQuery(window).on("scroll",scrollChecker); function animateBodyToError(){ jQuery('html body').animate({ scrollTop: element_offset - 150 }, 500, function(){ jQuery(window).off("scroll", scrollChecker); old_bg=jQuery(parent_div).css("background-color"); jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); }); } animateBodyToError(); } function wd_check_regExp(form_id, regExpObj){ var x = jQuery("#form" + form_id); var find_wrong_exp = false; var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id]; jQuery.each( check_regExp, function( wdid, exp ) { var element = "#wdform_" + wdid + "_element" + form_id; var RegExpression = ""; var rules = unescape(exp[0]); (exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]); if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") { if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')){ if (RegExpression.test(jQuery(element).val()) != true){ jQuery("#form"+form_id+" #wd_exp_"+wdid).remove(); x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"); find_wrong_exp = true; if(!regExpObj){ scroll_on_element(form_id); } } } } }); if(find_wrong_exp === false) return true; return false; } function formOnload3() { if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) { jQuery("#form3").find(jQuery("input[type='radio']")).click(function() {jQuery("input[type='radio']+label").removeClass('if-ie-div-label'); jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); jQuery("#form3").find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); jQuery("#form3").find(jQuery("input[type='checkbox']")).click(function() {jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); jQuery("#form3").find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } jQuery.each( check_regExp_all3, function( wdid, exp ) { var exp_array = {}; exp_array[wdid] = exp; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(3, exp_array)}).focus(function() {jQuery("#form"+3+" #wd_exp_"+wdid).remove(); jQuery("#form"+3+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")}); }); jQuery.each( spinner_check3, function( wdid, spinner_min_max ) { var spinner_min_max_array = {}; spinner_min_max_array[wdid] = spinner_min_max; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_spinner_check(3, spinner_min_max_array)}).focus(function() {jQuery("#form"+3+" #wd_price_"+wdid).remove(); jQuery("#form"+3+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")}); }); jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity").keypress(function(evt) {return check_isnum(evt)}); jQuery("div[type='type_grading'] input").keypress(function(evt) {return check_isnum_or_minus(evt)}); jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(3)}); jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input").change(function() {set_total_value(3)}); jQuery(".wdform-quantity").change(function() {set_total_value(3)}); jQuery("div[type='type_address'] select").change(function() {set_total_value(3)}); jQuery("div[type='type_time'] input").blur(function() {add_0(this)}); jQuery('.wdform-element-section').each(function() { if(!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width())!=0) { if(jQuery(this).css('display')=="table-cell") { if(jQuery(this).parent().attr('type')!="type_captcha") jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); else jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } if (!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width()) != 0) { if (jQuery(this).css('display') == "table-cell") { if (jQuery(this).parent().attr('type') != "type_captcha") { jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } else { jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } } if(parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', ''))-10); }); jQuery('.wdform-label').each(function() { if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) { jQuery(this).parent().css('max-width',jQuery(this).parent().width()); jQuery(this).parent().css('width',''); } }); (function(jQuery){ jQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = jQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = jQuery(allElems[parseInt(random)]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ jQuery(this).replaceWith(jQuery(shuffled[i])); }); return jQuery(shuffled); }; })(jQuery); if(window.before_load) { before_load(); } } jQuery(window).load(function () { formOnload3(); }); form_view_count3=0; jQuery(document).ready(function () { for(i=1; i<=30; i++) { if (document.getElementById('3form_view'+i)) { form_view_count3++; form_view_max3 = i; } } if (form_view_count3 > 1) { for (i = 1; i <= form_view_max3; i++) { if (document.getElementById('3form_view' + i)) { first_form_view3 = i; break; } } generate_page_nav(first_form_view3, '3', form_view_count3, form_view_max3); } }); function check_required3(but_type, form_id) { if (but_type == 'reset') { if (window.before_reset) { before_reset(); } jQuery.each(window['labels_and_ids'+form_id], function (index, elem) { switch(elem) { case "type_text": case "type_textarea": case "type_number": case "type_spinner": case 'type_own_select': case 'type_country': case 'type_date': case 'type_date_new': case 'type_hidden': jQuery("#wdform_"+index+"_element"+form_id).val(''); break; case 'type_submitter_mail': case 'type_password': jQuery("#wdform_"+index+"_element"+form_id).val(''); if(jQuery("#wdform_"+index+"_1_element"+form_id)){ jQuery("#wdform_"+index+"_1_element"+form_id).val(''); if(jQuery("#confirm_"+index+"_"+form_id)) jQuery("#confirm_"+index+"_"+form_id).remove(); if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id)) jQuery("#check_email_"+index+"_"+form_id).remove(); } break; case 'type_date_range': jQuery("#wdform_"+index+"_element"+form_id+"0").val(''); jQuery("#wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_send_copy': jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false); break; case 'type_phone': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val(''); break; case 'type_name': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val(''); break; case 'type_address': jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val(''); break; case 'type_checkbox': jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_radio': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_time': jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val(''); break; case 'type_date_fields': jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val(''); break; case 'type_file_upload': jQuery("#wdform_"+index+"_element"+form_id+"_save").remove(); break; case 'type_star_rating': jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(''); jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', plugin_url+'/images/star.png'); break; case 'type_scale_rating': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_slider': jQuery("#wdform_"+index+"_element"+form_id).slider({ value: eval(0), }); jQuery("#wdform_"+index+"_element_value"+form_id).html('0'); break; case 'type_range': jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_grading': jQuery("#wdform_"+index+"_element"+form_id+" input").val(''); break; case 'type_matrix': jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(''); jQuery("#wdform_"+index+"_element"+form_id+" select").val(''); break; case 'type_paypal_total': jQuery("#wdform_"+index+"div_total"+form_id).html('$0'); jQuery("#wdform_"+index+"paypal_products"+form_id).empty(); break; default: break; } }); return; } if (window.before_submit) { if(before_submit()) return false; } if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#form3"); var a = []; if (typeof a[3] !== 'undefined' && a[3] == 1) { return; } jQuery("<input type=\"hidden\" name=\"wdform_3_allow_other3\" value = \"no\" />").appendTo("#form3"); jQuery("<input type=\"hidden\" name=\"wdform_3_allow_other_num3\" value = \"0\" />").appendTo("#form3"); var disabled_fields =""; jQuery("div[wdid]").each(function() { if(jQuery(this).css("display")=="none") { disabled_fields += jQuery(this).attr("wdid"); disabled_fields += ","; } if(disabled_fields) jQuery("<input type=\"hidden\" name=\"disabled_fields3\" value =\""+disabled_fields+"\" />").appendTo("#form3"); }); a[3] = 1; document.getElementById("form"+3).submit(); } function check3(id, form_id) { if(!wd_is_filled(form_id)) return false; if(!wd_check_regExp(form_id)) return false; if(!wd_spinner_check(form_id)) return false; x = jQuery("#3form_view"+id); return true; } </script></br><script type="text/javascript"> function before_load(){ } function before_submit(){ } function before_reset(){ }</script></br><script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script></br><script language="javascript" type="text/javascript">var kpg_cell="N";var kpg_nrci_image="http://www.morigenos.org/wp-content/plugins/no-right-click-images-plugin/not.gif";var kpg_nrci_extra="N";var kpg_nrci_drag="Y";</script></br><script language="javascript" type="text/javascript" src="http://www.morigenos.org/wp-content/plugins/no-right-click-images-plugin/no-right-click-images.js"></script></br><script> ( function ( body ) { 'use strict'; body.className = body.className.replace( /\btribe-no-js\b/, 'tribe-js' ); } )( document.body ); </script></br><script type='text/javascript'> /* <![CDATA[ */var tribe_l10n_datatables = {"aria":{"sort_ascending":": activate to sort column ascending","sort_descending":": activate to sort column descending"},"length_menu":"Show _MENU_ entries","empty_table":"No data available in table","info":"Showing _START_ to _END_ of _TOTAL_ entries","info_empty":"Showing 0 to 0 of 0 entries","info_filtered":"(filtered from _MAX_ total entries)","zero_records":"No matching records found","search":"Search:","pagination":{"all":"All","next":"Naslednji","previous":"Previous"},"select":{"rows":{"0":"","_":": Selected %d rows","1":": Selected 1 row"}},"datepicker":{"dayNames":["nedelja","ponedeljek","torek","sreda","\u010detrtek","petek","sobota"],"dayNamesShort":["ned","pon","tor","sre","\u010det","pet","sob"],"dayNamesMin":["N","P","T","S","\u010c","P","S"],"monthNames":["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"],"monthNamesShort":["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"],"nextText":"Naslednji","prevText":"Prej\u0161nji","currentText":"Danes","closeText":"Opravljeno"}};/* ]]> */ </script></br><script type="text/javascript"> function revslider_showDoubleJqueryError(sliderID) { var errorMessage = "Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include."; errorMessage += "<br> This includes make eliminates the revolution slider libraries, and make it not work."; errorMessage += "<br><br> To fix it you can:<br>&nbsp;&nbsp;&nbsp; 1. In the Slider Settings -> Troubleshooting set option: <strong><b>Put JS Includes To Body</b></strong> option to true."; errorMessage += "<br>&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it."; errorMessage = "<span style='font-size:16px;color:#BC0C06;'>" + errorMessage + "</span>"; jQuery(sliderID).show().html(errorMessage); } </script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.51.0-2014.06.20'></script></br><script type='text/javascript'> /* <![CDATA[ */ var _wpcf7 = {"recaptcha":{"messages":{"empty":"Please verify that you are not a robot."}}}; /* ]]> */ </script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.6.1'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/button.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/spinner.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/effect.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/effect-shake.min.js?ver=1.11.4'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/datepicker.min.js?ver=1.11.4'></script></br><script type='text/javascript'> jQuery(document).ready(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Zapri","currentText":"Danes","monthNames":["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"],"monthNamesShort":["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],"nextText":"Naprej","prevText":"Prej\u0161nja","dayNames":["nedelja","ponedeljek","torek","sreda","\u010detrtek","petek","sobota"],"dayNamesShort":["ned","pon","tor","sre","\u010det","pet","sob"],"dayNamesMin":["N","P","T","S","\u010c","P","S"],"dateFormat":"MM d, yy","firstDay":1,"isRTL":false});}); </script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/kause-core-plugin/js/canon_pagebuilder_front.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/kause-shortcodes-plugin/js/scripts.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/kause-shortcodes-plugin/js/jquery.flexslider-min.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/kause-widgets-plugin/js/scripts.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/kause-widgets-plugin/js/cleantabs.jquery.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/jquery.isotope.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/jquery.flexslider-min.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/fitvids.min.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/placeholder.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/mosaic.1.0.1.min.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/fancybox/lib/jquery.mousewheel-3.0.6.pack.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/fancybox/source/jquery.fancybox.pack.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/fancybox/source/helpers/jquery.fancybox-buttons.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/fancybox/source/helpers/jquery.fancybox-media.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/fancybox/source/helpers/jquery.fancybox-thumbs.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/cleantabs.jquery.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/jquery.stellar.min.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/jquery.scrollUp.min.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/selectivizr-min.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/fittext.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/jquery.countdown.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/global_functions.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/custom-scripts.js?ver=4.7.3'></script></br><script type='text/javascript'> /* <![CDATA[ */ var extData = {"ajaxUrl":"http:\/\/www.morigenos.org\/wp-admin\/admin-ajax.php","pageType":"page","templateURI":"http:\/\/www.morigenos.org\/wp-content\/themes\/kause","canonOptions":{"reset_all":"","reset_basic":"","use_responsive_design":"checked","use_boxed_design":"unchecked","use_construction_mode":"unchecked","construction_msg":"This site is under construction!","logo_text_size":"500","logo_max_width":"500","header_padding_top":"0","header_padding_bottom":"0","pos_logo_top":"0","pos_logo_left":"-135","pos_nav_top":"0","pos_nav_right":"0","use_sticky_header":"unchecked","highlight_last_menu_item":"checked","highlight_as_button":"unchecked","sticky_turn_off_width":"768","show_widgetized_footer":"checked","show_social_footer":"checked","footer_text":"\u00a9 Copyright Morigenos 2017","show_social_icons":"checked","social_links":[["fa-facebook-square","https:\/\/www.facebook.com\/Morigenos\/"],["fa-twitter","https:\/\/twitter.com\/morigenos_org"]],"hide_theme_meta_description":"unchecked","hide_theme_og":"unchecked","favicon_url":"","logo_url":"http:\/\/www.morigenos.org\/wp-content\/uploads\/2017\/01\/SpletnaLogoFinal-4-1024x239.png","logo_url_en":"http:\/\/www.morigenos.org\/wp-content\/uploads\/2017\/03\/SpletnaLogoFinalENG.png","logo_text":"","google_analytics_code":"<script>\r\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\r\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\r\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\r\n })(window,document,'script','\/\/www.google-analytics.com\/analytics.js','ga');\r\n\r\n ga('create', 'UA-44942754-3', 'themecanon.com');\r\n ga('send', 'pageview');\r\n\r\n<\/script> "},"canonOptionsHomepage":"","canonOptionsPost":{"post_slider":"manual","show_post_nav":"checked","show_comments":"unchecked","show_person_position":"checked","show_person_tagline":"checked","show_person_nav":"checked","show_meta_author":"unchecked","show_meta_date":"checked","show_meta_comments":"unchecked","show_tags":"checked","homepage_blog_style":"full","blog_style":"full","cat_style":"full","show_cat_title":"unchecked","show_cat_description":"unchecked","search_box_text":"Kaj i\u0161\u010dete?","search_posts":"checked","search_pages":"checked","search_cpt":"checked","search_cpt_source":"cpt_people","404_title":"Neobstoje\u010da stran!","404_msg":"Oprostite! Stran, ki jo i\u0161\u010dete, ne obstaja. Poizkusite sre\u010do z iskanjem nove strani.","use_woocommerce_sidebar":"checked","woocommerce_sidebar":"canon_woocommerce_widget_area","use_buddypress_sidebar":"checked","buddypress_sidebar":"canon_buddypress_widget_area","use_bbpress_sidebar":"checked","bbpress_sidebar":"canon_bbpress_widget_area","use_events_sidebar":"checked","events_sidebar":"canon_events_widget_area"},"canonOptionsAppearance":{"body_skin_class":"skin_ocean","color_feature_1":"#4ec6e9","color_feature_2":"#8b9194","color_plate":"#ffffff","color_body":"#242931","color_general_text":"#4b525d","color_headings":"#2f353f","color_white_text":"#ffffff","color_meta":"#b2b8bd","color_menu_nav":"#706868","color_header_nav":"#2f353f","color_third_nav":"#242931","color_feature_button":"#2d5282","color_feature_button_2":"#4ec6e9","color_feature_button_3":"#7cbf09","color_feature_button_4":"#7cbf09","color_feature_block":"#4ec6e9","color_feature_block_2":"#e1f5fb","color_light_button":"#E8E8E8","color_white_button":"#ffffff","color_dark_button":"#344158","color_form_fields_bg":"#f2f2f2","color_form_fields_text":"#969ca5","color_price_table":"#f7f7f7","color_elements":"#fbfbfb","color_lines":"#9c9c9c","color_footer_block":"#2f353f","color_footer_base":"#242931","color_footer_headings":"#808b9c","color_footer_text":"#ebebeb","color_footer_button":"#4ec6e9","color_footer_form_fields_bg":"#828995","color_footer_form_fields_text":"#ffffff","color_footer_form_fields_focus":"#6d7482","color_footlines":"#4B525D","color_responsive_menu":"#282D36","bg_img_url":"","bg_link":"","bg_repeat":"repeat","bg_attachment":"fixed","lightbox_overlay_color":"#000000","lightbox_overlay_opacity":"0.7","font_main":["canon_default","regular","latin"],"font_quote":["canon_default","regular","latin"],"font_logotext":["canon_default","regular","latin"],"font_bold":["canon_default","regular","latin"],"font_button":["canon_default","regular","latin"],"font_italic":["canon_default","regular","latin"],"font_heading":["canon_default","regular","latin"],"font_nav":["canon_default","regular","latin"],"font_widget_footer":["canon_default","regular","latin"],"anim_img_slider_slideshow":"unchecked","anim_img_slider_delay":"5000","anim_img_slider_anim_duration":"800","anim_quote_slider_slideshow":"unchecked","anim_quote_slider_delay":"5000","anim_quote_slider_anim_duration":"800"},"canonOptionsAdvanced":{"reset_all":"","reset_basic":"","custom_widget_areas":{"9999":{"name":""},"0":{"name":"Custom Widget Area 1"},"1":{"name":"Custom Widget Area 2"},"2":{"name":"Custom Widget Area 3"},"3":{"name":"WP1"},"4":{"name":"WP2"},"5":{"name":"WP3"},"6":{"name":"WP4"},"7":{"name":"WP5"},"8":{"name":"WP6"},"9":{"name":"WP7"},"10":{"name":"WP8"},"11":{"name":"WP9"},"12":{"name":"WP10"},"13":{"name":"WP11"},"14":{"name":"WP12"},"15":{"name":"WP13"},"16":{"name":"WP14"},"17":{"name":"WP15"},"18":{"name":"WP16"}},"use_final_call_css":"checked","final_call_css":".outter-wrapper.header-container, #nav ul, .price h3, ol.graphs > li div.grey-btn, .btn.grey-btn, .price-cell.feature {\r\n background-image: url(\"http:\/\/morigenos.org.wp.dev1-fra1.qloud.io\/wp-content\/uploads\/2017\/01\/SpletnaSlikaMenu.png\");\r\n background-position-y: 23%;\r\n background-position-x: 105%;\r\n}\r\n.nav a {\r\n padding-left: 0.55em;\r\n padding-right: 0.55em;\r\n}\r\n.form6 .wdform_page {\r\n padding: 0;\r\n}\r\n.paypal-txt{\r\n display:inline\r\n}\r\n.paypal-txt input{\r\n font-family: Georgia, \"Times New Roman\", Times, serif;\r\n font-color:#000;\r\n}\r\n.paypal-txt .paypal-blue{\r\n color:#4ec6e9;\r\n}\r\n.paypal-txt .paypal-green{\r\n color:#7cbf09;\r\n}\r\n.paypal-txt .paypal-blue,\r\n.paypal-txt .paypal-green{\r\n transition: all 250ms ease-in-out;\r\n cursor: pointer;\r\n white-space: normal;\r\n}\r\n.paypal-txt .paypal-blue:hover,\r\n.paypal-txt .paypal-green:active{\r\n color:#2d5282;\r\n}\r\n\r\n.paypal-bg.paypal-blue{\r\n background-color:#4ec6e9;\r\n}\r\n.paypal-bg.paypal-green{\r\n background-color:#7cbf09;\r\n}\r\n.paypal-btn .paypal-bg{\r\n color: #fff;\r\n transition: all 250ms ease-in-out;\r\n cursor: pointer;\r\n border: none;\r\n font-weight: 400;\r\n -webkit-border-radius: 18px;\r\n -moz-border-radius: 3px;\r\n border-radius: 3px;\r\n padding: .6em 1.2em;\r\n white-space: normal;\r\n display: inline-block;\r\n font-family:\"robotomedium\";\r\n font-size:18px;\r\n}\r\n.paypal-btn .paypal-bg:hover,\r\n.paypal-btn .paypal-bg:active{\r\n background-color:#2d5282;\r\n}\r\nadd_filter( 'jpeg_quality', create_function( '', 'return 100;' ) );","canon_options_data":"","import_data":""}}; /* ]]> */ </script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/themes/kause/js/scripts.js?ver=4.7.3'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/jquery/ui/position.min.js?ver=1.11.4'></script></br><script type='text/javascript'> /* <![CDATA[ */ var pum_vars = {"ajaxurl":"http:\/\/www.morigenos.org\/wp-admin\/admin-ajax.php","default_theme":"2148"}; var ajaxurl = "http:\/\/www.morigenos.org\/wp-admin\/admin-ajax.php"; var popmake_default_theme = "2148"; /* ]]> */ </script></br><script type='text/javascript' src='http://www.morigenos.org/wp-content/plugins/popup-maker/assets/js/site.min.js?defer&#038;ver=1.4.21' defer='defer'></script></br><script type='text/javascript' src='http://www.morigenos.org/wp-includes/js/wp-embed.min.js?ver=4.7.3'></script></br><script type="text/css" id="tmpl-tribe_customizer_css">.tribe-events-list .tribe-events-loop .tribe-event-featured, .tribe-events-list #tribe-events-day.tribe-events-loop .tribe-event-featured, .type-tribe_events.tribe-events-photo-event.tribe-event-featured .tribe-events-photo-event-wrap, .type-tribe_events.tribe-events-photo-event.tribe-event-featured .tribe-events-photo-event-wrap:hover { background-color: #0ea0d7; } #tribe-events-content table.tribe-events-calendar .type-tribe_events.tribe-event-featured { background-color: #0ea0d7; } .tribe-events-list-widget .tribe-event-featured, .tribe-events-venue-widget .tribe-event-featured, .tribe-mini-calendar-list-wrapper .tribe-event-featured, .tribe-events-adv-list-widget .tribe-event-featured .tribe-mini-calendar-event { background-color: #0ea0d7; } .tribe-grid-body .tribe-event-featured.tribe-events-week-hourly-single { background-color: rgba(14,160,215, .7 ); border-color: #0ea0d7; } .tribe-grid-body .tribe-event-featured.tribe-events-week-hourly-single:hover { background-color: #0ea0d7; }</script></br>

< meta > Out For morigenos.org

A meta tag is a line that contains a large number of information lines from the top of a site to the description field. It contains many fields, such as the keywords that a website is associated with.

<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"></br><meta content="black" name="apple-mobile-web-app-status-bar-style"></br><meta name='description' content='Slovenian Marine Mammal Society'></br><meta charset="UTF-8"></br><meta property="og:type" content="article"></br><meta property="og:url" content="http://www.morigenos.org/"></br><meta property="og:site_name" content="MORIGENOS"></br><meta property="og:title" content="MORIGENOS"></br><meta property="og:description" content="Slovenian Marine Mammal Society"></br><meta property="og:image" content="http://www.morigenos.org/wp-content/themes/kause/img/[email protected]"></br><meta property="og:locale" content="sl_SI"></br><meta property="og:locale:alternate" content="en_GB"></br><meta property="og:type" content="website"></br><meta property="og:title" content="Domov - MORIGENOS"></br><meta property="og:url" content="http://www.morigenos.org/"></br><meta property="og:site_name" content="MORIGENOS"></br><meta name="twitter:card" content="summary"></br><meta name="twitter:title" content="Domov - MORIGENOS"></br><meta name="generator" content="WordPress 4.7.3"></br><meta name="generator" content="Powered by Slider Revolution 5.2.5.4 - responsive, Mobile-Friendly Slider Plugin for WordPress with comfortable drag and drop interface."></br><meta name="msapplication-TileImage" content="http://www.morigenos.org/wp-content/uploads/2016/09/cropped-logo-png-1-270x270.png"></br>

< link > Out For morigenos.org

Links are lines that contain all libraries or other references to a website (for example, a name tag). These lines vary for each website.

<link rel="pingback" href="http://www.morigenos.org/xmlrpc.php"></br><link rel="shortcut icon" href="http://www.morigenos.org/wp-content/themes/kause/img/default_favicon.ico"></br><link rel="canonical" href="http://www.morigenos.org/"></br><link rel='dns-prefetch' href='//s.w.org'></br><link rel="alternate" type="application/rss+xml" title="MORIGENOS &raquo; Vir" href="http://www.morigenos.org/feed/"></br><link rel="alternate" type="application/rss+xml" title="MORIGENOS &raquo; Vir komentarjev" href="http://www.morigenos.org/comments/feed/"></br><link rel="alternate" type="text/calendar" title="MORIGENOS &raquo; iCal Feed" href="http://www.morigenos.org/dogodki/?ical=1"></br><link rel="alternate" type="application/rss+xml" title="MORIGENOS &raquo; Domov Vir komentarjev" href="http://www.morigenos.org/home/feed/"></br><link rel='stylesheet' id='contact-form-7-css' href='http://www.morigenos.org/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.6.1' type='text/css' media='all'></br><link rel='stylesheet' id='fontsforwebstyle-css' href='http://www.morigenos.org/wp-content/plugins/font/css/fontsforwebstyle.css?pver=7.5.1&#038;ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='jquery-ui-css' href='http://www.morigenos.org/wp-content/plugins/font/css/start/jquery-ui-1.8.14.custom.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='colorpicker2-css' href='http://www.morigenos.org/wp-content/plugins/font/css/colorpicker.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='jquery-ui-spinner-css' href='http://www.morigenos.org/wp-content/plugins/form-maker/css/jquery-ui-spinner.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='form_maker_calendar-jos-css' href='http://www.morigenos.org/wp-content/plugins/form-maker/css/calendar-jos.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='form_maker_frontend-css' href='http://www.morigenos.org/wp-content/plugins/form-maker/css/form_maker_frontend.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='kause_shortcodes_plugin_style-css' href='http://www.morigenos.org/wp-content/plugins/kause-shortcodes-plugin/css/tc_shortCodes.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='kause_shortcodes_plugin_flexslider_style-css' href='http://www.morigenos.org/wp-content/plugins/kause-shortcodes-plugin/css/flexslider.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='kause_widgets_plugin_style-css' href='http://www.morigenos.org/wp-content/plugins/kause-widgets-plugin/css/style.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='mbpro-font-awesome-css' href='http://www.morigenos.org/wp-content/plugins/maxbuttons/assets/libraries/font-awesome/css/font-awesome.min.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='menu-image-css' href='http://www.morigenos.org/wp-content/plugins/menu-image/menu-image.css?ver=1.1' type='text/css' media='all'></br><link rel='stylesheet' id='popup-maker-site-css' href='http://www.morigenos.org/wp-content/plugins/popup-maker/assets/css/site.min.css?ver=1.4.21' type='text/css' media='all'></br><link rel='stylesheet' id='rs-plugin-settings-css' href='http://www.morigenos.org/wp-content/plugins/revslider/public/assets/css/settings.css?ver=5.2.5.4' type='text/css' media='all'></br><link rel='stylesheet' id='wpseo-html-sitemap-css' href='http://www.morigenos.org/wp-content/plugins/wp-seo-html-sitemap/style.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='tribe-events-full-calendar-style-css' href='http://www.morigenos.org/wp-content/plugins/the-events-calendar/src/resources/css/tribe-events-full.min.css?ver=4.4.3' type='text/css' media='all'></br><link rel='stylesheet' id='tribe-events-calendar-style-css' href='http://www.morigenos.org/wp-content/plugins/the-events-calendar/src/resources/css/tribe-events-theme.min.css?ver=4.4.3' type='text/css' media='all'></br><link rel='stylesheet' id='tribe-events-calendar-full-mobile-style-css' href='http://www.morigenos.org/wp-content/plugins/the-events-calendar/src/resources/css/tribe-events-full-mobile.min.css?ver=4.4.3' type='text/css' media='only screen and (max-width: 768px)'></br><link rel='stylesheet' id='tribe-events-calendar-mobile-style-css' href='http://www.morigenos.org/wp-content/plugins/the-events-calendar/src/resources/css/tribe-events-theme-mobile.min.css?ver=4.4.3' type='text/css' media='only screen and (max-width: 768px)'></br><link rel='stylesheet' id='tribe-events-calendar-override-style-css' href='http://www.morigenos.org/wp-content/themes/kause/tribe-events/tribe-events.css?ver=1.0.0' type='text/css' media='all'></br><link rel='stylesheet' id='normalize-css' href='http://www.morigenos.org/wp-content/themes/kause/css/normalize.min.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='style-css' href='http://www.morigenos.org/wp-content/themes/kause-child/style.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='isotope_style-css' href='http://www.morigenos.org/wp-content/themes/kause/css/isotope.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='flexslider_style-css' href='http://www.morigenos.org/wp-content/themes/kause/css/flexslider.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='font_awesome_style-css' href='http://www.morigenos.org/wp-content/themes/kause/css/font-awesome.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='countdown_style-css' href='http://www.morigenos.org/wp-content/themes/kause/css/jquery.countdown.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='responsive_style-css' href='http://www.morigenos.org/wp-content/themes/kause/css/responsive.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='fullwidth_style-css' href='http://www.morigenos.org/wp-content/themes/kause/css/full.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='fancybox_style-css' href='http://www.morigenos.org/wp-content/themes/kause/js/fancybox/source/jquery.fancybox.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='fancybox_buttons_style-css' href='http://www.morigenos.org/wp-content/themes/kause/js/fancybox/source/helpers/jquery.fancybox-buttons.css?ver=4.7.3' type='text/css' media='all'></br><link rel='stylesheet' id='fancybox_thumbs_style-css' href='http://www.morigenos.org/wp-content/themes/kause/js/fancybox/source/helpers/jquery.fancybox-thumbs.css?ver=4.7.3' type='text/css' media='all'></br><link rel='https://api.w.org/' href='http://www.morigenos.org/wp-json/'></br><link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.morigenos.org/xmlrpc.php?rsd"></br><link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.morigenos.org/wp-includes/wlwmanifest.xml"></br><link rel='shortlink' href='http://www.morigenos.org/'></br><link rel="alternate" type="application/json+oembed" href="http://www.morigenos.org/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.morigenos.org%2F"></br><link rel="alternate" type="text/xml+oembed" href="http://www.morigenos.org/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.morigenos.org%2F&#038;format=xml"></br><link rel="alternate" href="http://www.morigenos.org/" hreflang="sl"></br><link rel="alternate" href="http://www.morigenos.org/en/" hreflang="en"></br><link rel="icon" href="http://www.morigenos.org/wp-content/uploads/2016/09/cropped-logo-png-1-32x32.png" sizes="32x32"></br><link rel="icon" href="http://www.morigenos.org/wp-content/uploads/2016/09/cropped-logo-png-1-192x192.png" sizes="192x192"></br><link rel="apple-touch-icon-precomposed" href="http://www.morigenos.org/wp-content/uploads/2016/09/cropped-logo-png-1-180x180.png"></br><link href='http://fonts.googleapis.com/css?family=PT Sans Narrow:400,700' rel='stylesheet' type='text/css'></br><link href="http://fonts.googleapis.com/css?family=Raleway%3A700%2C600%2C500" rel="stylesheet" property="stylesheet" type="text/css" media="all"></br><link rel='stylesheet' property='stylesheet' id='rs-icon-set-pe-7s-css' href='http://www.morigenos.org/wp-content/plugins/revslider/public/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css' type='text/css' media='all'></br>

Dig Query For morigenos.org

Version: 1.0.0.0,Dns Server: fec0:0:0:ffff::1%1,Qtype: A,Name: morigenos.org,OPCODE: Query,RCODE: NoError,ID: 21218,QR: True,AA: False,RD: True,RA: True,QDCOUNT: 1,ANCOUNT: 1,NSCOUNT: 3,ARCOUNT: 0,QUESTION SECTION: morigenos.org. IN A,ANSWER SECTION:morigenos.org. 14393 IN A 91.185.204.87,morigenos.org. 86393 IN NS ns2.dnserv.com.morigenos.org. 86393 IN NS ns1.dnserv.com.morigenos.org. 86393 IN NS ns3.dnserv.com.,Query time: 3,SERVER: 62.210.16.6,PORT: 53,WHEN: Thu Mar 09 03:28:20 2017,MSG SIZE rcvd: 111

< html > Out For morigenos.org

# Name Count
1 Script Count 89
2 Meta Count 21
3 Link Count 53
4 Ul Count 11
5 Table Count 0
6 < a > Count 85
7 div Count 553
8 H1 Count 0
9 H2 Count 0

< head > Out For morigenos.org

Title

Domov - MORIGENOS

Desc

Slovenian Marine Mammal Society

Keywords

No Keywords fields for morigenos.org could be found in research. This indicates that the website you are calling is closed or that this field is not identified.

Nav

O NAS;Društvo Morigenos;Ekipa;Reference;Kontakt;DEJAVNOSTI;Kaj delamo;Raziskovanje;Izobraževanje in ozaveščanje;Publikacije;Znanstvene objave;Bilten Trdoživ;DELFINI PRI NAS;Delfini v slovenskem morju;Slovenski projekt za delfine;Foto-identifikacija;Foto-ID katalog;Kako delfini pridobijo oznake;Velika pliskavka;Srečanje z delfini na morju &#8211; pravila obnašanja;Ostali obiskovalci slovenskega morja;Kit grbavec v slovenskem morju;Navadni delfin;ZNANSTVENE OBJAVE;NOVICE;GALERIJA;SODELUJTE;Pridružite se nam na terenu;Raziskovalne odprave Earthwatch;Včlanite se;Posvojite delfina;Ste videli delfine? Sporočite nam!;Namenite del dohodnine za delfine;Spoznajte naše izobraževalne programe;;PODPRITE NAS;


< head > Inf. Out For morigenos.org

# Name Count
1 Title Count 17
2 Description Count 31
3 Keywords Count 0

Domain Test

# Name Flag
1 Name morigenos
2 Length 9 Characters.
3 Extension .org

Mistakes Out For morigenos.org

It contains the most common mistakes made in search engines. The algorithm was developed to produce results in a way similar to a fault made in the real sense. You can see options for domains similar to your domain's domain by reviewing the list in this area. Or you can buy the domain name created by our algorithm which we think will be useful.
  • 1- http://www.origenos.org
  • 2- http://www.norigenos.org
  • 3- http://www.mnorigenos.org
  • 4- http://www.nmorigenos.org
  • 5- http://www.korigenos.org
  • 6- http://www.mkorigenos.org
  • 7- http://www.kmorigenos.org
  • 8- http://www.jorigenos.org
  • 9- http://www.mjorigenos.org
  • 10- http://www.jmorigenos.org
  • 11- http://www.mrigenos.org
  • 12- http://www.m0rigenos.org
  • 13- http://www.mo0rigenos.org
  • 14- http://www.m0origenos.org
  • 15- http://www.m9rigenos.org
  • 16- http://www.mo9rigenos.org
  • 17- http://www.m9origenos.org
  • 18- http://www.mirigenos.org
  • 19- http://www.moirigenos.org
  • 20- http://www.miorigenos.org
  • 21- http://www.mkrigenos.org
  • 22- http://www.mokrigenos.org
  • 23- http://www.mkorigenos.org
  • 24- http://www.mlrigenos.org
  • 25- http://www.molrigenos.org
  • 26- http://www.mlorigenos.org
  • 27- http://www.mprigenos.org
  • 28- http://www.moprigenos.org
  • 29- http://www.mporigenos.org
  • 30- http://www.moigenos.org
  • 31- http://www.motigenos.org
  • 32- http://www.mortigenos.org
  • 33- http://www.motrigenos.org
  • 34- http://www.mogigenos.org
  • 35- http://www.morgigenos.org
  • 36- http://www.mogrigenos.org
  • 37- http://www.mofigenos.org
  • 38- http://www.morfigenos.org
  • 39- http://www.mofrigenos.org
  • 40- http://www.moeigenos.org
  • 41- http://www.moreigenos.org
  • 42- http://www.moerigenos.org
  • 43- http://www.modigenos.org
  • 44- http://www.mordigenos.org
  • 45- http://www.modrigenos.org
  • 46- http://www.mo5igenos.org
  • 47- http://www.mor5igenos.org
  • 48- http://www.mo5rigenos.org
  • 49- http://www.mo4igenos.org
  • 50- http://www.mor4igenos.org
  • 51- http://www.mo4rigenos.org
  • 52- http://www.morgenos.org
  • 53- http://www.morlgenos.org
  • 54- http://www.morilgenos.org
  • 55- http://www.morligenos.org
  • 56- http://www.morugenos.org
  • 57- http://www.moriugenos.org
  • 58- http://www.moruigenos.org
  • 59- http://www.morogenos.org
  • 60- http://www.moriogenos.org
  • 61- http://www.moroigenos.org
  • 62- http://www.morkgenos.org
  • 63- http://www.morikgenos.org
  • 64- http://www.morkigenos.org
  • 65- http://www.morjgenos.org
  • 66- http://www.morijgenos.org
  • 67- http://www.morjigenos.org
  • 68- http://www.morienos.org
  • 69- http://www.moriyenos.org
  • 70- http://www.morigyenos.org
  • 71- http://www.moriygenos.org
  • 72- http://www.morivenos.org
  • 73- http://www.morigvenos.org
  • 74- http://www.morivgenos.org
  • 75- http://www.moritenos.org
  • 76- http://www.morigtenos.org
  • 77- http://www.moritgenos.org
  • 78- http://www.morirenos.org
  • 79- http://www.morigrenos.org
  • 80- http://www.morirgenos.org
  • 81- http://www.morihenos.org
  • 82- http://www.morighenos.org
  • 83- http://www.morihgenos.org
  • 84- http://www.morifenos.org
  • 85- http://www.morigfenos.org
  • 86- http://www.morifgenos.org
  • 87- http://www.moribenos.org
  • 88- http://www.morigbenos.org
  • 89- http://www.moribgenos.org
  • 90- http://www.morignos.org
  • 91- http://www.morigwnos.org
  • 92- http://www.morigewnos.org
  • 93- http://www.morigwenos.org
  • 94- http://www.morigsnos.org
  • 95- http://www.morigesnos.org
  • 96- http://www.morigsenos.org
  • 97- http://www.morigrnos.org
  • 98- http://www.morigernos.org
  • 99- http://www.morigrenos.org
  • 100- http://www.morigfnos.org
  • 101- http://www.morigefnos.org
  • 102- http://www.morigfenos.org
  • 103- http://www.morigdnos.org
  • 104- http://www.morigednos.org
  • 105- http://www.morigdenos.org
  • 106- http://www.morigeos.org
  • 107- http://www.morigemos.org
  • 108- http://www.morigenmos.org
  • 109- http://www.morigemnos.org
  • 110- http://www.morigejos.org
  • 111- http://www.morigenjos.org
  • 112- http://www.morigejnos.org
  • 113- http://www.morigehos.org
  • 114- http://www.morigenhos.org
  • 115- http://www.morigehnos.org
  • 116- http://www.morigebos.org
  • 117- http://www.morigenbos.org
  • 118- http://www.morigebnos.org
  • 119- http://www.morigens.org
  • 120- http://www.morigen0s.org
  • 121- http://www.morigeno0s.org
  • 122- http://www.morigen0os.org
  • 123- http://www.morigen9s.org
  • 124- http://www.morigeno9s.org
  • 125- http://www.morigen9os.org
  • 126- http://www.morigenis.org
  • 127- http://www.morigenois.org
  • 128- http://www.morigenios.org
  • 129- http://www.morigenks.org
  • 130- http://www.morigenoks.org
  • 131- http://www.morigenkos.org
  • 132- http://www.morigenls.org
  • 133- http://www.morigenols.org
  • 134- http://www.morigenlos.org
  • 135- http://www.morigenps.org
  • 136- http://www.morigenops.org
  • 137- http://www.morigenpos.org
  • 138- http://www.morigenoz.org
  • 139- http://www.morigenozs.org
  • 140- http://www.morigenosz.org
  • 141- http://www.morigenox.org
  • 142- http://www.morigenoxs.org
  • 143- http://www.morigenosx.org
  • 144- http://www.morigenow.org
  • 145- http://www.morigenows.org
  • 146- http://www.morigenosw.org
  • 147- http://www.morigenoe.org
  • 148- http://www.morigenoes.org
  • 149- http://www.morigenose.org
  • 150- http://www.morigenod.org
  • 151- http://www.morigenods.org
  • 152- http://www.morigenosd.org
  • 153- http://www.morigenoa.org
  • 154- http://www.morigenoas.org
  • 155- http://www.morigenosa.org
  • 156- http://www.morigeno.org