IIITKalyaniFOSC / iiitkalyanifosc.github.io

Website for IIIT Kalyani Free and Open Source Community
https://iiitkalyanifosc.github.io/
1 stars 16 forks source link

Add custom 404 page #31

Closed satyamtg closed 6 years ago

satyamtg commented 6 years ago

Added a custom 404 page to display an error in different programming languages' print statements. Have a look at https://satyam-tg.github.io/fosc_website/someincorrecturl

PulkitMishra commented 6 years ago

Cool. But, do we need this?

satyamtg commented 6 years ago

@PulkitMishra I have a single sentence answer. Easter eggs are always hidden.

anubhavp28 commented 6 years ago

@Satyam-TG changetext() function should be attached to DOMContentLoaded event, and not onload.

satyamtg commented 6 years ago

@anubhavp28 I had also thought of doing it. Will do it in the morning. I will also add print statements from more languages.

satyamtg commented 6 years ago

@anubhavp28 changetext() now gets executed on DOMContentLoaded event.

anubhavp28 commented 6 years ago

Can you convert all paths in your 404.html and 404.css, to absolute from relative? See the problem is when your 404.html is called from a directory other than root - https://satyam-tg.github.io/fosc_website/nonexistentfolder/missing.html

satyamtg commented 6 years ago

@anubhavp28 did it.