andrewminer / crafting-guide

The ultimate step-by-step guide to make anything in Minecraft
http://crafting-guide.com
66 stars 192 forks source link

Highlight news when there is a new entry #239

Open andrewminer opened 8 years ago

andrewminer commented 8 years ago

PROBLEM

Return visitors to the site don't necessarily discover new features because they never go over to the "News" section where they might learn about them.

SOLUTION

Each news entry should have a unique ID associated with it by a data attribute. Local storage should be used to keep track of the most recent ID seem by the user. The site should then compare the most recent news ID with the most recent the user has seen. Any time they are out of sync, the "News" button should be highlighted, starred, or some other visual marker. Visiting the "News" page will record the ID of the most recent news element in local storage, thereby disabling the marker.