fix: fixed height overflow of page height handle

This commit is contained in:
XPoet 2020-10-26 13:09:13 +08:00
parent 533e09e46f
commit 9e000aacf7
2 changed files with 2 additions and 4 deletions

View File

@ -7,12 +7,12 @@
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="website-count info-item">
<% if (theme.website_count.busuanzi_count.site_uv) { %>
<span id="busuanzi_container_site_uv" style="display: none">
<span id="busuanzi_container_site_uv">
<%- __('site_uv') %> <span id="busuanzi_value_site_uv"></span>
</span>
<% } %>
<% if (theme.website_count.busuanzi_count.site_pv) { %>
<span id="busuanzi_container_site_pv" style="display: none">
<span id="busuanzi_container_site_pv">
<%- __('site_pv') %> <span id="busuanzi_value_site_pv"></span>
</span>
<% } %>

View File

@ -21,9 +21,7 @@ ILS.utils = {
const ProgressPercent = (scrollTop / (scrollHeight - clientHeight) * 100).toFixed(3);
if (ILS.utils.headerProgress_dom) {
// ILS.utils.headerProgress_dom.style.display = percent === '0' ? 'none' : 'block';
ILS.utils.headerProgress_dom.style.visibility = percent === '0' ? 'hidden' : 'visible';
ILS.utils.headerProgress_dom.style.width = `${ProgressPercent}%`;
}