Skip to content

Commit

Permalink
restart, again
Browse files Browse the repository at this point in the history
  • Loading branch information
lf- committed Nov 15, 2024
1 parent edf1da9 commit dc9dd1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion enddate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
with open('corrects') as fh:
words = [l for l in fh.readlines() if l.strip() != '']

end_date = datetime.date(2023, 1, 6) + datetime.timedelta(days=len(words))
end_date = datetime.date(2024, 11, 14) + datetime.timedelta(days=len(words))
print(end_date.isoformat())
print('days: ', end_date - datetime.date.today())
23 changes: 12 additions & 11 deletions ts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const COLOURS: { [k in LetterColour]: ColourInfo } = {

function todayOffset() {
// jesus christ
const RELEASE_DATE = new Date(2023, 0, 5);
const RELEASE_DATE = new Date(2024, 10, 14);

const today = new Date();
today.setHours(0, 0, 0, 0);
Expand Down Expand Up @@ -166,15 +166,16 @@ class GameState {
let out = "";
out += `lesble.jade.fyi ${this.day}: ${num}/${GUESSES} \n`;
out += this.previousGuesses
.map(([_guess, line]) =>
line
.map((col) => {
const colInfo = COLOURS[col];
return highContrast
? colInfo.highContrastEmoji
: colInfo.emoji;
})
.join("") + ' '
.map(
([_guess, line]) =>
line
.map((col) => {
const colInfo = COLOURS[col];
return highContrast
? colInfo.highContrastEmoji
: colInfo.emoji;
})
.join("") + " "
)
.join("\n");
return out;
Expand Down Expand Up @@ -480,7 +481,7 @@ window.addEventListener("load", async () => {

const settingsParent = document.getElementById("settings")!;
const refreshHighContrast = (newValue: boolean) => {
document.body.setAttribute('data-highcontrast', newValue.toString());
document.body.setAttribute("data-highcontrast", newValue.toString());
};
const settings = new Settings(settingsParent);
settings.onChangeHighContrast = refreshHighContrast;
Expand Down

0 comments on commit dc9dd1c

Please sign in to comment.