RubenVerborgh / WebFundamentals

Slides for the Web Fundamentals module of my Ghent University class “Web Development”
https://rubenverborgh.github.io/WebFundamentals/
Other
78 stars 33 forks source link

Always show correct 'years passed' #80

Closed klaasg closed 4 years ago

klaasg commented 4 years ago

Always show the correct years since 1999. This year is based on Tim Berners-Lee's first mention of The Semantic Web in weaving the web, published in 1999. Also see wikipedia.

Please give feeback on my (use of) javascript.

RubenVerborgh commented 4 years ago

Good idea, but I would practice progressive enhancement. That is, make it also work without the script.

For instance, do <span id="years-since-semantic-web">20</span> and then update the contents when the script triggers.

klaasg commented 4 years ago

Thank you, this is way better. It now shows the number even if javascript is disabled.

RubenVerborgh commented 4 years ago

Super, thanks!

RubenVerborgh commented 4 years ago

(Merged as 8c8bcba458c15a2b082bfe566c955708a0330347)