Skip to content

Commit 9e3e871

Browse files
Add footer
1 parent 8a79483 commit 9e3e871

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

_just/js/copyright.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
3+
MIT License
4+
5+
Copyright (c) 2025 JustStudio. <https://juststudio.is-a.dev/>
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
25+
*/
26+
27+
const copyrightTextLink = `https://github.com/JustStudio7/Encoder/blob/main/LICENSE`;
28+
const copyrightTextStyles = `
29+
fill: rgba(228, 228, 228, 0.75);
30+
left: 25%;
31+
color: rgba(228, 228, 228, 0.75);
32+
width: 50%;
33+
bottom: 5px;
34+
height: auto;
35+
position: fixed;
36+
font-size: 16px;
37+
font-style: normal;
38+
text-align: center;
39+
font-family: 'Rubik';
40+
font-weight: 400;
41+
display: block;
42+
z-index: 9;
43+
`;
44+
const currentYear = new Date().getFullYear();
45+
const copyrightText = `
46+
<span style="${copyrightTextStyles}">
47+
<a href="${copyrightTextLink}" target="_blank">
48+
<span style="opacity: 0.5;text-decoration: underline;text-decoration-color: rgba(255,255,255,0.33);" class="txt12" id="copyrightfootertext">© 2025-${__just.currentYear} JustStudio.</span>
49+
</a>
50+
<br>
51+
</span>
52+
`
53+
if (currentYear < 2026) {
54+
copyrightText = `
55+
<span style="${copyrightTextStyles}">
56+
<a href="${copyrightTextLink}" target="_blank">
57+
<span style="opacity: 0.5;text-decoration: underline;text-decoration-color: rgba(255,255,255,0.33);" class="txt12" id="copyrightfootertext">© 2025 JustStudio.</span>
58+
</a>
59+
<br>
60+
</span>
61+
`
62+
}
63+
document.body.insertAdjacentHTML('beforeend', copyrightText);

0 commit comments

Comments
 (0)