diff --git a/app/static/js/releve-but.js b/app/static/js/releve-but.js index ea9f8bc6c..521e97da7 100644 --- a/app/static/js/releve-but.js +++ b/app/static/js/releve-but.js @@ -16,6 +16,13 @@ class releveBUT extends HTMLElement { const styles = document.createElement('link'); styles.setAttribute('rel', 'stylesheet'); styles.setAttribute('href', '/ScoDoc/static/css/releve-but.css'); + /* variante "ScoDoc" ou "Passerelle" (ENT) ? */ + if (location.href.split("/")[3] == "ScoDoc") { /* un peu osé... */ + styles.setAttribute('href', '/ScoDoc/static/css/releve-but.css'); + } else { + // Passerelle + styles.setAttribute('href', '/assets/styles/releve-but.css'); + } this.shadow.appendChild(styles); } listeOnOff() { @@ -78,7 +85,7 @@ class releveBUT extends HTMLElement {