This service monitors USGS volcano data and displays a banner when watched volcanoes reach configurable alert levels.
/volcano-banner.iife.js
: The banner JavaScript to include in your site/banner-code
: HTML snippet to add to your WordPress siteYou can customize the banner by adding query parameters to the /volcano-banner.iife.js
URL:
GREEN
, YELLOW
,
ORANGE
, RED
)
"always"
,
"only_with_alert"
, or "never"
)
${url.origin}/volcano-banner.iife.js?minAlertLevel=YELLOW&customMessage=Stay%20informed&messageDisplay=always
/volcano-banner.iife.js?test=green
/volcano-banner.iife.js?test=yellow
/volcano-banner.iife.js?test=orange
/volcano-banner.iife.js?test=red
testVolcanoBanner('RED');
testVolcanoBanner('YELLOW');
testVolcanoBanner('FORCE_GREEN');
testVolcanoBanner('RED', {
minAlertLevel: "YELLOW",
customMessage: "Custom test message",
messageDisplay: "always"
});
window.playwrightTestMode = true;
testVolcanoBanner('RED');
<script async src="${url.origin}/volcano-banner.iife.js"></script>
<script>
window.volcanoAlertConfig = {
minAlertLevel: "YELLOW",
customMessage: "Stay informed about volcanic activity",
messageDisplay: "always"
};
</script>
<script async src="${url.origin}/volcano-banner.iife.js"></script>