Merge branch 'frost' of github.com:Aevann1/rDrama into frost

master
Outrun Colors 2022-09-25 17:47:55 -05:00
commit 6f02738eb5
2 changed files with 18 additions and 3 deletions

View File

@ -313,14 +313,27 @@ function showmore() {
btn.innerHTML = 'SHOW LESS' btn.innerHTML = 'SHOW LESS'
} }
function formatDate(d) {
var year = d.getFullYear();
var monthAbbr = d.toLocaleDateString('en-us', {month: 'short'});
var day = d.getDate();
var hour = ("0" + d.getHours()).slice(-2);
var minute = ("0" + d.getMinutes()).slice(-2);
var second = ("0" + d.getSeconds()).slice(-2);
var tzAbbr = d.toLocaleTimeString('en-us', {timeZoneName: 'short'}).split(' ')[2];
return (day + " " + monthAbbr + " " + year + " "
+ hour + ":" + minute + ":" + second + " " + tzAbbr);
}
const timestamps = document.querySelectorAll('[data-time]'); const timestamps = document.querySelectorAll('[data-time]');
for (const e of timestamps) { for (const e of timestamps) {
const date = new Date(e.dataset.time*1000); const date = new Date(e.dataset.time*1000);
e.innerHTML = date.toString(); e.innerHTML = formatDate(date);
}; };
function timestamp(str, ti) { function timestamp(str, ti) {
const date = new Date(ti*1000); const date = new Date(ti*1000);
document.getElementById(str).setAttribute("data-bs-original-title", date.toString()); document.getElementById(str).setAttribute("data-bs-original-title", formatDate(date));
}; };

View File

@ -1193,6 +1193,7 @@ INSERT INTO public.marseys (name, author_id, tags, created_utc) VALUES
('marseycarphug2',2,'fish love bottomfeeder carpathianflorist heart blow admin cute',NULL), ('marseycarphug2',2,'fish love bottomfeeder carpathianflorist heart blow admin cute',NULL),
('marseycarpina',2,'carpathianflorist drag transgender admin jannie',NULL), ('marseycarpina',2,'carpathianflorist drag transgender admin jannie',NULL),
('marseycarplazy',2,'carpathianflorist fish couch sleeping slacker idc antiwork janitor',NULL), ('marseycarplazy',2,'carpathianflorist fish couch sleeping slacker idc antiwork janitor',NULL),
('marseycarpler',2,'carp hitler nazi',1664137088),
('marseycarpmerchant',2,'jewish money redbubble merch carpathianflorist money yid heeb sheeny sheenie greedy handrubbery rubbing hands kike israeli',1663465891), ('marseycarpmerchant',2,'jewish money redbubble merch carpathianflorist money yid heeb sheeny sheenie greedy handrubbery rubbing hands kike israeli',1663465891),
('marseycarpmerchant2',2,'jew fish greedy',1663548215), ('marseycarpmerchant2',2,'jew fish greedy',1663548215),
('marseycarpmermaid',2,'carp mermaid merman mercarp siren sexy legs temptress',NULL), ('marseycarpmermaid',2,'carp mermaid merman mercarp siren sexy legs temptress',NULL),
@ -2544,6 +2545,7 @@ INSERT INTO public.marseys (name, author_id, tags, created_utc) VALUES
('marseyyeti',2,'scary monster myth winter ice mountain himalaya asia predator giant',NULL), ('marseyyeti',2,'scary monster myth winter ice mountain himalaya asia predator giant',NULL),
('marseyyikes',2,'reaction judgment disgust oof cringe',NULL), ('marseyyikes',2,'reaction judgment disgust oof cringe',NULL),
('marseyyinzer',2,'pittsburgh pennsylvania pens penguins steelers stillers pirates buccos buckos terrible towel pierogo yuengling beer city hat baseball football hockey nfl mlb nhl happy',NULL), ('marseyyinzer',2,'pittsburgh pennsylvania pens penguins steelers stillers pirates buccos buckos terrible towel pierogo yuengling beer city hat baseball football hockey nfl mlb nhl happy',NULL),
('marseyyoshi',2,'super mario nintendo snes retro video game dinosaur italian plumber pipes',1664142051),
('marseyyugi',2,'yugioh yu-gi-oh! cards trap anime',NULL), ('marseyyugi',2,'yugioh yu-gi-oh! cards trap anime',NULL),
('marseyza',2,'antlers flowers',NULL), ('marseyza',2,'antlers flowers',NULL),
('marseyzaku',2,'gundam mecha robot helmet mask',NULL), ('marseyzaku',2,'gundam mecha robot helmet mask',NULL),