/** * 🏳️‍🌈🏳️‍⚧️💖 pride flag 💖🏳️‍⚧️🏳️‍🌈 * made with ❤️ by ari melody, 2023 * * web: https://arimelody.me * source: https://github.com/mellodoot/prideflag */ const pride_flag_svg = ` `; const pride_flag_css = `#pride-flag svg { position: fixed; top: 0; right: 0; width: 120px; transform-origin: 100% 0%; transition: transform .5s cubic-bezier(.32,1.63,.41,1.01); z-index: 8008135; pointer-events: none; } #pride-flag svg:hover { transform: scale(110%); } #pride-flag svg:active { transform: scale(110%); } #pride-flag svg * { pointer-events: all; }`; function create_pride_flag() { const container = document.createElement("a"); container.id = "pride-flag"; container.href = "https://github.com/mellodoot/prideflag"; container.target = "_blank"; container.innerHTML = pride_flag_svg; return container; } function load_pride_flag_style() { const pride_stylesheet = document.createElement('style'); pride_stylesheet.textContent = pride_flag_css; document.head.appendChild(pride_stylesheet); } load_pride_flag_style(); pride_flag = create_pride_flag(); document.querySelector("main").appendChild(pride_flag);