It's My Birthday!
h
Coder100 (15506)

It's My Birthday!

Hello, world! It's my birthday today! I created this awesome website to celebrate the occasion. Anyways, you can either write me a birthday card or play the fun balloon game!

Game

  • Mouse to aim
  • Click to shoot
  • Don't let any balloons get past you!
  • Remember to click on [ save to leaderboard ] to save your score!

Bday Card

  • You can make as many as you want :D
  • You can also not be logged in and make a card!

Code

  • Made with EJS!
  • I used my own client for the database!
  • There's some font awesome in there...

Have a great day!

Yay!

Me being birthdayboi on discord:

Edits

Ok, so I guess you guys found the hack feature in my game LOL! Well, turns out I KNEW IT WAS GOING TO HAPPEN All hackers have been removed, and @AustinZhang1 is still number 1! Also, I don't know what happened with the cards... I'll be looking into that!

ANNOUNCEMENT

Wow! This has gotten more support than I had anticipated!! Thank you everyone for writing a card! I have read them all! So kind of all of you :D

This is probably my best birthday ever!! Thank you!

Edits

So I got a new computer, but then a tree fell and so now I don't have wifi and probably not for a long time :( (this is wireless data btw)

More edit

So basically why you couldn't write cards was because of a database error. I still have no idea if it's a problem with my client or not, but here's the test. Anyways, it appears I could set the data with a new line, but it couldn't read it. How strange. Anyways, I'm now just removing newlines completely until its fixed. Have a great day!

You are viewing a single comment. View All
RolandJLevy (759)

Hi @Coder100, great job! I love the pop the balloon game. Where are you storing the scores for the leader board - what kind of database?

Coder100 (15506)

:D Thanks!
I used the repl.it db, you can read more about it here @rjlevy

RolandJLevy (759)

@Coder100 thanks! I will check it out. Does your approach of using the repl.it db mean you don't have to be concerned about XSS?

Coder100 (15506)

@rjlevy actually, no. That's handled for me with ejs's <= feature (which automatically escapes all tags)

Coder100 (15506)

no database would ever handle that for you, because if you were trying to store HTML code that would be a pain to handle. @rjlevy

RolandJLevy (759)

@Coder100 OK, thanks - good to see a Node, Express, EJS project 👍