github.com/hashicorp/packer@v1.14.3/website/public/ie-warning.js (about)

     1  !(function () {
     2    'use strict'
     3  
     4    function applyStyles(e, s) {
     5      e.style.cssText = s
     6        .map(function (r) {
     7          return r.join(':')
     8        })
     9        .join(';')
    10    }
    11  
    12    const el = document.createElement('div')
    13    const containerStyles = [
    14      ['background-color', '#FCF0F2'],
    15      ['border-bottom', '1px solid #FFD4D6'],
    16      ['color', '#BA2226'],
    17      ['text-align', 'center'],
    18      ['font-family', '"Segoe UI", sans-serif'],
    19      ['font-weight', 'bold'],
    20    ]
    21    applyStyles(el, containerStyles)
    22  
    23    const message = document.createElement('p')
    24    const textStyles = [
    25      ['padding', '16px 0'],
    26      ['margin', '0'],
    27      ['color', '#BA2226'],
    28    ]
    29    applyStyles(message, textStyles)
    30    message.textContent = 'Internet Explorer is no longer supported. '
    31  
    32    const link = document.createElement('a')
    33    link.textContent = 'Learn more.'
    34    link.href = 'https://www.microsoft.com/en-us/edge?form=MA13DL&OCID=MA13DL'
    35  
    36    message.appendChild(link)
    37    el.appendChild(message)
    38  
    39    document.body.insertBefore(el, document.body.childNodes[0])
    40  })()