mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
use details summary for spoiler
This commit is contained in:
Vendored
-9
@@ -1,13 +1,4 @@
|
||||
jQuery(document).ready(function () {
|
||||
jQuery('.spoiler-title').on('click', function () {
|
||||
let content = jQuery(this).parent().next();
|
||||
if (content.hasClass('collapse')) {
|
||||
content.height(content[0].scrollHeight).removeClass('collapse')
|
||||
} else {
|
||||
content.height(0).addClass('collapse')
|
||||
}
|
||||
})
|
||||
|
||||
function getImgPosition(e, imgEle) {
|
||||
// console.log(e, imgEle)
|
||||
let imgWidth = imgEle.prop('naturalWidth')
|
||||
|
||||
Reference in New Issue
Block a user