diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-03-26 15:03:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-26 15:03:11 +0800 |
| commit | 45e760b95b42834621adbdeaa4b2ba43b8d5d823 (patch) | |
| tree | fedbc2fae80b24e91c8781bef9d8511bdf6b39a7 | |
| parent | 3b36c7e89699eab4f942d303ac72255be18a414c (diff) | |
💎 Fix: 页面中 owo 的报错
| -rw-r--r-- | assets/js/miracles.min.js | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/assets/js/miracles.min.js b/assets/js/miracles.min.js index 998aa82..9e63619 100644 --- a/assets/js/miracles.min.js +++ b/assets/js/miracles.min.js @@ -101,19 +101,6 @@ function Gray() { addCookie("grayFilter", "off", 0);
}
}
-//toggleSepia
-/* 已被弃用的功能
-function Sepia() {
- $("html").toggleClass("html-filter-sepia");
- $("html").removeClass("html-filter-gray");
- //add cookie to record
- if ($("html").hasClass("html-filter-sepia")) {
- addCookie("sepiaFilter", "on", 0);
- } else {
- addCookie("sepiaFilter", "off", 0);
- }
-}
-*/
/**
* Explore and load themes/filter
@@ -207,6 +194,7 @@ function highlight() { //owo
function owoLoad() {
+ if($(".owo")){
var OwO_demo = new OwO({
logo: 'OωO表情',
container: document.getElementsByClassName('OwO')[0],
@@ -216,6 +204,7 @@ function owoLoad() { width: '300px',
maxHeight: '250px'
});
+ }
}
//Pangu.js
|
