Closed klaasg closed 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.
Thank you, this is way better. It now shows the number even if javascript is disabled.
Super, thanks!
(Merged as 8c8bcba458c15a2b082bfe566c955708a0330347)
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.