Check more 增加样式

hotfix/paypal-note
LiaoYijun 4 years ago
parent 2964c3504e
commit 820183dbed

@ -316,8 +316,9 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
doc.addEventListener('DOMContentLoaded', () => {
var moreButton = doc.getElementById(buttonId);
var contentDiv = doc.getElementById(contentId);
if (moreButton === null || contentDiv === null) {
console.error('CHECK MORE config error');
var lastContentDiv = doc.getElementById(lastContentId);
if (moreButton === null || contentDiv === null || lastContentDiv === null) {
console.warn('CHECK MORE config error');
return;
}
moreButton.addEventListener('click', () => {
@ -326,13 +327,14 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
moreButton.classList.add('gh-display-none');
}, 80);
contentDiv.classList.remove('gh-display-none');
lastContentDiv.classList.remove('normal_content');
setTimeout(() => {
contentDiv.classList.remove('gh-animate-slide-down');
contentDiv.classList.add('gh-animate-slide-up');
}, 0);
});
});
})(document, 'checkMoreButton', 'moreContentDiv');
})(document, 'checkMoreButton', 'moreContentDiv', 'lastContentDiv');
</script>
<!--@IN-ARTICLE-GOOGLE@-->
<!--@ADDTHIS-WIDGET@-->

@ -266,8 +266,9 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
doc.addEventListener('DOMContentLoaded', () => {
var moreButton = doc.getElementById(buttonId);
var contentDiv = doc.getElementById(contentId);
if (moreButton === null || contentDiv === null) {
console.error('CHECK MORE config error');
var lastContentDiv = doc.getElementById(lastContentId);
if (moreButton === null || contentDiv === null || lastContentDiv === null) {
console.warn('CHECK MORE config error');
return;
}
moreButton.addEventListener('click', () => {
@ -276,13 +277,14 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
moreButton.classList.add('gh-display-none');
}, 80);
contentDiv.classList.remove('gh-display-none');
lastContentDiv.classList.remove('normal_content');
setTimeout(() => {
contentDiv.classList.remove('gh-animate-slide-down');
contentDiv.classList.add('gh-animate-slide-up');
}, 0);
});
});
})(document, 'checkMoreButton', 'moreContentDiv');
})(document, 'checkMoreButton', 'moreContentDiv', 'lastContentDiv');
</script>
<!--@PRODUCT-JS@-->
<!--@ADDON-JS@-->

Loading…
Cancel
Save