4.1: better tiktok image downloads and celebrations
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { celebrations } from "../config.js";
|
||||
|
||||
export function switcher(obj) {
|
||||
let items = ``;
|
||||
switch(obj.name) {
|
||||
@@ -135,3 +137,9 @@ export function footerButtons(obj) {
|
||||
return `
|
||||
<div id="footer-buttons">${items}</div>`
|
||||
}
|
||||
|
||||
export function celebrationsEmoji() {
|
||||
let n = new Date().toISOString().split('T')[0].split('-');
|
||||
let dm = `${n[1]}-${n[2]}`;
|
||||
return Object.keys(celebrations).includes(dm) ? celebrations[dm] : "🐲";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user