Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
x8BitRain authored Feb 20, 2019
1 parent 3734cff commit df1ca71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![alt text](https://raw.githubusercontent.com/x8BitRain/meta-theme-sky-color/master/example/ex.png "Morning, Noon, and Night")

# meta-theme-sky-color
Js snippet that changes the mobile Chrome nav bar color to the color of the sky based on time of day.
It can be modified to change the color of anything by replacing ```document.querySelector('meta[name="theme-color"]')``` to a div or a css class, etc.
Expand All @@ -7,7 +9,8 @@ It can be modified to change the color of anything by replacing ```document.quer
Copy the contents of metaskycol.min.js into the <head> of your webpage or <script src=""> refernce it in your page's <head>.

## demo
Visiting https://btr.pm/test.html on Chrome android/ios will display the following colors in the nav bar.
Visiting https://btr.pm/test on Chrome android/ios will display the following colors in the nav bar.
Or download the example html file in the example folder.

* #9bc5ed between 5am - 6am.

Expand All @@ -22,3 +25,5 @@ Visiting https://btr.pm/test.html on Chrome android/ios will display the followi
* #000 between 10pm - 4am.

* #26282c as a fallback.

![alt text](https://raw.githubusercontent.com/x8BitRain/meta-theme-sky-color/master/example/colors.png "Colors in use")

0 comments on commit df1ca71

Please sign in to comment.