Update main.js

This commit is contained in:
困困鱼 2023-09-06 20:27:26 +08:00 committed by GitHub
parent 87955cbfe3
commit 596e6dbeeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -260,7 +260,7 @@ document.addEventListener('DOMContentLoaded', function () {
// 當滾動條小于 0 的時候 // 當滾動條小于 0 的時候
if (document.body.scrollHeight <= innerHeight) { if (document.body.scrollHeight <= innerHeight) {
$rightside.style.cssText = 'opacity: 1; transform: translateX(-38px)' $rightside.style.cssText = 'opacity: 1; transform: translateX(-58px)'
return return
} }
@ -295,7 +295,7 @@ document.addEventListener('DOMContentLoaded', function () {
$cookies_window.classList.add('cw-hide') $cookies_window.classList.add('cw-hide')
} }
if (window.getComputedStyle($rightside).getPropertyValue('opacity') === '0') { if (window.getComputedStyle($rightside).getPropertyValue('opacity') === '0') {
$rightside.style.cssText = 'opacity: 1; transform: translateX(-38px)' $rightside.style.cssText = 'opacity: 0.8; transform: translateX(-58px)'
} }
} else { } else {
if (currentTop === 0) { if (currentTop === 0) {
@ -305,7 +305,7 @@ document.addEventListener('DOMContentLoaded', function () {
} }
if (document.body.scrollHeight <= innerHeight) { if (document.body.scrollHeight <= innerHeight) {
$rightside.style.cssText = 'opacity: 1; transform: translateX(-38px)' $rightside.style.cssText = 'opacity: 0.8; transform: translateX(-58px)'
} }
}, 200)) }, 200))