twelve-of-code-official / website

The source code for the Twelve of Code website
https://mesure.x10.mx/twelve-of-code
GNU General Public License v3.0
0 stars 0 forks source link

Create hashes for 12oC challenges #64

Closed Mesure73L closed 8 months ago

Mesure73L commented 9 months ago

What problem were you having?

No response

What solution would you like?

A way to put like #2023-dec-1 at the end of the URL to open the page on that challenge would be nice.

What alternatives have you considered?

?challenge=20231201 or something (2023, 12, 01)

What are some pros and cons of doing this?

Pros

Cons

What page is this for?

Twelve of Code

What needs to get done?

BeepBot99 commented 9 months ago

Totally! A few questions though:

Mesure73L commented 9 months ago

When selecting a challenge, will it automatically change the URL to go to that page?

Yes, that's what I'm hoping for.

BeepBot99 commented 9 months ago

You could do this. https://www.30secondsofcode.org/js/s/modify-url-without-reload/

Mesure73L commented 9 months ago

You could do this. https://www.30secondsofcode.org/js/s/modify-url-without-reload/

Should be 30 of Code. /j

Mesure73L commented 9 months ago

You could do this. https://www.30secondsofcode.org/js/s/modify-url-without-reload/

By the way, if you're just changing the hash, you can just use window.location.hash = whatever.

Mesure73L commented 9 months ago

Not merged yet