From b7fce821b42f2334a0749538d14e204a1d63f111 Mon Sep 17 00:00:00 2001 From: ari melody Date: Mon, 27 Jan 2025 18:30:27 +0000 Subject: [PATCH 1/2] update prideflag.js --- public/script/prideflag.js | 116 ++++++++++++++++++++----------------- 1 file changed, 62 insertions(+), 54 deletions(-) diff --git a/public/script/prideflag.js b/public/script/prideflag.js index 19181e6..03aecf9 100644 --- a/public/script/prideflag.js +++ b/public/script/prideflag.js @@ -1,66 +1,74 @@ -/** - * 🏳️‍🌈🏳️‍⚧️💖 pride flag 💖🏳️‍⚧️🏳️‍🌈 - * made with ❤️ by ari melody, 2023 - * - * web: https://arimelody.me - * source: https://github.com/mellodoot/prideflag - */ +// +// pride flag - copyright (c) 2024 ari melody +// +// this code is provided AS-IS, WITHOUT ANY WARRANTY, to be +// freely redistributed and/or modified as you please, however +// retaining this license in any redistribution. +// +// please use this flag to link to an LGBTQI+-supporting page +// of your choosing! +// +// web: https://arimelody.me +// source: https://git.arimelody.me/ari/prideflag +// + +const pride_url = "https://git.arimelody.me/ari/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; - }`; + `#prideflag { + 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; + } + #prideflag:hover { + transform: scale(110%); + } + #prideflag:active { + transform: scale(110%); + } + #prideflag * { + 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; + const flag = document.createElement("a"); + flag.id = "prideflag"; + flag.href = pride_url; + flag.target = "_blank"; + flag.innerHTML = pride_flag_svg; + return flag; } function load_pride_flag_style() { - const pride_stylesheet = document.createElement('style'); - pride_stylesheet.textContent = pride_flag_css; - document.head.appendChild(pride_stylesheet); + 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); +flag = create_pride_flag(); +document.body.appendChild(flag); From 64780611def2c65a7ac25ab9aa8faff7c7009beb Mon Sep 17 00:00:00 2001 From: ari melody Date: Mon, 27 Jan 2025 18:30:50 +0000 Subject: [PATCH 2/2] add license (MIT) --- LICENSE.md | 22 ++++++++++++++++++++++ views/footer.html | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..95557e7 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2025-present ari melody + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/views/footer.html b/views/footer.html index 46450d7..a3ed996 100644 --- a/views/footer.html +++ b/views/footer.html @@ -2,7 +2,7 @@