Compare commits
No commits in common. "64780611def2c65a7ac25ab9aa8faff7c7009beb" and "70825ae8757da9a39a4f3b5b96ceff35bfda223f" have entirely different histories.
64780611de
...
70825ae875
3 changed files with 55 additions and 85 deletions
22
LICENSE.md
22
LICENSE.md
|
@ -1,22 +0,0 @@
|
||||||
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.
|
|
||||||
|
|
|
@ -1,18 +1,10 @@
|
||||||
//
|
/**
|
||||||
// pride flag - copyright (c) 2024 ari melody
|
* 🏳️🌈🏳️⚧️💖 pride flag 💖🏳️⚧️🏳️🌈
|
||||||
//
|
* made with ❤️ by ari melody, 2023
|
||||||
// this code is provided AS-IS, WITHOUT ANY WARRANTY, to be
|
*
|
||||||
// freely redistributed and/or modified as you please, however
|
* web: https://arimelody.me
|
||||||
// retaining this license in any redistribution.
|
* source: https://github.com/mellodoot/prideflag
|
||||||
//
|
*/
|
||||||
// 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_svg =
|
||||||
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120">
|
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120">
|
||||||
|
@ -34,7 +26,7 @@ const pride_flag_svg =
|
||||||
</svg>`;
|
</svg>`;
|
||||||
|
|
||||||
const pride_flag_css =
|
const pride_flag_css =
|
||||||
`#prideflag {
|
`#pride-flag svg {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -44,23 +36,23 @@ const pride_flag_css =
|
||||||
z-index: 8008135;
|
z-index: 8008135;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
#prideflag:hover {
|
#pride-flag svg:hover {
|
||||||
transform: scale(110%);
|
transform: scale(110%);
|
||||||
}
|
}
|
||||||
#prideflag:active {
|
#pride-flag svg:active {
|
||||||
transform: scale(110%);
|
transform: scale(110%);
|
||||||
}
|
}
|
||||||
#prideflag * {
|
#pride-flag svg * {
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
function create_pride_flag() {
|
function create_pride_flag() {
|
||||||
const flag = document.createElement("a");
|
const container = document.createElement("a");
|
||||||
flag.id = "prideflag";
|
container.id = "pride-flag";
|
||||||
flag.href = pride_url;
|
container.href = "https://github.com/mellodoot/prideflag";
|
||||||
flag.target = "_blank";
|
container.target = "_blank";
|
||||||
flag.innerHTML = pride_flag_svg;
|
container.innerHTML = pride_flag_svg;
|
||||||
return flag;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_pride_flag_style() {
|
function load_pride_flag_style() {
|
||||||
|
@ -70,5 +62,5 @@ function load_pride_flag_style() {
|
||||||
}
|
}
|
||||||
|
|
||||||
load_pride_flag_style();
|
load_pride_flag_style();
|
||||||
flag = create_pride_flag();
|
pride_flag = create_pride_flag();
|
||||||
document.body.appendChild(flag);
|
document.querySelector("main").appendChild(pride_flag);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<small><em>*made with ♥ by ari, 2025*</em></small>
|
<small><em>*made with ♥ by ari, 2024*</em></small>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue