PageSourceSearch

https://formation.ch-alpes-isere.fr/lib/javascript.php/1789977024/…/utils/libs/eticeo_modal/eticeo_modal.js

js ch-alpes-isere.fr collected 2026-10-02 19:09:57 UTC 1,983 bytes, 10 lines download raw bytes

1class EticeoModal{static showConfirmation(title,text,callback,confirmButtonText='Valider',cancelButtonText='Annuler'){Swal.fire({title:title,text:text,icon:'warning',showCancelButton:!0,confirmButtonText:confirmButtonText,cancelButtonText:cancelButtonText}).then((result)=>{if(result.isConfirmed){callback(!0)}else{callback(!1)}})}
2static showInfo(title,text,showConfirmButton=!1,confirmButtonText='Ok',timer=1500){const config={title:title,text:text,icon:'info',confirmButtonText:confirmButtonText,timer:!showConfirmButton?timer:null};if(!showConfirmButton){config.showConfirmButton=!1}
3Swal.fire(config)}
4static showSuccess(title,text,showConfirmButton=!1,confirmButtonText='Ok',timer=1500){const config={title:title,text:text,icon:'success',confirmButtonText:confirmButtonText,timer:!showConfirmButton?timer:null};if(!showConfirmButton){config.showConfirmButton=!1}
5Swal.fire(config)}
6static showError(title,text,showConfirmButton=!0,confirmButtonText='Ok',timer=1500){const config={title:title,text:text,icon:'error',confirmButtonText:confirmButtonText,timer:!showConfirmButton?timer:null};if(!showConfirmButton){config.showConfirmButton=!1}
7Swal.fire(config)}
8static showHtmlModal(title,htmlContent,confirmButtonText='OK',cancelButtonText='Annuler',callback=null,customClassCSS='',showConfirmButton=!0){const tempDiv=document.createElement('div');tempDiv.innerHTML=htmlContent;const modalContent=tempDiv.cloneNode(!0);function initializeTables(content){const tables=content.querySelectorAll('table');tables.forEach(table=>{new EticeoTable(table)})}
9const config={title:title,html:modalContent,showCancelButton:cancelButtonText!=='',confirmButtonText:confirmButtonText,cancelButtonText:cancelButtonText!==''?cancelButtonText:undefined,customClass:{popup:customClassCSS!==''?customClassCSS:undefined,},didOpen:()=>{initializeTables(modalContent)}};if(!showConfirmButton){config.showConfirmButton=!1}
10Swal.fire(config).then((result)=>{if(callback){callback(result.isConfirmed)}})}}

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.