Initial commit - Application CLEO de gestion de devis
- Architecture MVC avec framework maison d6 - Modules : devis, clients, marchés, SAP - Documentation initiale (README et TODO) - Configuration Composer avec dépendances 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
28
pub/res/js/jaccueil.js
Normal file
28
pub/res/js/jaccueil.js
Normal file
@@ -0,0 +1,28 @@
|
||||
//! jaccueil.js
|
||||
|
||||
window.addEventListener('DOMContentLoaded', (event) => {
|
||||
console.log('#');
|
||||
|
||||
let elBtnExtractTPG = document.getElementById("btnExtractTPG");
|
||||
|
||||
let clickExtractTPG = function () {
|
||||
if (confirm("Voulez-vous extraire la dernière version du tarif public général ?")) {
|
||||
let url = "/expxls/export_tpg";
|
||||
console.log("Export Excel demandé : " + url);
|
||||
window.open(url);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
const diaporamaImages = document.querySelectorAll('.diaporama img');
|
||||
let imageIndex = 0;
|
||||
|
||||
setInterval(() => {
|
||||
diaporamaImages[imageIndex].classList.remove('active');
|
||||
imageIndex = (imageIndex + 1) % diaporamaImages.length;
|
||||
diaporamaImages[imageIndex].classList.add('active');
|
||||
}, 5000);
|
||||
|
||||
|
||||
elBtnExtractTPG.addEventListener('click', clickExtractTPG);
|
||||
});
|
||||
Reference in New Issue
Block a user