hexo-theme-shokax
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "hexo-theme-shokax", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "a hexo theme based on shoka", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,6 +68,8 @@ # hexo-theme-shokaX | ||
## 贡献者 | ||
| 名称 | 站点 | 描述 | | ||
|:-----------|:---------------------------|:-----------------------| | ||
| Lavender | https://www.lavenderdh.cn/ | 提供了大量shoka主题的魔改 | | ||
| AdminZhang | https://www.a9-9.top/ | 为本项目提供了大量想法并进行了DEBUG工作 | | ||
shokaX的贡献者包括以非代码形式进行贡献的开发者(例如社区教程、想法分享、DEBUG等)和以代码形式进行贡献的开发者 | ||
| 名称 | 站点 | | ||
|:-----------|:---------------------------| | ||
| Lavender | https://www.lavenderdh.cn/ | | ||
| AdminZhang | https://www.a9-9.top/ | | ||
| D-Sketon | http://d-sketon.top/ | |
@@ -291,25 +291,13 @@ const getDocHeight = () => $dom('main > .inner').offsetHeight; | ||
}; | ||
const pageScroll = (target, offset, complete) => { | ||
const pageScroll = function (target, offset, complete) { | ||
const opt = { | ||
left: 0, | ||
behavior: "smooth" | ||
targets: typeof offset === 'number' ? target.parentNode : document.scrollingElement, | ||
duration: 500, | ||
easing: 'easeInOutQuad', | ||
scrollTop: offset || (typeof target === 'number' ? target : (target ? target.top() + document.documentElement.scrollTop - siteNavHeight : 0)), | ||
complete: function () { | ||
complete && complete(); | ||
} | ||
}; | ||
if (typeof target === "number") { | ||
opt.top = target; | ||
} | ||
else { | ||
if (typeof target === 'number') { | ||
opt.top = offset || target; | ||
} | ||
else { | ||
if (offset || target) { | ||
opt.top = target.top() + document.documentElement.scrollTop - siteNavHeight; | ||
} | ||
else { | ||
opt.top = 0; | ||
} | ||
} | ||
} | ||
scrollTo(opt); | ||
complete && complete(); | ||
anime(opt); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75
512799
5136