1MEC_Socle={},MEC_Socle.AjaxHelper=function(e,t){var n={};let o=null;return n.GenAjaxCaller=function(e,t,o,i){n.GenAjaxCallerWithFailCallback(e,t,o,function(e){MEC_Socle.PopinHelper.openResultPopin(e.data,"fa-exclamation-circle")},i)},n.GenAjaxCallerWithFailCallback=function(t,i,a,r,s){var l={action:t,security:MyAjaxVars.postCommentNonce};MyAjaxVars.hasOwnProperty("isMontablo")&&MyAjaxVars.isMontablo&&(l.isMontablo=!0),l=e.extend({},l,i),jQuery.post(MyAjaxVars.ajaxurl,l,function(e){s&&(s.disabled=!1),e.success?a(e):e.data==MyAjaxVars.ajaxEnsConnectError||e.data==MyAjaxVars.ajaxAdminConnectError?document.location.href=(MyAjaxVars.isMontablo?"/montablo":"")+"/identification/":e.data==MyAjaxVars.ajaxEleveConnectError?document.location.href=(MyAjaxVars.isMontablo?"/montablo":"")+"/identification/?redirect=eleve":r(e)}).fail(function(e,c,d){0==e.status?MEC_Socle.PopinHelper.openResultPopin("Veuillez vérifier votre connexion internet.","fa-cloud-slash",!0):403==e.status?ajaxDeconnectUser(null,(MyAjaxVars.isMontablo?"/montablo":"")+"/identification/"):400==e.status&&(o=l.action,l.action="meIsUserStillConnected",jQuery.post(MyAjaxVars.ajaxurl,l,function(e){e.data.stillConnected||(l.manageDecoPopin?n.displayConnexionPopinAfterGenAjaxCallFail(t,i,a,r,s):ajaxDeconnectUser(null,(MyAjaxVars.isMontablo?"/montablo":"")+"/identification/"))}))})},n.updateNonceEveryWhere=function(e,t){for(var n=e;n;){try{jQuery("input[id$='-nf'][type='hidden']",n.document).val(t),n.MyAjaxVars&&(n.MyAjaxVars.postCommentNonce=t)}catch(e){console.warn(e)}if(!n.parent||n.parent===n)break;n=n.parent}},n.displayConnexionPopinAfterGenAjaxCallFail=function(t,i,a,r,s){window.addEventListener("message",function(l){l.origin===window.location.origin&&l.data&&"meLoginInPopinSuccess"===l.data.type&&(MEC_Socle.PopinHelper.openLoaderPopin("Récupération des informations utilisateurs..."),MEC_Socle.AjaxHelper.GenAjaxCaller("meGetFreshNonce",{},function(l){l.data.userid!=i.manageDecoPopin.connectedUserID?(MEC_Socle.PopinHelper.openLoaderPopin("Vous vous êtes reconnecté avec un autre compte.<br/>La page va être rechargée."),setTimeout(function(){MEC_Socle.CommonFunctions.getSameOriginTopWindow().location.reload()},1e3)):(n.updateNonceEveryWhere(window,l.data.nonce),i.action=o,i.manageDecoPopin.closePopinAfterDecoPopin?e.fancybox.close():MEC_Socle.PopinHelper.openLoaderPopin("Actualisation des données..."),n.GenAjaxCallerWithFailCallback(t,i,a,r,s))}))}),MEC_Socle.PopinHelper.genericFancyboxCaller(!1,!1,!0,null,{type:"iframe",href:"/montablo/identification?modeRecoPopin=1&ifmode=1",width:320,height:410,autoSize:!1,scrolling:!1,padding:0,beforeShow:function(){jQuery(".fancybox-skin").css("background","transparent").css("box-shadow","none").css("margin","0px"),jQuery(".fancybox-wrap").css("background","transparent")}})},n.GenAjaxCallerForFileUpload=function(e,t,o){n.GenAjaxCallerForFileUploadWithFailCallback(e,t,function(e){MEC_Socle.PopinHelper.openResultPopin(e.data,"fa-exclamation-circle")},o)},n.GenAjaxCallerForFileUploadWithFailCallback=function(t,n,o,i){t.append("security",MyAjaxVars.postCommentNonce),e.ajax({url:MyAjaxVars.ajaxurl,type:"POST",data:t,cache:!1,dataType:"json",processData:!1,contentType:!1,success:function(e,t,a){i&&(i.disabled=!1),e.success?n(e.response):e.data==MyAjaxVars.ajaxEnsConnectError||e.data==MyAjaxVars.ajaxAdminConnectError?document.location.href=(MyAjaxVars.isMontablo?"/montablo":"")+"/identification/":e.data==MyAjaxVars.ajaxEleveConnectError?document.location.href=(MyAjaxVars.isMontablo?"/montablo":"")+"/identification/?redirect=eleve":o(e)},error:function(e,t,n){0==e.status?MEC_Socle.PopinHelper.openResultPopin("Veuillez vérifier votre connexion internet.","fa-cloud-slash",!0):403==e.status?ajaxDeconnectUser(null,(MyAjaxVars.isMontablo?"/montablo":"")+"/identification/"):400==e.status&&MEC_Socle.PopinHelper.openResultPopin("Requête incorrecte.<br/>Veuillez vérifier que votre connexion internet est opérationnelle<br/>et que votre compte utilisateur est toujours connecté.","fa-cloud-exclamation",!0),i&&(i.disabled=!1)}})},n}(jQuery),MEC_Socle.HoraireParam=function(e,t){var n={horaireSwitchActive:function(e){jQuery(e).parent().toggle().siblings().toggle()},initHoraireValues:function(t,n){e(".horairesTable .day").each(function(){var n=e(this).attr("data-day");t&&t.hours?("true"==t.hours[n+"m"].enabled.toString()?(e(this).find(".matin .haveTime .firstHour select option[value='"+t.hours[n+"m"].hourdeb+"']").prop("selected",!0),e(this).find(".matin .haveTime .secondHour select option[value='"+t.hours[n+"m"].hourfin+"']").prop("selected",!0),e(this).find(".matin .noTime").hide(),e(this).find(".matin .haveTime").show()):(e(this).find(".matin .noTime").show(),e(this).find(".matin .haveTime").hide()),"true"==t.hours[n+"a"].enabled.toString()?(e(this).find(".aprem .haveTime .firstHour select option[value='"+t.hours[n+"a"].hourdeb+"']").prop("selected",!0),e(this).find(".aprem .haveTime .secondHour select option[value='"+t.hours[n+"a"].hourfin+"']").prop("selected",!0),e(this).find(".aprem .noTime").hide(),e(this).find(".aprem .haveTime").show()):(e(this).find(".aprem .noTime").show(),e(this).find(".aprem .haveTime").hide())):(e(this).find(".matin .haveTime .firstHour select option[value='08:30']").prop("selected",!0),e(this).find(".matin .haveTime .secondHour select option[value='11:30']").prop("selected",!0),e(this).find(".aprem .haveTime .firstHour select option[value='13:30']").prop("selected",!0),e(this).find(".aprem .haveTime .secondHour select option[value='16:30']").prop("selected",!0),parseInt(e(this).attr("data-day"))<=5?(e(this).find(".noTime").hide(),e(this).find(".haveTime").show()):(e(this).find(".noTime").show(),e(this).find(".haveTime").hide()))}),t&&e("#cboFuseau option[value='"+t.fuseau+"']").prop("selected",!0),jQuery(".horairesAccesDetails").hide(),n||jQuery("#chkHorairesAcces").change(function(){jQuery(this).is(":checked")?jQuery(".horairesAccesDetails").show():jQuery(".horairesAccesDetails").hide()}),t&&("true"==t.enabled.toString()?(e("#chkHorairesAcces").bootstrapToggle("on"),jQuery(".horairesAccesDetails").show()):(e("#chkHorairesAcces").bootstrapToggle("off"),jQuery(".horairesAccesDetails").hide()))},getHoraireObject:function(){var t=null;return e("#chkHorairesAcces").is(":checked")?(t={enabled:!0,hours:{},fuseau:e("#cboFuseau").val()},e(".day").each(function(){var n=e(this).attr("data-day");e(this).find(".matin .noTime").is(":visible")?t.hours[n+"m"]={enabled:!1}:t.hours[n+"m"]={enabled:!0,hourdeb:e(this).find(".matin .firstHour select").val(),hourfin:e(this).find(".matin .secondHour select").val()},e(this).find(".aprem .noTime").is(":visible")?t.hours[n+"a"]={enabled:!1}:t.hours[n+"a"]={enabled:!0,hourdeb:e(this).find(".aprem .firstHour select").val(),hourfin:e(this).find(".aprem .secondHour select").val()}})):t={enabled:!1,fuseau:e("#cboFuseau").val()},t}};return n}(jQuery),MEC_Socle.AsyncPageManager=function($,undefined){var _self={},$infoPanel=null,editTimeWait=1500;function getOrCreateInfoPanel(){return null==$infoPanel&&($infoPanel=$("<div>",{id:"saveAsyncInfoPanel"}).appendTo("header#home")),$infoPanel.css("opacity",1).show(),$infoPanel}return _self.savingInProgress=!1,_self.savingBuffer=new Array,_self.lastEditTime=0,_self.isInit=!1,_self.addToBuffer=function(e){_self.lastEditTime=(new Date).getTime(),-1==$.inArray(e,_self.savingBuffer)&&(_self.savingBuffer.push(e),null!=$infoPanel&&$infoPanel.hide())},_self.ajaxResponseCallback=function(e){_self.savingBuffer.shift(),_self.savingInProgress=!1,e.success?0==_self.savingBuffer.length&&(window.onbeforeunload=null,_self.dis
1playSaveCompleted()):MEC_Socle.PopinHelper.openResultPopin(e.data,"fa-exclamation-circle")},_self.checkSavesBeforeRedirect=function(e){if(_self.savingInProgress||_self.savingBuffer.length>0){MEC_Socle.PopinHelper.openLoaderPopin("Enregistrement des modifications en cours..."),editTimeWait=1;var t=setInterval(function(){_self.savingInProgress||0!=_self.savingBuffer.length||(clearInterval(t),e())},200)}else e()},_self.displaySaveInProgress=function(){var e=getOrCreateInfoPanel();e.empty();var t=$("<div>",{class:"saveInProgress"});$("<i>",{class:"fa fa-cog fa-spin fa-fw"}).appendTo(t),$("<span>",{html:"Enregistrement en cours..."}).appendTo(t),t.appendTo(e)},_self.displaySaveCompleted=function(){var e=getOrCreateInfoPanel();e.empty();var t=$("<div>",{class:"saveCompleted"});$("<i>",{class:"fa fa-check"}).appendTo(t),$("<span>",{html:"Modifications enregistrées"}).appendTo(t),t.appendTo(e),setTimeout(function(){1==$(".saveCompleted",$infoPanel).length&&$infoPanel.fadeOut(1e3)},3e3)},_self.init=function(editTimeWaiBeforeSave,additionnalSelectorsWatchBeforeNav){editTimeWaiBeforeSave&&(editTimeWait=editTimeWaiBeforeSave),$(function(){if(setInterval(function(){-1!=editTimeWait&&(new Date).getTime()-_self.lastEditTime>editTimeWait&&!_self.savingInProgress&&_self.savingBuffer.length>0&&(_self.savingInProgress=!0,_self.displaySaveInProgress(),eval(_self.savingBuffer[0])),_self.savingInProgress||_self.savingBuffer.length>0?window.onbeforeunload=function(){return!0}:window.onbeforeunload=null},200),-1!=editTimeWait){var $allDeclencheur=$("#main-nav a.navbar-brand").add("#topMenuList li:not(#search-topmenu):not(#rlMenuItemSearch) a").add("#me-sidebar li a");additionnalSelectorsWatchBeforeNav&&additionnalSelectorsWatchBeforeNav.forEach(function(e){$allDeclencheur=$allDeclencheur.add(e)}),$allDeclencheur.each(function(){"javascript:;"!==$(this).attr("href")&&$(this).attr("href")||!$(this).attr("onclick")||($(this).attr("data-saveoc",$(this).attr("onclick")),$(this).removeAttr("onclick"))}),$allDeclencheur.click(function(event){var clickedLink=this;return MEC_Socle.AsyncPageManager.checkSavesBeforeRedirect(function(){$.fancybox.isOpen&&$.fancybox.close(),$(clickedLink).attr("data-saveoc")?eval($(clickedLink).attr("data-saveoc")):document.location.href=clickedLink.href}),!1})}}),_self.isInit=!0},_self}(jQuery),function(e){e.fn.asynchronizeYoko=function(t){var n,o,i,a,r,s=this,l=e.extend({editSpecialCall:null,saveCallback:null,disabledOnComplete:!1,editByDefault:!1,preventPageQuitOnEdit:!1},t);if(1!=s.length)throw new Error("only one element please");if(0==s.filter("input").length)throw new Error("need input element");function c(){null!=l.editSpecialCall?l.editSpecialCall(s):(o.hide(),i.show(),n.removeClass("input--read"),a.attr("oldVal",a.val()),a.removeClass("input__readonly").addClass("input__asyncedit").removeAttr("disabled"),a.focus().setCursorPosition(a.val().length),l.preventPageQuitOnEdit&&null===window.onbeforeunload&&(window.onbeforeunload=function(){return!0}))}return s.initialize=function(){return s.hasClass("input__disabled")||(a=e(s),(n=a.parents(".input__span")).addClass("asynchronized"),setTimeout(function(){n.hasClass("input--filled")&&n.addClass("input--read")},200),a.attr("disabled","disabled").addClass("input__readonly"),o=e("<a>",{class:"editInputAction inputAction",href:"javascript:;",title:"Modifier",html:"<i class='fas fa-pen'></i><span>Modifier</span>"}),i=e("<a>
1",{class:"validInputAction inputAction"+(l.preventPageQuitOnEdit?" preventBeforeQuitValid":""),href:"javascript:;",title:"Valider",html:"<i class='fas fa-check'></i><span>Valider</span>",style:"display:none"}),n.append(o),n.append(i),o.click(c),i.click(function(){i.attr("disabled")||(checkContentInput(),r=i.html(),i.attr("disabled","disabled").html("<i class='fas fa-spinner fa-spin'></i>"),null!=l.saveCallback&&l.saveCallback(s))}),a.keyup(function(e){13==e.keyCode?i.trigger("click"):27==e.keyCode&&(a.val(a.attr("oldVal")),s.afterSaveComplete())}),l.editByDefault&&c()),s},s.afterSaveComplete=function(){i.html(r).removeAttr("disabled"),a.attr("disabled","disabled").addClass("input__readonly").removeClass("input__asyncedit"),o.show(),i.hide(),l.disabledOnComplete?(a.attr("disabled","disabled").addClass("input__disabled"),o.remove()):n.addClass("input--read"),l.preventPageQuitOnEdit&&null!==window.onbeforeunload&&0==e(".preventBeforeQuitValid:visible").length&&(window.onbeforeunload=null)},s.validationControlFailed=function(){i.html(r).removeAttr("disabled")},s.initialize()},e.fn.setCursorPosition=function(e){return this.each(function(t,n){if(n.setSelectionRange)n.setSelectionRange(e,e);else if(n.createTextRange){var o=n.createTextRange();o.collapse(!0),o.moveEnd("character",e),o.moveStart("character",e),o.select()}}),this}}(jQuery),MEC_Socle.CommonFunctions=function(e,t){var n={},o=null;function i(e){return 0<=e&&e<10?"0"+e.toString():-10<e&&e<0?"-0"+(-1*e).toString():e.toString()}n.captchaHasBeenValidatedOnce=!1,n.mois=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],n.formatDate=function(e,t,n,o,i){var a=e.getDate()<10?"0"+e.getDate().toString():e.getDate().toString(),r=e.getMonth()+1;r=r<10?"0"+r.toString():r.toString();var s=e.getHours()<10?"0"+e.getHours().toString():e.getHours().toString(),l=e.getMinutes()<10?"0"+e.getMinutes().toString():e.getMinutes().toString(),c=e.getSeconds()<10?"0"+e.getSeconds().toString():e.getSeconds().toString(),d=e.getFullYear().toString();o||(d=d.substring(2,4));var u=a+"/"+r+"/"+d;return t&&(u+=(i?" à ":" ")+s+":"+l+(n?":"+c:"")),u},n.formatDateToText=function(e,t){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"][e.getDay()]+" "+e.getDate()+" "+n.mois[e.getMonth()]},n.convertSecondsToTheBestUnits=function(e){return e?(e=parseInt(e))<60?"1 min":e<3600?Math.round(e/60)+" min":Math.floor(e/3600)+"h"+Math.round(e%3600/60)+"m":""},n.createDateFromBDDFormat=function(e){var t=e.substring(0,4),n=parseInt(e.substring(5,7))-1,o=e.substring(8,10),i=0,a=0,r=0;return e.length>12&&(i=e.substring(11,13),a=e.substring(14,16),r=e.substring(17,19)),new Date(t,n,o,i,a,r)},n.formatDateFromBDD=function(e,t,o,i,a){var r=n.createDateFromBDDFormat(e);return n.formatDate(r,t,o,i,a)},n.displayDateToLocal=function(e){var t=60*e.attr("data-tm")*60*1e3,n=new Date(1e3*e.attr("data-timestamp")-t),o=n.getDate()<10?"0"+n.getDate().toString():n.getDate().toString(),i=n.getMonth()+1,a=o+"/"+(i=i<10?"0"+i.toString():i.toString())+"/"+n.getFullYear().toString().substring(0,4);"1"==e.attr("data-withtime")&&(a+=" à "+(n.getHours()<10?"0"+n.getHours().toString():n.getHours().toString())+":"+(n.getMinutes()<10?"0"+n.getMinutes().toString():n.getMinutes().toString()));e.html(a)},n.getLocalDateToSQLFormat=function(e,t){var n=new Date,o=n.getFullYear()+"-"+i(1+n.getMonth())+"-"+i(n.getDate());return e?o:t?o+" 00:00:00":o+" "+i(n.getHours())+":"+i(n.getMinutes())+":"+i(n.getSeconds())},n.convertDateTimeToSQLFormat=function(e,t){var n=e.getFullYear()+"-"+(1+e.getMonth()).toString().padStart(2,"0")+"-"+e.getDate().toString().padStart(2,"0");return t||(n+=" "+e.getHours().toString().padStart(2,"0")+":"+e.getMinutes().toString().padStart(2,"0")+":"+e.getSeconds().toString().padStart(2,"0")),n},n.launchAppliWithAC=function(t,n){return e("#autocoContainer .siteConnectorPopin").attr("data-site",t),e("#autocoContainer .siteConnectorPopin .connexionState").html("<div class='loadTokenGen'><i class='fas fa-spinner fa-spin'></i><span>connexion en cours...</span></div>
1"),MEC_Socle.PopinHelper.openHrefPopin("#autocoContainer",!0,!1),MEC_Socle.AjaxHelper.GenAjaxCaller("mecCreateCrossConnectionToken",{site:t},function(t){e("#autoConnectToAppli").attr("action",n),e("#autoConnectToAppli input[name='token']").val(t.token),e("#autocoContainer .siteConnectorPopin .connexionState").html(`\n <button type="button" class="actionButton" onclick="jQuery.fancybox.close();document.forms['autoConnectToAppli'].submit();">\n Aller sur ${t.siteLib}.fr\n </button>`)}),!1},n.checkNewHOSM=function(){},n.encodeHtmlTags=function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e&&""!=e?e.replace(/[&<>"']/g,function(e){return t[e]}):e},n.htmlDecode=function(t){return e("<textarea/>").html(t).text()},n.htmlEncode=function(t){return e("<textarea/>").text(t).html()},n.toogleMobileNav=function(){var t=e("#mobileMenuNav");if(t.is(":empty")){var o=e("#topMenuList").clone(!0).removeAttr("class");o.find("#navToogler-topmenu").remove(),o.find("li").each(function(){e(this).attr("id","mobile"+e(this).attr("id")).show()});var i=e(window).height()-76;e("#mobileMenuNav").append(o).height(0).show().animate({height:i},250),e("body").hasClass("MESite")?(MECSearchButtonScript.addEventOnMobileMenu("mobilesearch-topmenu"),e("#mobileressources-topmenu a").click(function(){n.toogleMobileNav()})):e("body").hasClass("RLSite")&&MECSearchButtonScript.addEventOnMobileMenu("mobilerlMenuItemSearch")}else t.empty().hide()},n.initSideBar=function(){e("body").addClass("me-sidebar-menu"),e("#me-menu-toggle").on("click",a),e("#me-sidebar-wrapper ul li a").tooltipster({delay:50,side:["right","bottom","top"]})};var a=function(){e("#me-sidebar-wrapper").hasClass("me-sidebar-open")?r():n.openSidebar()},r=function(){e("#me-sidebar-wrapper").add("body").removeClass("me-sidebar-open"),e("#me-sidebar-menu i").attr("class","fas fa-arrow-alt-right"),e("#me-sidebar-wrapper ul li a").tooltipster("enable"),setCookie(cookieSideBar,"close")};return n.openSidebar=function(e){},n.displayTuto=function(t,i,a){n.closeTutoIfOpen(),o=e(t),setTimeout(function(){e(t).addClass("highlightForTuto").tooltipster({content:e("#"+i),side:a,trigger:"custom",triggerClose:{click:!0},interactive:!0,contentAsHTML:!0}).tooltipster("open").tooltipster("instance").on("close",function(){o.removeClass("highlightForTuto")})},500)},n.closeTutoIfOpen=function(){o&&o.tooltipster("close")},n.openTutoVideo=function(t){o&&o.tooltipster("close"),t&&(e("body").hasClass("MOSite")||e("body").hasClass("MHSite")?MEC_Socle.PopinHelper.openVimeoInPopin(t,null,!0):MEC_Socle.PopinHelper.openYoutubeInPopin(t))},n.displayTutoInLeftMenu=function(t,o){n.openSidebar(!0);var i="right";e(window).width()<600&&(i="bottom"),MEC_Socle.CommonFunctions.displayTuto("#me-sidebar ."+t,o,i)},n.changeEnseignantIsENFR=function(t){MEC_Socle.PopinHelper.openLoaderPopin("Enregistrement en cours"),MEC_Socle.AjaxHelper.GenAjaxCaller("mecChangeUserIsENFR",{IsENFR:t?1:0},function(){e.fancybox.close()})},n.generateYoutubeIframe=function(e,t,n){if(""!=getCookie("MEConsentV2Details")&&-1!==getCookie("MEConsentV2Details").indexOf("_youtube=1"))return'<iframe width="'+e+'" height="'+t+'" src="https://www.youtube.com/embed/'+n+'?&autoplay=1&rel=0&controls=0&modestbranding=1&hd=1&autohide=1" frameborder="0" allowfullscreen></iframe>';var o="<div class='youtubeDisabled'><div class='ydText'>Vous êtes sur le point de visionner une vidéo hébergée sur YouTube.<br/>";return o+=" En cliquant sur \"Accepter et visionner\", vous acceptez que YouTube dépose des cookies sur votre navigateur.<br/>(voir notre <a class='lienText' href='/protection-des-donnees-personnelles.'>politique de protection des données personnelles</a>).<br/><br/>",o+="<a class='actionButton siteColorButton' href=\"javascript:MEC_Socle.CookieTierManager.updateCookieConsent('_youtube', 1);MEC_Socle.PopinHelper.openYoutubeInPopin('"+n+"');\">Accepter et visionner</a><br/>",o+="<a class='thirdButton' href='https://www.youtube.com/watch?v="+n+"' target='_blank'>Visionner la vidéo directement sur le site Youtube</a>",o+="</div></div>"},n.infoShowMore=function(e,t){t?(jQuery(e).parents(".info").children("div").show(),jQuery(e).attr("onclick","MEC_Socle.CommonFunctions.infoShowMore(this, false);").html("<i class='fal fa-chevron-double-up'></i>
1Replier")):(jQuery(e).parents(".info").children("div").hide(),jQuery(e).attr("onclick","MEC_Socle.CommonFunctions.infoShowMore(this, true);").html("<i class='fal fa-chevron-double-down'></i>Lire plus"))},n.isNumberKey=function(e){e.which?e.which:e.keyCode;return 8==event.keyCode||46==event.keyCode||37==event.keyCode||39==event.keyCode||!(event.keyCode<48||event.keyCode>57)},n.isMobileDevice=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},n.initIconCaptcha=function(t,o){var i=new Date;e("#js_on").val(i.getFullYear()),n.captchaHasBeenValidatedOnce=!1,e(".iconcaptcha-widget").iconCaptcha({general:{endpoint:MyAjaxVars.captchaurl,showCredits:!1},security:{interactionDelay:500,hoverProtection:!0,displayInitialMessage:!1,initializationDelay:1e3,incorrectSelectionResetDelay:3e3,loadingAnimationDuration:1e3,invalidateTime:12e4},locale:{initialization:{verify:"Contrôle anti-robot",loading:"Chargement du défi sécurité..."},header:"Cliquez sur l'image apparaissant le <b>moins</b> de fois <span>(une même image peut être retournée ou inversée)</span>",correct:"Bien joué",incorrect:{title:"Aïe, raté",subtitle:"Vous avez donné une mauvaise réponse"},timeout:{title:"Veuillez patienter 30 sec.",subtitle:"Trop de tentatives échouées"}}}),e(".iconcaptcha-widget").on("success",function(){n.captchaHasBeenValidatedOnce=!0,e("#lblCaptchaError").html("")}).on("error",function(){MEC_Socle.AjaxHelper.GenAjaxCaller("meCaptchaWrongResponse",{},function(n){n.canLogin||e(t).html("<div id='bruteforceProtectZone'><span id='lblBFProtectErreur' class='input__error'>"+o+"</span></div>")})})},n.resetIconCaptcha=function(){IconCaptcha&&(n.captchaHasBeenValidatedOnce=!1,IconCaptcha.reset())},n.calcTotPriceForCredits=function(t,n,o,i){var a=i-t,r=0,s=0,l=n;return i>0&&a>0&&(e.each(o,function(e,t){return 0===r?(r=e,s=t,!0):(a-=e-r)<=0?(l+=parseFloat(e-r+a)*s,!1):(l+=parseFloat(e-r)*s,r=e,void(s=t))}),a>0&&(l+=a*s)),l},n.calcTheoriqueNonDegrecivePrice=function(e,t,n,o){return(o-e)*n+t},n.notificationEnseignantTreatement=function(t,n,o,i){var a=o?"Enregistrement en cours":"Traitement en cours";
1MEC_Socle.PopinHelper.openLoaderPopin(a),MEC_Socle.AjaxHelper.GenAjaxCaller("mecNotificationEnseignantSetStatus",{notifid:n,accepted:o,templateid:i},function(){if(e(t).parents(".infoTopMessage").remove(),MyAjaxVars.isMontablo&&1===e("#top-menu .notificationLinkToPopin").length){let t=e("#top-menu .notificationLinkToPopin span").text();if(-1!==t.indexOf(" notifications")){let n=parseInt(t.replace(" notifications",""))-1;e("#top-menu .notificationLinkToPopin span").text(n+" notification"+(n>1?"s":""))}else e("#top-menu .notificationLinkToPopin").remove()}e.fancybox.close()})},n.parseAttributeTypeForJSONStoreInBDD=function(e,t){return Object.keys(e).forEach(n=>{if(void 0===t[n])return;const o=e[n];let i=t[n];switch(typeof o){case"number":i=Number(i),isNaN(i)&&(i=o);break;case"boolean":i="true"===i||!0===i;break;case"string":i=String(i);break;case"object":try{i=JSON.parse(i)}catch(e){}}e[n]=i}),e},n.lightenColor=function(e,t){e=e.replace("#","");const n=parseInt(e.substring(0,2),16),o=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16),a=Math.round(n+(255-n)*t/100),r=Math.round(o+(255-o)*t/100),s=Math.round(i+(255-i)*t/100);return"#"+a.toString(16).padStart(2,"0")+r.toString(16).padStart(2,"0")+s.toString(16).padStart(2,"0")},n.getSameOriginTopWindow=function(){let e=window;for(;e.parent!==e;)try{if(e.parent.location.origin!==e.location.origin||e.Cypress)break;e=e.parent}catch(e){break}return e},e(function(){1==e("#me-sidebar-wrapper").length&&n.initSideBar(),setTimeout(function(){e(".mecTimezoneToAdjust").each(function(){n.displayDateToLocal(e(this))})},20)}),n}(jQuery),MEC_Socle.PswPopin=function(e,t){var n={updatePswCircles:function(){var t=e("#studentPsw").attr("data-finalval").length,n=e("#studentPsw .round").length;if(e("#studentPsw .round").removeClass("filled").removeAttr("style"),e("#studentPsw .round:lt("+t+")").addClass("filled"),n<t&&(e("#studentPsw").append("<div class='round filled'></div>"),n++),n>3){var o=Math.floor((e("#studentPsw").width()-5*n)/n);o>50&&(o=50),e("#studentPsw .round").width(o).height(o)}},erasePsw:function(){e("#studentPsw").attr("data-finalval","").find(".round").not(".initial").remove(),n.updatePswCircles()},numberPadClickPsw:function(t){e("#studentPsw").attr("data-finalval").length<10&&e("#studentPsw").attr("data-finalval",e("#studentPsw").attr("data-finalval")+t.toString()),n.updatePswCircles()},init:function(){e(window).on("keydown",function(t){if(e("#studentPsw").is(":visible"))if(13==t.which)e("#divValidStudPsw").trigger("click");else if(8==t.which||46==t.which)n.erasePsw();else{var o=parseInt(t.key);!isNaN(o)&&o>=0&&o<10&&n.numberPadClickPsw(o)}})}};return n}(jQuery),MEC_Socle.PswStrongChecked=function(e){const t=jQuery("#"+e),n=t[0],o=t.parent().find(".input__label")[0],i=o.querySelector(".pswIndicator"),a=i.querySelector(".weak"),r=i.querySelector(".medium"),s=i.querySelector(".strong"),l=t.parent().find(".pswIndicatorText")[0];var c=/[a-z]/,d=/[A-Z]/,u=/\d+/,p=/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/;t.focus(function(){o.classList.add("withPswStrongCheck"),i.style.display="flex"}),t.blur(function(){o.classList.remove("withPswStrongCheck"),i.style.display="none"}),t.keyup(function(){if(""!=n.value){var e=0;n.value.match(c)&&e++,n.value.match(d)&&e++,n.value.match(u)&&e++,n.value.match(p)&&e++,n.value.length<=3&&e>=1&&(no=1),n.value.length>=6&&e>=2&&(no=2),n.value.length>=9&&e>=4&&(no=3),1==no&&(a.classList.add("active"),l.textContent="Mot de passe faible",l.classList.add("weak")),2==no?(r.classList.add("active"),l.textContent="Mot de passe moyen",l.classList.add("medium")):(r.classList.remove("active"),l.classList.remove("medium")),3==no?(a.classList.add("active"),r.classList.add("active"),s.classList.add("active"),l.textContent="Mot de passe fort",l.classList.add("strong")):(s.classList.remove("active"),l.classList.remove("strong"))}else l.textContent="Mot de passe"})},MEC_Socle.CookieTierManager=function(e,t){var n={},o=getCookie("MEConsentV2Details");return n.updateCookieConsent=function(e,t){var n=new Date;n.setTime(n.getTime()+314496e5),-1===o.indexOf(e)?setCookie("MEConsentV2Details",o+=e+"="+t,n):setCookie("MEConsentV2Details",o.substring(0,o.indexOf(e))+e+"="+t+o.substring((e+"="+t).length,o.length),n)},n}(jQuery),MEC_Socle.SchoolChoicePopin=function(e,t){var n={},o=null,i=null,a="<span class='solutions infoSecondaire'>Veuillez vérifier que le pays sélectionné correspond bien à celui de votre école et si besoin, <a class='lienText' href='javascript:;' onclick='MEC_Socle.SchoolChoicePopin.ecoleNotExists(this, false);'>
1cliquez ici pour nous soumettre un nouvel établissement</a>.</span>",r="<span class='solutions infoSecondaire'>Veuillez vérifier que le code postal saisi correspond bien à celui de votre école (vous pouvez effectuer une recherche sur <a class='lienText' href='https://www.education.gouv.fr/annuaire' target='_blank'>l'annuaire de l'Ãducation Nationale</a>) et si besoin, <a class='lienText' href='javascript:;' onclick='MEC_Socle.SchoolChoicePopin.ecoleNotExists(this, true);'>cliquez ici pour nous soumettre un nouvel établissement</a>.</span>";function s(t,n,o){e("#cpSearchZone").hide(),e("#EcoleAlreadyChoiced").hide(),e("#EcoleCreationForm").hide(),e("#EcoleChoiceList").show().attr("data-fromcpsearch",t),o?(e("#cpSearched").html(o),e("#rememberCPZone a").html(t?"Chercher avec un autre code postal":"Chercher dans un autre pays"),e("#rememberCPZone").show()):e("#rememberCPZone").hide();var i=e("#cboEtablissementList");e("option",i).not(".defaultVal").remove(),e("#recapEcoleSelected > div").empty(),e("#recapEcoleSelected").hide(),e("#schoolNotExistsLink").show(),n.forEach(function(t,n){e("<option>",{value:t.id,dataindex:n,html:t.nom}).appendTo(i)}),e("#schoolNotExistsLink").html("Mon établissement ne fait pas partie de cette liste."),e.fancybox.update()}return n.searchSchools=function(t){if(!e(t).attr("disabled")){e("#lblCPError").html("");var n=e("#txtCodepostalSearch").val();n.length>=4?(e(t).attr("disabled",!0),e(t).html("<i class='fas fa-spin fa-spinner'></i><span class='addLeftPadding'>Recherche en cours</span>"),MEC_Socle.AjaxHelper.GenAjaxCaller("mecSearchSchools",{cp:n},function(i){e(t).attr("disabled",!1),e(t).html("Rechercher"),null!=(o=i.schools)&&o.length>0?s(!0,o,n):e("#lblCPError").html("<span class='noSchool'>Aucun établissement trouvé.</span><br/>"+r)})):e("#lblCPError").html("Code postal incorrect")}},n.searchSchoolsByCountry=function(t){if(!t.disabled){e("#lblCountryError").html("");var n=e("#cboSchoolPays").val();n&&(t.disabled=!0,e("#lblCountryError").html("<i class='fas fa-spin fa-spinner'></i><span class='addLeftPadding'>Recherche en cours</span>"),MEC_Socle.AjaxHelper.GenAjaxCaller("mecSearchSchools",{country:n},function(n){t.disabled=!1,null!=(o=n.schools)&&o.length>0?(e("#lblCountryError").html(""),s(!1,o,e("#cboSchoolPays option:selected").html())):e("#lblCountryError").html("<span class='noSchool'>Aucun établissement trouvé.</span><br/>"+a)}))}},n.returnToResearch=function(){o=null,i=null,e("#cpSearchZone").show(),e("#cboSchoolPays option[value='']").prop("selected",!0),e("#txtCodepostalSearch").val(""),e("#EcoleAlreadyChoiced").hide(),e("#EcoleChoiceList").hide(),e("#EcoleCreationForm").hide(),e("#lblCountryError").add("#lblCPError").html(""),e.fancybox.update()},n.ecoleNotExistsMessageFirst=function(t){e(t).html("true"==e("#EcoleChoiceList").attr("data-fromcpsearch")?r:a),e.fancybox.update()},n.ecoleNotExists=function(t,n){o=null,i=null,e("#cpSearchZone").hide(),e("#EcoleAlreadyChoiced").hide(),e("#EcoleChoiceList").hide(),e("#EcoleCreationForm").show(),n?(e("#txtCodepostal").val(e("#txtCodepostalSearch").val()).parents(".oneFieldLine").show(),e("#txtCountry").val("France")):(e("#txtCodepostal").val("00000").parents(".oneFieldLine").hide(),e("#txtCountry").val(e("#cboSchoolPays option:selected").html())),checkContentInput(),e("#txtNom").focus().select(),e.fancybox.update()},n.changeEnseignantSchool=function(t){null===i||t.disabled||(t.disabled=!0,MEC_Socle.PopinHelper.openLoaderPopin("Enregistrement en cours..."),MEC_Socle.AjaxHelper.GenAjaxCaller("mecSetEnseignantSchool",{schoolid:i.id},function(){i.adminID>0?MEC_Socle.SchoolAdministratorPopin.initDelegationAutorisation(null,i.adminName):(e.fancybox.close(),1==e("#ecoleInputOpenPopin").length&&document.location.reload())},t))},n.sendNewEcole=function(t){if(!t.disabled){if(""==e("#txtNom").val())return void e("#lblNomError").html("Champ obligatoire");if(""==e("#txtAdresse").val())return void e("#lblAdresseError").html("Champ obligatoire");if(""==e("#txtCodepostal").val())return void e("#lblCPPropError").html("Champ obligatoire");if(""==e("#txtVille").val())return void e("#lblVilleError").html("Champ obligatoire");if(""==e("#txtCountry").val())return void e("#lblPaysError").html("Champ obligatoire");
1t.disabled=!0,MEC_Socle.PopinHelper.openLoaderPopin("Enregistrement en cours..."),MEC_Socle.AjaxHelper.GenAjaxCaller("mecProposeNewSchool",{name:e("#txtNom").val(),address:e("#txtAdresse").val(),cp:e("#txtCodepostal").val(),city:e("#txtVille").val(),country:e("#txtCountry").val()},function(){e.fancybox.close(),1==e("#ecoleInputOpenPopin").length&&document.location.reload()},t)}},n.removeSchoolChoice=function(t,n){1!=e("#pageParamSchoolIsTheAdmin").length||n?(MEC_Socle.PopinHelper.openLoaderPopin("Suppression en cours..."),MEC_Socle.AjaxHelper.GenAjaxCaller("mecDissociateEnseignantFromSchool",{schoolid:t},function(){e.fancybox.close(),document.location.reload()})):MEC_Socle.PopinHelper.openSimpleInformationPopin("En supprimant votre établissement d'affectation, vous renoncez à votre statut d'administrateur de cette établissement. Etes-vous sûr de vouloir continuer ?",!0,function(n){n?window.MEC_Socle.SchoolChoicePopin.removeSchoolChoice(t,!0):e.fancybox.close()})},n.init=function(){e("#txtCodepostalSearch").keypress(function(t){13==t.keyCode&&n.searchSchools(e(".EcoleSearchCP .actionButton")[0])}),e("#cboEtablissementList").change(function(){var t=e("#cboEtablissementList option:selected");""!=t.val()&&o?(i=o[t.attr("dataindex")],function(){e("#schoolNotExistsLink").hide();var t=e("#recapEcoleSelected > div");e("#cboEtablissementList").disabled=!0,t.html("<i class='fas fa-spin fa-spinner'></i><span class='addLeftPadding'>Recherche en cours</span>").show(),MEC_Socle.AjaxHelper.GenAjaxCaller("mecGetSchool",{schoolid:i.id},function(n){e("#cboEtablissementList").disabled=!1;var o="00000"!=(i=n.school).cp?i.cp:"";t.html("<div>"+i.nom+"</div><div>"+i.adresse+"</div>"+(i.lieuDit?"<div>"+i.lieuDit+"</div>":"")+"<div>"+o+" "+i.commune+"</div>"),e("#recapEcoleSelected").show(),e.fancybox.update()})}()):(i=null,e("#schoolNotExistsLink").show(),e("#recapEcoleSelected").hide())}),e("#cboSchoolPays").change(function(){n.searchSchoolsByCountry(this)}),1==e("#pageParamSchoolID").length&&(e("#cpSearchZone").hide(),e("#EcoleCreationForm").hide(),e("#EcoleChoiceList").hide(),1==e("#pageParamSchoolIsTheAdmin").length&&e("#modifActualSchool").hide(),e("#EcoleAlreadyChoiced").show()),setTimeout(function(){e.fancybox.isOpen||MEC_Socle.PopinHelper.openHrefPopin("#popinASkEnseignantEcole",!0,!1,null)})},n}(jQuery),MEC_Socle.SchoolAdministratorPopin=function(e,t){var n={becomeAdmin:function(){MEC_Socle.PopinHelper.openLoaderPopin("Enresgitrement en cours"),MEC_Socle.AjaxHelper.GenAjaxCaller("mecBecomeSchoolAdministrer",{schoolid:e("#pageParamSchoolID").val()},function(){e.fancybox.close(),document.location.reload()})},statusDelegation:function(t){MEC_Socle.PopinHelper.openLoaderPopin("Enresgitrement en cours"),MEC_Socle.AjaxHelper.GenAjaxCaller("mecSchoolDelegationAutorisation",{accept:t},function(){e.fancybox.close(),document.location.reload()})},statusSchoolInvitation:function(t,n){MEC_Socle.PopinHelper.openLoaderPopin("Modification en cours"),MEC_Socle.AjaxHelper.GenAjaxCaller("mecAcceptOrRefuseSchoolInvitation",{schoolid:t,status:n},function(){e.fancybox.close(),document.location.reload()})},initDelegationAutorisation:function(t,n){var o=e("<div>",{id:"SchoolAcceptDelegationPopin"});e("<h1>",{class:"titrePage",html:"Délégation d'administration"}).appendTo(o),e("<div>",{class:"explications",html:"Votre établissement est actuellement administré par "+(n||e("#ecoleAdmin").val())+".<br/>En tant que membre de cet établissement, vous pouvez accepter ou refuser de déléguer certaines tâches de gestion de votre compte à cet utilisateur.<br/><br/>Actuellement le compte administrateur permet : <br/><ul><li>d'associer / dissocier des comptes enseignant à l'établissement</li><li>de gérer les abonnements des comptes enseignant</li></ul>"}).appendTo(o);var i=e("<div>",{class:"buttonFlexContainer"}).appendTo(o);e("<a>",{class:"thirdButton cancelIcon",href:"javascript:;",onclick:"MEC_Socle.SchoolAdministratorPopin.statusDelegation(false);",html:"Refuser"}).appendTo(i),e("<a>",{class:"actionButton siteColorButton validateIcon",href:"javascript:;",onclick:"MEC_Socle.SchoolAdministratorPopin.statusDelegation(true);",html:"Accepter"}
1).appendTo(i),MEC_Socle.PopinHelper.openGenericHtmlPopin(o,!0,!1)},initBecomeAdmin:function(){var t=e("<div>",{id:"SchoolAdministrerPopin"});e("<h1>",{class:"titrePage",html:"Devenir administrateur"}).appendTo(t),e("<div>",{class:"explications",html:"Votre établissement n'a actuellement pas de compte administrateur attitré.<br/>Si vous souhaitez devenir cet administrateur, vos collègues seront invités à accepter ou à refuser cette délégation de droit sur leur compte.<br/><br/><div class='compteAdminList'>Le compte administrateur permet actuellement : <br/><ul><li>d'associer / dissocier des comptes enseignant à l'établissement</li><li>de gérer les abonnements des comptes enseignant</li></ul></div><br/>En devenant administrateur d'établissement, vous acceptez que les autres utilisateurs voient apparaitre votre nom (champ \"Nom complet\" de votre compte) de façon partiellement masqué comme ceci : "+e("#pageParamSchoolUserPartialName").val()}).appendTo(t);var n=e("<div>",{class:"buttonFlexContainer"}).appendTo(t);e("<a>",{class:"thirdButton",href:"javascript:;",onclick:"jQuery.fancybox.close();",html:"annuler"}).appendTo(n),e("<a>",{class:"actionButton siteColorButton",href:"javascript:;",onclick:"MEC_Socle.SchoolAdministratorPopin.becomeAdmin();",html:"Devenir l'administrateur"}).appendTo(n),MEC_Socle.PopinHelper.openGenericHtmlPopin(t,!0,!1)}};return n}(jQuery),MEC_Socle.PopinHelper=function(e,t){var n={},o=void 0;return n.genericFancyboxCaller=function(t,n,o,i,a){var r=e.extend({closeBtn:t,helpers:{overlay:{closeClick:n,locked:o}},afterClose:i,transitionIn:"elastic",transitionOut:"elastic",titleShow:!1},a);e.fancybox(r)},n.openLoaderPopin=function(e){var t='<div class="popinContentCenter"> <div> <i class="fa fa-cog fa-spin fa-3x fa-fw" style="margin: auto; font-size: -webkit-xxx-large;"></i><br/> <span style="margin-top:10px;display:block;">'+e+"</span> </div></div>";n.openGenericHtmlPopin(t,!1,!1)},n.openResultPopin=function(e,t,o){void 0===o&&(o=!0);var i='<div class="popinContentCenter"> <div> <i class="fa '+t+' fa-3x" style="margin-left: 0px; font-size: -webkit-xxx-large;"></i><br/> <span style="margin-top:10px;display:block;">'+e+"</span> </div></div>";n.openGenericHtmlPopin(i,o,o)},n.openSimpleInformationPopin=function(e,t,i){o=i;var a='<div class="simpleInformationPopin"> <div> <span style="display:block;">'+e+" </span> </div>";a+=t?' <div class="buttonFlexContainer"> <button class="thirdButton cancelIcon" onclick="MEC_Socle.PopinHelper.sipCallback(false);">Non</button> <button type="submit" class="actionButton validateIcon siteColorButton meautofocus" onclick="MEC_Socle.PopinHelper.sipCallback(true);">Oui</button> </div></div>':' <div class="buttonFlexContainer"> <button class="actionButton validateIcon siteColorButton meautofocus" onclick="jQuery.fancybox.close();MEC_Socle.PopinHelper.sipCallback(false);">OK</button> </div></div>',n.genericFancyboxCaller(!1,!1,!1,null,{type:"html",afterShow:function(){jQuery(".meautofocus").focus()},content:a})},n.sipCallback=function(e){o&&o(e)},n.openStudentLostPswPopin=function(){n.openGenericHtmlPopin('<div class="popinContentCenter"> <div> <i class="fas fa-info-circle" style="margin: auto; font-size: -webkit-xxx-large;"></i><br/> <span style="margin-top:10px;display:block;">L\'identifiant et le mot de passe est choisi par ton professeur. Si tu ne les connais pas, demande-lui.</span> </div> <div style="margin: 20px; font-size: 0.9em; font-style: italic;"> Mémo pour les professeurs : ces informations peuvent être consultées / modifiées depuis votre compte enseignant, page "Mes élèves". </div></div>',!0,!1)},n.openGenericHtmlPopin=function(e,t,o,i,a){void 0===a&&(a=!1),n.genericFancyboxCaller(t,o,a,i,{type:"html",content:e})},n.openContentPopinWithoutBorder=function(e,t,o,i){n.genericFancyboxCaller(t,o,!1,i,{type:"html",wrapCSS:"withoutShadow",content:e,padding:0})},n.openIframePopin=function(e,t,o,i){n.genericFancyboxCaller(t,o,!1,i,{type:"iframe",href:e})},n.openIframeSizedWidthPopin=function(e,t,o,i,a,r){var s="auto";-1!=r&&(s=jQuery(window).width()*r),n.genericFancyboxCaller(o,i,!1,a,{type:"iframe",width:s,height:"auto",autoSize:!1,scrolling:t,href:e})},n.openIframePopinWithoutBorder=function(e,t,o,i){n.genericFancyboxCaller(t,o,!1,i,{type:"iframe",href:e,padding:0})},n.openHrefPopin=function(e,t,o,i){n.genericFancyboxCaller(t,o,!1,i,{href:e})},n.openHrefPopinWithoutBorder=function(e,t,o,i,a){n.genericFancyboxCaller(t,o,!1,i,{afterShow:a,href:e,padding:0})},n.openYoutubeInPopin=function(e){var t=.85*jQuery(window).width(),o=.85*jQuery(window).height();n.genericFancyboxCaller(!0,!0,!1,null,{type:"html",content:MEC_Socle.CommonFunctions.generateYoutubeIframe(t,o,e)})},n.openVimeoInPopin=function(t,o,i){var a=Math.round(.85*e(window).width()),r=Math.round(9*a/16);r>.85*e(window).height()&&(r=Math.round(.85*e(window).height()),a=Math.round(16*r/9));var s="vimeoFrame"+t,l="?dnt=1";-1!==t.indexOf("?")&&(s=s.substring(0,s.indexOf("?")),l="&dnt=1"),n.genericFancyboxCaller(!0,!0,!1,o,{type:"html",wrapCSS:"withoutShadow",padding:0,content:'<iframe id="'+s+'" src="https://player.vimeo.com/video/'+t+l+'" width="'+a+'" height="'+r+'" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>',afterShow:function(){if(i&&Vimeo){var e=document.querySelector("#"+s);new Vimeo.Player(e).on("ended",function(){jQuery.fancybox.close()})}}})},n.openImageOnly=function(e,t){n.genericFancyboxCaller(!1,!0,!1,t,{type:"image",href:e,padding:0,opacity:!0,beforeShow:function(){jQuery(".fancybox-skin").css("background","transparent").css("box-shadow","none")}})},n.openCSVGeneratedPopin=function(e){var t='<div class="popinContentCenter"> <div> <i class="fa fa-check-circle fa-3x" style="margin-left: 0px; font-size: -webkit-xxx-large;"></i><br/>
1 <span style="margin:10px auto;display:block;"> Fichier CSV généré. </span> <div class="buttonFlexContainer"> <a class="thirdButton" href="/enseignant/">Retourner à l\'accueil</a> <a class="actionButton withDownloadIcon" href="'+e+'" download> Télécharger </a> </div> </div></div>';n.openGenericHtmlPopin(t,!0,!0)},n.openPDFGeneratedPopin=function(e,t){var n='<div class="popinContentCenter"> <div style="display:block;"> <i class="fa fa-check-circle fa-3x" style="margin-left: 0px; font-size: -webkit-xxx-large;"></i><br/> <span style="margin:10px auto;display:block;"> '+(t?"Votre bon de commande PDF a été généré":"Fichier PDF généré")+'. </span> <div class="buttonFlexContainer"> <a class="thirdButton" href="/enseignant/">Retourner à l\'accueil</a> <a class="actionButton withDownloadIcon" href="'+e+'" target="_blank"> Télécharger </a> </div> </div></div>';MEC_Socle.PopinHelper.openGenericHtmlPopin(n,!0,!1)},n.tryToCloseAppLinkPopinAfterDelay=function(){document.hidden&&e.fancybox.isOpen&&1==e(".fancybox-inner #msgAvoidToOpenNewTab").length?e.fancybox.close():setTimeout(function(){e.fancybox.isOpen&&1==e(".fancybox-inner #msgAvoidToOpenNewTab").length&&e.fancybox.close()},6e3)},n}(jQuery),MEC_Socle.ConstructIframeHelper=function(e,t){var n={constructGameIframeLoaded:!1,constructGameTimeLoadLimit:60,rememberURL:"",checkConstructGameIsLoaded:function(){n.constructGameIframeLoaded=!1;var t=0,o=setInterval(function(){if(1==e("#amoOverlayIframe").contents().find("head meta[name='generator']").length&&-1!==e("#amoOverlayIframe").contents().find("head meta[name='generator']").attr("content").indexOf("Construct"))n.constructGameIframeLoaded=!0,clearInterval(o);else if((t+=1)>n.constructGameTimeLoadLimit){clearInterval(o);var i=e("#amoOverlayIframe")[0];"about:blank"!==i.src&&(n.rememberURL=i.src),i.src="about:blank",i.srcdoc="<html style='width: 100%;height: 100%;background: black;color: white;font-size: 27px;font-family: 'Nunito',sans-serif!important;><body style='width: 100%;height: 100%'><div style='width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;'>Zut, le jeu n'a pas pu démarrer. <a href='javascript:;' style='display: inline-block; padding: 10px 30px; border-radius: 30px; background-color: white; color: black; margin: 30px; text-decoration: none;' onclick='parent.MEC_Socle.ConstructIframeHelper.checkConstructGameIsLoaded(); document.location.href=\""+n.rememberURL+"\";'>Réessayer</a></div></body></html>"}},1e3)}};return 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.