Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
casualsoty committed Feb 22, 2024
1 parent daf545f commit 623dc32
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 12 deletions.
Binary file added artwork/default/easter/easter-0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added artwork/default/easter/easter-1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added artwork/default/halloween/halloween-0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added artwork/default/halloween/halloween-1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added artwork/default/summer/summer-0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added artwork/default/summer/summer-1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"readme": "https://github.com/casualsoty/maemotes/blob/main/README.md",
"title": "Maemotes",
"url": "https://github.com/casualsoty/maemotes",
"version": "1.0.9"
"version": "1.0.10"
}
12 changes: 12 additions & 0 deletions scripts/render-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ const renderLayout = appId => {
$('#app-' + appId + ' > section').addClass('winter-0')
$('.seasonal-layout-1').addClass('winter-1');
$('.seasonal-layout-2').addClass('winter-2');
} else if (new Date().getMonth() == 2 || new Date().getMonth() == 3) {
$('#app-' + appId + ' > section').addClass('easter-0')
$('.seasonal-layout-1').addClass('easter-1');
$('.seasonal-layout-2').addClass('easter-2');
} else if (new Date().getMonth() == 5 || new Date().getMonth() == 6) {
$('#app-' + appId + ' > section').addClass('summer-0')
$('.seasonal-layout-1').addClass('summer-1');
$('.seasonal-layout-2').addClass('summer-2');
} else if (new Date().getMonth() == 9 || new Date().getMonth() == 10) {
$('#app-' + appId + ' > section').addClass('halloween-0')
$('.seasonal-layout-1').addClass('halloween-1');
$('.seasonal-layout-2').addClass('halloween-2');
}
}
}
67 changes: 56 additions & 11 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,59 @@
/* CLASSES
*/

.close-maemotes-button { display: none; }
.winter-0 { background: url("../maemotes/artwork/default/winter/winter-0.jpg") !important;
color: #eee !important;
text-shadow: 1px 1px 1px #000; }
.winter-0 #maemotes-input { background-color: #dad8cc; }
.winter-1 { background-image: url("../maemotes/artwork/default/winter/winter-1.gif");
height: calc(100% - 30px);
margin: -8px 0 0 -8px;
pointer-events: none;
position: absolute;
width: 100%; }
.close-maemotes-button { display: none; }
.easter-0 { background: url("../maemotes/artwork/default/easter/easter-0.jpg") !important;
color: #eee !important;
text-shadow: 1px 1px 1px #000; }
.easter-0 #maemotes-input { background-color: #dad8cc; }
.easter-1 { background-image: url("../maemotes/artwork/default/easter/easter-1.gif");
background-position: center;
background-repeat: no-repeat;
background-size: contain;
height: calc(100% - 30px);
margin: -8px 0 0 -8px;
opacity: .5;
pointer-events: none;
position: absolute;
width: 100%; }
.halloween-0 { background: url("../maemotes/artwork/default/halloween/halloween-0.jpg") !important;
color: #eee !important;
text-shadow: 1px 1px 1px #000; }
.halloween-0 #maemotes-input { background-color: #dad8cc; }
.halloween-1 { background-image: url("../maemotes/artwork/default/halloween/halloween-1.gif");
background-position: bottom;
background-repeat: no-repeat;
background-size: contain;
height: calc(100% - 30px);
margin: -8px 0 0 -8px;
opacity: .5;
pointer-events: none;
position: absolute;
width: 100%; }
.summer-0 { background: url("../maemotes/artwork/default/summer/summer-0.jpg") !important;
color: #eee !important;
text-shadow: 1px 1px 1px #000; }
.summer-0 #maemotes-input { background-color: #dad8cc; }
.summer-1 { background-image: url("../maemotes/artwork/default/summer/summer-1.gif");
background-position: center;
background-repeat: no-repeat;
height: calc(100% - 30px);
margin: -8px 0 0 -8px;
opacity: .5;
pointer-events: none;
position: absolute;
width: 100%; }
.winter-0 { background: url("../maemotes/artwork/default/winter/winter-0.jpg") !important;
color: #eee !important;
text-shadow: 1px 1px 1px #000; }
.winter-0 #maemotes-input { background-color: #dad8cc; }
.winter-1 { background-image: url("../maemotes/artwork/default/winter/winter-1.gif");
background-position: center;
background-repeat: no-repeat;
background-size: contain;
height: calc(100% - 30px);
margin: -8px 0 0 -8px;
opacity: .5;
pointer-events: none;
position: absolute;
width: 100%; }

0 comments on commit 623dc32

Please sign in to comment.