Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
|
825db84a3d | ||
|
99248dec86 | ||
|
78b60a72a8 | ||
|
a4bb8363df | ||
|
c8822a5d5a | ||
|
855f3e969f |
3
src/front/aprilFools/LICENSE
Normal file
|
@ -0,0 +1,3 @@
|
|||
a lot of images in assets are random stock photos from across the internet, AGPL license doesn't apply to them and we do not claim any ownership over them.
|
||||
|
||||
comic mono and shantell sans also do not belong to us.
|
BIN
src/front/aprilFools/assets/ComicMono.ttf
Normal file
BIN
src/front/aprilFools/assets/ShantellSans.ttf
Normal file
BIN
src/front/aprilFools/assets/auto.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
src/front/aprilFools/assets/bliss.webp
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
src/front/aprilFools/assets/dragon.jpg
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
src/front/aprilFools/assets/heart.jpg
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
src/front/aprilFools/assets/lock.jpg
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
src/front/aprilFools/assets/music.jpg
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
src/front/aprilFools/assets/paste.jpg
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
src/front/aprilFools/assets/settings.jpg
Normal file
After Width: | Height: | Size: 8.4 KiB |
10
src/front/aprilFools/awesomeFonts.css
Normal file
|
@ -0,0 +1,10 @@
|
|||
@font-face {
|
||||
font-family: Comic Mono;
|
||||
font-weight: normal;
|
||||
src: url(./assets/ComicMono.ttf);
|
||||
}
|
||||
@font-face {
|
||||
font-family: Shantell Sans;
|
||||
font-weight: normal;
|
||||
src: url(./assets/ShantellSans.ttf);
|
||||
}
|
27
src/front/aprilFools/awesomeStyle.css
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* happy april fools! */
|
||||
|
||||
:root {
|
||||
--font-mono: 'Comic Mono', 'Comic Sans MS', 'Comic Sans', 'Comic Neue', 'Shantell Sans', cursive;
|
||||
}
|
||||
* {
|
||||
text-transform: capitalize;
|
||||
letter-spacing: 0.03rem;
|
||||
}
|
||||
.text-to-copy {
|
||||
text-transform: none;
|
||||
}
|
||||
#download-button,
|
||||
#url-clear {
|
||||
font-family: 'Noto Sans Mono', 'Consolas', 'SF Mono', monospace;
|
||||
}
|
||||
#home::before {
|
||||
opacity: 0.1;
|
||||
content: '';
|
||||
background: url(/aprilFools/assets/bliss.webp);
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: -1;
|
||||
position: absolute;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
35
src/front/aprilFools/awesomeTheme.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
function changeIcon(button, src) {
|
||||
document.getElementById(button).querySelector('.emoji').src = `aprilFools/assets/${src}`;
|
||||
}
|
||||
|
||||
// load an Awesome theme on an Awesome day
|
||||
let date = new Date();
|
||||
if (date.getMonth() === 3 && date.getDate() === 1 && localStorage.getItem("disableChangelog") !== "true") {
|
||||
let head = document.head;
|
||||
|
||||
head.appendChild(document.createElement('link')).rel = 'stylesheet';
|
||||
head.lastChild.href = 'aprilFools/awesomeFonts.css';
|
||||
|
||||
head.appendChild(document.createElement('link')).rel = 'stylesheet';
|
||||
head.lastChild.href = 'aprilFools/awesomeStyle.css';
|
||||
|
||||
changeIcon('urgent-notice-child', 'lock.jpg');
|
||||
|
||||
changeIcon('paste', 'paste.jpg');
|
||||
|
||||
changeIcon('audioMode-true', 'music.jpg');
|
||||
changeIcon('audioMode-false', 'auto.jpg');
|
||||
|
||||
changeIcon('about-footer', 'dragon.jpg');
|
||||
changeIcon('about-donate-footer', 'heart.jpg');
|
||||
changeIcon('settings-footer', 'settings.jpg');
|
||||
|
||||
switch(document.documentElement.lang) {
|
||||
case "en":
|
||||
document.getElementById("logo").innerHTML = "Cobalt Media Downloader Ultra Pro Plus Max 2024";
|
||||
break;
|
||||
case "ru":
|
||||
document.getElementById("logo").innerHTML = "Кобальт Медиа Загрузчик Ультра Про Плюс Макс 2024";
|
||||
break;
|
||||
}
|
||||
}
|
|
@ -653,6 +653,9 @@ export default function(obj) {
|
|||
'FilenamePreviewAudioAuthor'
|
||||
])}
|
||||
</script>
|
||||
<!--- Awesome theme --->
|
||||
<script src="aprilFools/awesomeTheme.js"></script>
|
||||
<!--- Awesome theme --->
|
||||
<script src="cobalt.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|