You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/website/public/ie-warning.js

41 lines
1.0 KiB

!(function () {
'use strict'
function applyStyles(e, s) {
e.style.cssText = s
.map(function (r) {
return r.join(':')
})
.join(';')
}
const el = document.createElement('div')
const containerStyles = [
['background-color', '#FCF0F2'],
['border-bottom', '1px solid #FFD4D6'],
['color', '#BA2226'],
['text-align', 'center'],
['font-family', '"Segoe UI", sans-serif'],
['font-weight', 'bold'],
]
applyStyles(el, containerStyles)
const message = document.createElement('p')
const textStyles = [
['padding', '16px 0'],
['margin', '0'],
['color', '#BA2226'],
]
applyStyles(message, textStyles)
message.textContent = 'Internet Explorer is no longer supported. '
const link = document.createElement('a')
link.textContent = 'Learn more.'
link.href = 'https://www.microsoft.com/en-us/edge?form=MA13DL&OCID=MA13DL'
message.appendChild(link)
el.appendChild(message)
document.body.insertBefore(el, document.body.childNodes[0])
})()