summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2020-03-26 15:03:11 +0800
committerGitHub <noreply@github.com>2020-03-26 15:03:11 +0800
commit45e760b95b42834621adbdeaa4b2ba43b8d5d823 (patch)
treefedbc2fae80b24e91c8781bef9d8511bdf6b39a7 /assets
parent3b36c7e89699eab4f942d303ac72255be18a414c (diff)
💎 Fix: 页面中 owo 的报错
Diffstat (limited to 'assets')
-rw-r--r--assets/js/miracles.min.js15
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