diff --git a/js/ebi-global-includes/script/4_ebiFrameworkContent.js b/js/ebi-global-includes/script/4_ebiFrameworkContent.js index e0d7eefc2d53716957df749ea974c835fbe48d38..ba808b62a4b92a4ad903c1a6ff6617065383dcf3 100644 --- a/js/ebi-global-includes/script/4_ebiFrameworkContent.js +++ b/js/ebi-global-includes/script/4_ebiFrameworkContent.js @@ -413,19 +413,25 @@ function ebiFrameworkIncludeAnnouncements() { banner.appendChild(wrapper); } - function loadRemote(file) { + function loadRemoteAnnouncements(file) { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { eval(xmlhttp.responseText); - detectAnnouncements(m) + detectAnnouncements(m); } } xmlhttp.open("GET", file, false); xmlhttp.send(); } - loadRemote('https://dev.ebi.emblstatic.net/announcements.js'); + if (window.location.hostname.indexOf('wwwdev.') === 0) { + // Load test message on wwwdev + loadRemoteAnnouncements('https://dev.ebi.emblstatic.net/announcements.js'); + } else { + loadRemoteAnnouncements('https://ebi.emblstatic.net/announcements.js'); + } + }