Skip to content

Commit

Permalink
Merge branch 'main' into 221014
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum818 authored Oct 13, 2022
2 parents 86625f1 + 1b51a82 commit ec0f06c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ hexo page floating window plugin
```html
<uma-card></uma-card>
```
## 效果
## 效果
大概会在代码处或者博客首页左上角出现一个悬浮的小窗口

![](https://upload.cc/i1/2022/10/14/ISfQAm.jpg)

赛马娘热点信息采集自[赛马娘wiki](https://wiki.biligame.com/umamusume/%E9%A6%96%E9%A1%B5)

6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ const css = hexo.extend.helper.get("css").bind(hexo);
const js = hexo.extend.helper.get("js").bind(hexo);
const path = require('path');
const fs = require('fs');

const defaultConfig = {
'enable': true,
'mode': 'normal',
};

if (hexo.config.umaCale.enable) {
const csscode = `<style>${fs.readFileSync(`${__dirname}/lib/umamusume.css`, 'utf8')}</style>`;
hexo.extend.injector.register(
"body_end",
csscode,
//hexo.config.umaCale.localtion
// hexo.config.umaCale.localtion
);


Expand All @@ -20,7 +22,7 @@ if (hexo.config.umaCale.enable) {
hexo.extend.injector.register(
"body_end",
jscode,
//hexo.config.umaCale.localtion
// hexo.config.umaCale.localtion
);
if(hexo.config.umaCale.mode == 'home'){
hexo.extend.injector.register(
Expand Down

0 comments on commit ec0f06c

Please # to comment.