consul/website/public/ie-warning.js

37 lines
952 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2022-02-04 22:24:02 +00:00
!(function () {
'use strict'
const el = document.createElement('div');
el.innerHTML =
'<div class="ie-warning">' +
' <p class="ie-warning-description">' +
' Internet Explorer is no longer supported.' +
' <a href="https://support.hashicorp.com/hc/en-us/articles/4416485547795">' +
' Learn more.' +
' </a>' +
' </p>' +
'</div>' +
'<style>' +
' .ie-warning {' +
' background-color: #FCF0F2;' +
' border-bottom: 1px solid #FFD4D6;' +
' color: #BA2226;' +
' text-align: center;' +
' font-family: "Segoe UI", sans-serif;' +
' font-weight: bold;' +
' }' +
' .ie-warning-description {' +
' padding: 16px 0;' +
' margin: 0;' +
' color: #BA2226;' +
' }' +
'</style>';
document.body.insertBefore(el, document.body.childNodes[0]);
})();