Skip to content

Commit

Permalink
[update] color change js
Browse files Browse the repository at this point in the history
  • Loading branch information
AIboy996 committed May 21, 2024
1 parent bb76c07 commit ee3058d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/assets/javascripts/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function changeColorByWeekday() {
// 0-6代表周日到周六
var day = date.getDay() + 1;
var schemes = new Array("placeholder", "sun", "mon", "tues", "wed", "thur", "fri", "sat");
var colors = new Array("white", "purple", "grey", "blue grey", "teal", "indigo", "pink", "deep-purple");
var colors = new Array("white", "purple", "grey", "blue-grey", "teal", "indigo", "pink", "deep-purple");
if (document.body.getAttribute("data-md-color-scheme") != schemes[day]) {
document.body.setAttribute("data-md-color-scheme", schemes[day]);
document.body.setAttribute("data-md-color-primary", colors[day]);
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ theme:
primary: grey
accent: orange
- scheme: tues
primary: blue grey
primary: blue-grey
accent: orange
- scheme: wed
primary: teal
Expand Down
4 changes: 2 additions & 2 deletions overrides/partials/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ <h1>{{ page.title | d(config.site_name, true)}}</h1>

<!-- cookie -->
<div class="cookie-message" id="cookie">
<img src="/assets/images/cookie.png">
<span>I am using cookies to provide you the best possible experience. But don't panic - I won't share any of your data. You can find more informations about the cookies <a href="/About">here</a>.</span>
<img src="/assets/images/cookie.png" alt="cookie">
<span>I am using cookies to provide you the best possible experience. But don't panic - I won't share any of your data. You can find more informations about the cookies <a href="/About/#_6">here</a>.</span>
<a class="close" href="#" onclick="var element = document.getElementById('cookie'); element.parentNode.removeChild(element);"><i class="fa fa-times"></i></a>
</div>

Expand Down

0 comments on commit ee3058d

Please sign in to comment.