PageSourceSearch

https://classe-numerique.fr/wp-content/themes/monecole-one/js/page-contact.min.js?va=1.9.11a

js classe-numerique.fr collected 2026-10-04 13:26:32 UTC 5,323 bytes, 1 lines download raw bytes

1var MEC_ContactPage=function(e,t){var n={},i=null,a=null,l=null,r=null,o=0,c=!1,s=-1;function d(t,n){var l=i[t].children;if(a.empty(),c||r.hide(),l&&l.length>0){for(var s=new Array,d=!1,h=0;h<l.length;h++)if(i.hasOwnProperty(l[h])){let e=i[l[h]].site;("0"==e||e==n||-1!==e.indexOf("-1")&&e.substring(2,3)!==n)&&s.push(i[l[h]])}s.length>0&&s.sort(function(e,t){return e.order>t.order?1:e.order<t.order?-1:0}).forEach(function(e){var t=e.children.length>0;p(e.id,n,e.title,e.content,e.videoID,t),t||(d=!0)}),d&&function(t){var n=e("<div>",{class:"FAQLine",datalevel:o,datauniqueid:"999"+t+o}).appendTo(a);e("<div>",{class:"LineTitle",html:"Autre"}).appendTo(n),n.click(function(){u(e(this)),a.empty(),v()})}(n)}}function u(t){var n=t.clone(!1);n.click(function(){e(this).nextAll().remove();var t=e(this).prev();e(this).remove(),0==t.length?(c||r.hide(),h()):(o=parseInt(t.attr("datalevel"))+1,d(t.attr("datalineid"),t.attr("sitecode")))}),n.appendTo(l)}function p(t,n,i,l,r,c){var s=e("<div>",{class:"FAQLine",datalineid:t,sitecode:n,datalevel:o,datauniqueid:t+n+o}).appendTo(a);if(e("<div>",{class:"LineTitle",html:i}).appendTo(s),l||r){var p=e("<div>",{class:"LineBody"}).appendTo(s);r&&e("<div>",{class:"videoDiv",onclick:"MEC_Socle.PopinHelper.openVimeoInPopin('"+r+"', null, true);",html:"Voir la vidéo tutoriel"}).appendTo(p),l&&(l=l.replace(/<a /gm,"<a class='lienText' "),e("<div>",{class:"explainDiv",html:l}).appendTo(p));var h=e("<div>",{class:"divActionOnLine"}).appendTo(p);e("<a>",{class:"lienText",href:"javascript:;",html:"Cette réponse ne vous a pas été utile ? Cliquez ici pour nous contacter."}).appendTo(h).click(function(){e(this).parents(".LineBody").hide(),u(e(this).parents(".FAQLine")),a.empty(),v()})}c?s.click(function(){u(e(this)),o++,d(t,n)}):s.click(function(){e(this).siblings().each(function(){e(this).removeClass("expanded").find(".LineBody").slideUp()}),e(this).addClass("expanded").find(".LineBody").slideDown()})}function h(e){null==i&&null!=e&&function(e){i=new Array;for(var t=0;t<e.length;t++){var n=e[t];if(-1==s&&2!=n.afa_gar_visible||s==n.afa_site&&n.afa_gar_visible>=1){var a={};a.id=n.afa_id,a.parentID=n.afa_parent_id,a.site=n.afa_site,a.title=n.afa_titre,a.content=n.afa_content,a.videoID=n.afa_video_id,a.order=parseInt(n.afa_order),a.children=new Array,a.parentID&&(i.hasOwnProperty(a.parentID)?i[a.parentID].children.push(a.id):i[a.parentID]={children:[a.id]}),i.hasOwnProperty(a.id)&&(a.children=i[a.id].children),i[a.id]=a}}}(e),a.empty(),l.empty(),o=0,-1!=s&&4!=s||p("0","4","classe-numerique.fr",null,null,!0),-1!=s&&3!=s||p("0","3","matheros.fr",null,null,!0),-1!=s&&1!=s||p("0","1","monecole.fr",null,null,!0),-1!=s&&6!=s||p("0","6","montablo.fr",null,null,!0),-1!=s&&5!=s||p("0","5","motoufo.fr",null,null,!0),-1!=s&&2!=s||p("0","2","rallye-lecture.fr",null,null,!0),-1==s?p("0","0","tous les sites ou autre",null,null,!0):a.children(".FAQLine").click()}function v(){r.show(),e(window).scrollTop(r.position().top-100),-1==s&&MEC_Socle.CommonFunctions.resetIconCaptcha()}return n.displayImage=function(e){MEC_Socle.PopinHelper.openImageOnly("/wp-content/images/faqtutos/"+e)},n.checkData=function(){var t=!1;(e("#contactname").val()&&""!=e("#contactname").val().trim()?!e("#contactname").val().length>100?(e("#userNameError").html("100 caractères max."),t=!0):e("#userNameError").html(""):(e("#userNameError").html("Ce champ est obligatoire"),t=!0),e("#contactmailBody").val()?e("#mailBodyError").html(""):(e("#mailBodyError").html("Ce champ est obligatoire"),t=!0),e("#contactmail").val()&&""!=e("#contactmail").val().trim())?new RegExp("^[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*[.]{1}[a-z]{2,6}$","i").test(e("#contactmail").val())?!e("#contactmail").val().length>100?e("#userMailError").html("100 caractères max."):e("#userMailError").html(""):(e("#userMailError").html("Adresse invalide"),t=!0):(e("#userMailError").html("Ce champ est obligatoire"),t=!0);if(e("#chkAccept").is(":checked")?e("#lblAcceptErreur").html(""):(e("#lblAcceptErreur").html("Vous devez valider les conditions générales avant de nous contacter."),t=!0),1!=e(".iconcaptcha-widget").length||MEC_Socle.CommonFunctions.captchaHasBeenValidatedOnce||"undefined"!=typeof Cypress||(e("#lblCaptchaError").html("Veuillez valider le test anti-robot."),t=!0),t)return!1;var n="",i="";return e("#FAQAriane .FAQLine").each(function(){n+=e(this).find(".LineTitle").text()+" / ",i+=e(this).attr("datauniqueid")+";"}),n=n.substring(0,n.length-2),i=i.substring(0,i.length-1),e("#contactQuestsList").val(n),e("#contactQuestsIDList").val(i),e("#btnSubmit").attr("disabled","disabled"),!0},n.init=function(t,n,i,o){s=n?o:-1,e(function(){if(a=e("#FAQLines"),l=e("#FAQAriane"),r=e("#contactFormZone"),i)r.show(),e(".beforeFAQLines").hide();else if(h(t),!n){if(e("input").keypress(function(){e(this).parent().find("span.errorMsg").html("")}),""!=e("#contactQuestsIDList").val()){c=!0;for(var o=e("#contactQuestsIDList").val().split(";"),s=0;s<o.length;s++)e("#FAQLines .FAQLine[datauniqueid='"+o[s]+"']").each(function(){var t=e(this).find(".divA
1ctionOnLine a");t.length>0?t.click():e(this).click()});c=!1}MEC_Socle.CommonFunctions.initIconCaptcha(".sendButtonZone","Trop de tentatives d'envoie de mail échouées.<br/>Veuillez revenir nous contacter un peu plus tard.")}})},n}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.