PageSourceSearch

https://rozoy-sur-serre.fr/public/js/iminence/index.min.js?t=2026100223

js rozoy-sur-serre.fr collected 2026-10-02 21:32:15 UTC 15,579 bytes, 1 lines download raw bytes

1$(document).ready(function(e){"use strict";var t=e("main"),o='<div class="spinner-border spinner-border-sm" role="status"></div>',a=e.browser;if(!a){var i=navigator.userAgent.toLowerCase(),n=/(msie) ([\w.]+)/.exec(i)||!/compatible/.test(i)&&/(mozilla)/.exec(i)||[];(a={version:n[2]})[n[1]]=!0}e.Site={version:"3.0.1",lang:e("html").attr("lang"),host:"https://"+document.domain,iconLoading:o,hostShare:{FR:"https://share.iminence.com/FR",EN:"https://share.iminence.com/EN"},Page:{folder:t.data("folder"),source:t.data("source"),ajaxURL:this.host+"/page/"+t.data("folder")+"/public/ajax/"+t.data("source")+".php"},Dialog:{_open:function(e,t,o){this.open(e,t,o)},_close:function(){this.close()},open:function(t,o,a){"{host}"===String(t.match(/{host}/))&&(t=t.replace("{host}",e.Site.host)),e.ajax({method:"POST",url:t,data:{data:o},dataType:"html"}).done(function(t){e("#modal > .modal-dialog").hasClass("modal-sm")&&e("#modal > .modal-dialog").removeClass("modal-sm"),e("#modal > .modal-dialog").hasClass("modal-lg")&&e("#modal > .modal-dialog").removeClass("modal-lg"),"sm"===a&&e("#modal > .modal-dialog").addClass("modal-sm"),"lg"===a&&e("#modal > .modal-dialog").addClass("modal-lg"),e("#modal > .modal-dialog > .modal-content").html(t),e("#modal").modal("show",{backdrop:"static",keyboard:!1})})},close:function(){e("#modal > .modal-dialog").hasClass("modal-sm")&&e("#modal > .modal-dialog").removeClass("modal-sm"),e("#modal > .modal-dialog").hasClass("modal-lg")&&e("#modal > .modal-dialog").removeClass("modal-lg"),e("#modal > .modal-dialog > .modal-content").html(""),e("#modal").modal("hide")}},DialogAlert:{_open:function(t,o,a){e("#dialogAlert").length||(e("main").prepend('<div id="dialogAlert" class="dialog-alert"><div class="dialog-alert-content"><header></header><section></section><footer></footer></div></div>'),e("#dialogAlert >.dialog-alert-content >footer").html('<div class="text-center"><button role="button" type="button" class="btn btn-default close-dialog-alert">OK</button></div>')),t.length>0?e("#dialogAlert >.dialog-alert-content >header").html(t).show():e("#dialogAlert >.dialog-alert-content >header").empty().hide(),o.length>0?e("#dialogAlert >.dialog-alert-content >section").html(o).show():e("#dialogAlert >.dialog-alert-content >section").empty().hide(),e("#dialogAlert").addClass("dialog-alert-"+a+" open")},_close:function(){e("#dialogAlert").hasClass("dialog-alert-danger")&&e("#dialogAlert").removeClass("dialog-alert-danger"),e("#dialogAlert").hasClass("dialog-alert-success")&&e("#dialogAlert").removeClass("dialog-alert-success"),e("#dialogAlert").hasClass("dialog-alert-warning")&&e("#dialogAlert").removeClass("dialog-alert-warning"),e("#dialogAlert").hasClass("dialog-alert-info")&&e("#dialogAlert").removeClass("dialog-alert-info"),e("#dialogAlert").removeClass("open")}},Tool:{_checkEmail:function(e){return!!new RegExp("^[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*[.]{1}[a-z]{2,6}$","i").test(e)},checkEmail:function(e){return!!new RegExp("^[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*[.]{1}[a-z]{2,6}$","i").test(e)},checkPassword:function(e){var t=0;return e.length>=3&&e.length<=4?t+=1:5===e.length?t+=2:e.length>=6&&(t+=4),e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(t+=1),e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)&&(t+=1),e.match(/([!,%,&,@,#,$,^,*,?,_,~])/)&&(t+=1),e.match(/(.*[!,%,&,@,#,$,^,*,?,_,~].*[!,%,&,@,#,$,^,*,?,_,~])/)&&(t+=1),t>=6?{process:!0,strength:t,strengthRequire:6}:{process:!1,strength:t,strengthRequire:6}}}},e("body").on("click",".open-dialog",function(){e.Site.Dialog._open(e(this).data("file"),e(this).data("data"),e(this).data("size"))}),e("body").on("click",".close-dialog",function(){e.Site.Dialog._close()}),e("body").on("click",".open-dialog-alert",function(){e.Site.DialogAlert._open(e(this).data("title"),e(this).data("content"),e(this).data("level"))}),e("body").on("click",".close-dialog-alert",function(){e.Site.DialogAlert._close()}),e(".ajax-loading").length&&e(".ajax-loading").html(o),e.iminence={version:"4.0.1",host:"https://"+document.domain,hostCDN:"https://www.icms.ovh",Notification:{_show:function(t,o,a,i){if("granted"===Cookies.get("notification")){var n={};
1return o&&(n.body=o),a&&(n.icon="logo-company"==a?e.Site.host+"/public/img/logo-company.png":a),i&&(n.data=i),new Notification(t,n)}return!1},_request:function(){"Notification"in window?"default"===Notification.permission?Notification.requestPermission(function(t){e.iminence.Notification._save(t)}):e.iminence.Notification._save(Notification.permission):e.iminence.Notification._save("false")},_save:function(e){return Cookies.get("notification")!==e&&Cookies.set("notification",e),!0}},geolocation:{coords:!1,_ready:function(){if("https:"===location.protocol){var e=this._getCoords();if(!e||void 0===e){if(navigator.geolocation){navigator.geolocation.getCurrentPosition(this._saveCoords,this._failCoords,{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})}return!0}}return!1},_saveCoords:function(t){var o=this;e.ajax({method:"POST",url:e.Site.host+"/public/ajax/visitor.php",data:{action:"saveGeolocation",position:t.coords},dataType:"json"}).done(function(a){if(a.process){var i={latitude:t.coords.latitude,longitude:t.coords.longitude};e.ajax({method:"POST",url:e.Site.host+"/public/ajax/companyAPI.getKey.php",data:{reference:"google_maps_js"},dataType:"json"}).done(function(t){t.process?e.getScript("https://maps.googleapis.com/maps/api/js?key="+t.key).done(function(){var e=new google.maps.Geocoder,t=new google.maps.LatLng(i.latitude,i.longitude);e.geocode({latLng:t},function(e,t){if(t===google.maps.GeocoderStatus.OK)if(e[0]){var o=e[0].formatted_address;o=o.split(","),i.city=o[1].substring(7),i.zipCode=o[1].substring(1,6),i.country=o[2].substring(1),Cookies.set("geolocation",i)}else Cookies.set("geolocation",i);else Cookies.set("geolocation",i)})}):Cookies.set("geolocation",i),o.coords=!0})}else Cookies.set("geolocation",!1)})},_failCoords:function(e){Cookies.set("geolocation",!1)},_getCoords:function(){return!!this.coords&&Cookies.getJSON("geolocation")}},getHost:function(){return this.host},getIconLoading:function(){return o},getBlockEditor:function(){return!1},checkEmail:function(e){return!!new RegExp("^[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*[.]{1}[a-z]{2,6}$","i").test(e)},getTimeBetweenTwoDates:function(e,t){var o={},a=t-e;return a=Math.floor(a/1e3),o.sec=a%60,a=Math.floor((a-o.sec)/60),o.min=a%60,a=Math.floor((a-o.min)/60),o.hour=a%24,a=Math.floor((a-o.hour)/24),o.day=new Number(t/864e5-e/864e5).toFixed(0),o},getWeekdayByNumber:function(e){var t=[];return t[0]="Dimanche",t[1]="Lundi",t[2]="Mardi",t[3]="Mercredi",t[4]="Jeudi",t[5]="Vendredi",t[6]="Samedi",t[e]},openDialog:function(t,o,a){e.Site.Dialog._open(t,o,a)},closeDialog:function(){e.Site.Dialog._close()}},e.uploadFiles={ready:function(t,o){if(""!=t.target.value){o.attr("class","form-group"),o.find(">.input-group >.input-group-append >.input-group-text").html(e.Site.iconLoading);var a=t.target.files;return a.rename=!!t.target.dataset.name.length&&t.target.dataset.name,a.shown=!!t.target.dataset.shown.length&&t.target.dataset.shown,a.folder=t.target.dataset.folder.length?t.target.dataset.folder:"upload",e.uploadFiles.done(a,o),!0}return o.find(">.input-group >.input-group-append >.input-group-text").html('<i class="icofont-clock-time"></i>'),!1},done:function(t,o){var a=this,i=new FormData;e.each(t,function(e,t){i.append(e,t)}),e.ajax({method:"POST",url:e.Site.host+"/public/ajax/uploadFiles.php?folder="+t.folder,data:i,cache:!1,dataType:"json",processData:!1,contentType:!1}).done(function(e){return e.process?(a.complete(e.target,t,o),!0):(a.fail(e.message,o),!1)}).fail(function(e,t,i){return console.log(e),console.log(t),console.log(i),a.fail(t,o),!1})},fail:function(e,t){return t.addClass("has-warning"),t.find(".form-control").val(""),t.find(">.input-group >.input-group-append >.input-group-text").html('<i class="icofont-exclamation-circle"></i>'),t.parent().find(".alert").length?t.parent().find(".alert").html("<b>Avertissement !</b><br>"+e+"."):alert(e),!1},complete:function(t,o,a){if(o.rename)return e.renameFiles.ready(o.folder,t.name,t.format,o.rename,o.shown,a),!0;if(o.shown){var i=t.format.toLowerCase();"jpg"===i||"png"===i||"gif"===i||"jpeg"===i?e(o.shown).attr("src",e.Site.host
1+"/"+o.folder+"/"+t.name+"."+t.format):"pdf"===i?e(o.shown).attr("src",e.Site.host+"/public/img/icon/download-file-pdf.png"):e(o.shown).attr("src",e.Site.host+"/public/img/icon/upload-file-success.png")}return a.addClass("has-success"),a.find(".form-control").val(""),a.find(">.input-group >.input-group-append >.input-group-text").html('<i class="fa fa-check"></i>'),!0}},e.renameFiles={ready:function(t,o,a,i,n,l){t.length>0&&o.length>0&&a.length>0&&e.renameFiles.done(t,o,a,i,n,l)},done:function(t,o,a,i,n,l){var s=this;e.ajax({method:"POST",url:e.Site.host+"/public/ajax/remaneFiles.php",data:{folder:t,name:o,format:a,rename:i},dataType:"json"}).done(function(e){return e.process?(s.complete(e,n,l),!0):(s.fail(e.message,n,l),!1)}).fail(function(e,t,o){var a={jqXHR:e,textStatus:t,errorThrown:o};return s.fail(a,l),!1})},fail:function(e,t,o){return o&&(o.addClass("has-warning"),o.find(".form-control").val(""),o.find(">.input-group >.input-group-append >.input-group-text").html('<i class="icofont-exclamation-circle"></i>')),!1},complete:function(t,o,a){if(a&&(a.addClass("has-success"),a.find(".form-control").val(""),a.find(">.input-group >.input-group-append >.input-group-text").html('<i class="icofont-verification-check"></i>')),o){var i=t.file.host;null!==i.match(/.jpg/gi)||null!==i.match(/.png/gi)||null!==i.match(/.gif/gi)||null!==i.match(/jpeg/gi)?e(o).attr("src",i+"?t="+(new Date).getTime()):null!==i.match(/.pdf/gi)?e(o).attr("src",e.Site.host+"/public/img/icon/download-file-pdf.png"):e(o).attr("src",e.Site.host+"/public/img/icon/upload-file-success.png")}return!0}},e("body").on("change",".form-control-upload",function(t){e.uploadFiles.ready(t,e(this).parent().parent())}),e(".block-cookies").length&&(e(".block-cookies").css("display","block").animate({opacity:"1"},500,function(){t.animate({marginBottom:"+40px"},500,function(){})}),e("body").on("click",".block-cookies .btn",function(){e.user.cookiesAccept()})),e(".block-carousel").length&&e(".block-carousel .carousel").carousel({interval:3e3,pause:!1});var l=!1;e(".block-editor").length&&e.when(e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/froala-editor.min.js"),e.Deferred(function(t){e(t.resolve)})).done(function(){e.when(e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/langs/fr.js"),e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/plugins/tables.min.js"),e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/plugins/lists.min.js"),e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/plugins/colors.min.js"),e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/plugins/font-family.min.js"),e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/plugins/font-size.min.js"),e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/plugins/block-styles.min.js"),e.getScript(e.Site.host+"/public/js/froala-editor/1.2.X/plugins/video.min.js"),e.Deferred(function(t){e(t.resolve)})).done(function(){l=[],e(".block-editor").each(function(t){l[t]={$block:e(this),$contents:e(this).find(".contents"),$button:e(this).find(".button-save"),contentChanged:!1},l[t].$contents.editable({language:"fr",crossDomain:!1,inlineMode:!0,theme:"iminence",htmlAllowedEmptyTags:["div","p","i","span","ul","li","object","video","a","iframe","textarea"],allowedBlankTags:["div","p","i","span","ul","li","object","video","a","iframe","textarea"],plainPaste:!0,paragraphy:!0,defaultTag:"p",placeholder:"Commencez à écrire quelque chose...",saveRequestType:"POST",saveParams:{id:l[t].$button.data("id"),module:l[t].$button.data("module"),language:l[t].$button.data("language"),params:l[t].$button.data("params")},autosave:!1,autosaveInterval:0,imageUploadParams:"",imageDeleteParams:"",saveURL:e.Site.host+"/public/ajax/page.save.php",imageUploadURL:e.Site.host+"/public/ajax/page.picture.upload.php",imageDeleteURL:e.Site.host+"/public/ajax/page.picture.delete.php",contentChangedCallback:function(){l[t].contentChanged=!0},beforeSaveCallback:function(){},saveErrorCallback:function(){},afterSaveCallback:function(e){setTimeout(function(){l[t].contentChanged=!1,l[t].$button.html('<i class="fas fa-check"></i> ENREG. OK'),setTimeout(function(){l[t].$button.html('<i class="fas fa-save"></i> ENREGISTRER').removeClass("disabled"),l[t].$block.removeClass("active")},2500)},1e3)},beforeImageUploadCallback:function(e){console.log(e)},afterImageUploadCallback:function(e){console.log(e)},beforeFileUploadCallback:function(e){console.log(e)},afterFileUploadCallback:function(e){console.log(e)},afterUploadPastedImageCallback:function(e){console.log(e)},afterRemoveImageCallback:function(e){console.log(e),this.options.imageDeleteParams={src:e.attr("src")},this.deleteImage(e)}}),l[t].$button.click(function(){l[t].$button.hasClass("disabled")||(l[t].$block.addClass("active"),l[t].$button.addClass("disabled").html(e.iminence.getIconLoading()+" enregistrement..."),l[t].$contents.editable("save"))})}),window.onbeforeunload=function(t){var o=!1;if(e.each(l,function(e,t){t.contentChanged&&(o=!0)}),o){var a="Vous allez perdre votre travail, êtes vous sûr(e) de vouloir quitter la page ?";return(t=t||window.event)&&(t.returnValue=a),a}}})}
1),e(".datepicker").length&&e.when(e.getScript(e.Site.host+"/public/js/bootstrap-datepicker/1.0.0/bootstrap-datepicker.js"),e.Deferred(function(t){e(t.resolve)})),e(".dropdown-submenu").length&&e.getScript(e.Site.host+"/public/js/bootstrap-submenu/2.0.4/bootstrap-submenu.min.js").done(function(){e("[data-submenu]").submenupicker()});var s=!1;e.FancyBox={ready:function(){e.getScript(e.Site.host+"/public/js/fancybox/3.5.7/fancybox.min.js").done(function(){e(".fancybox").length&&(s=[],e(".fancybox").each(function(t){var o=e(this);s[t]=o.fancybox({})})),e('[data-fancybox="gallery"]').length&&e("[data-fancybox]").fancybox({protect:!0,animationEffect:"zoom",transitionEffect:"circular"})})},refresh:function(){s?(e(".fancybox").length?(s=[],e(".fancybox").each(function(t){var o=e(this);s[t]=o.fancybox({})})):s=!1,!!e('[data-fancybox="gallery"]').length&&e("[data-fancybox]").fancybox({protect:!0})):e.FancyBox.ready()}},(e(".fancybox").length||e('[data-fancybox="gallery"]').length)&&e.FancyBox.ready(),e.Site.Calendar={ready:function(){e.ajax({method:"POST",url:e.Site.host+"/public/ajax/actuality.php",data:{action:"calendar",request:"getEvents"},dataType:"json"}).done(function(t){t.process&&e.Site.Calendar.create(t.events)}).fail(function(e,t,o){console.log({jqXHR:e,textStatus:t,errorThrown:o})})},create:function(t){e.getScript(e.Site.host+"/public/js/bootstrap-responsive-calendar/1.6.1/responsive-calendar.min.js").done(function(){e("#calendar").responsiveCalendar({events:t})})}},e("#calendar").length&&e.Site.Calendar.ready(),e.when(e.getScript(e.Site.host+"/public/js/iminence/cart.min.js"),e.getScript(e.Site.host+"/public/js/iminence/user.min.js"),e.getScript(e.Site.host+"/public/js/iminence/member.min.js"),e.Deferred(function(t){e(t.resolve)})).done(function(){e.getScript(e.Site.host+"/page/"+e.Site.Page.folder+"/public/js/"+e.Site.Page.source+".min.js").done(function(){"administrator"!==e("main").data("user")&&"moderator"!==e("main").data("user")||e.getScript(e.Site.host+"/public/js/iminence/__admin.min.js"),e("#chat").length&&e.getScript(e.Site.host+"/public/js/iminence/chat.min.js")})})});

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.