I have finally written a new article for Onextrapixel a few weeks ago and it’s out today. So, in…

I have finally written a new article for Onextrapixel a few weeks ago and it’s out today.

So, in part 1, we will discuss HTML and CSS and the idea for part 2 is to locate the visitors of our demo page using the geolocation API and then use PHP to calculate the sunrise and sunset times based on the users latitude and longitude. If the current time happens to be before sunrise or after sunset, we add a new style sheet which will darken the layout’s colors.

View original source