spoilerを画像にだけ適用するように変更

This commit is contained in:
eai04191
2020-01-13 11:23:20 +09:00
parent 9f565798c0
commit 5e9fa05be5
3 changed files with 24 additions and 14 deletions

View File

@@ -96,9 +96,11 @@ $(() => {
}
});
$(document).on('click', '.card-spoiler-overlay', function (event) {
$(document).on('click', '.card-spoiler-wrap', function (event) {
const $this = $(this);
$this.siblings(".card-link").removeClass("card-spoiler");
const $card = $this.siblings(".card-link");
$card.removeClass("card-spoiler");
$card.find('.card-img-spoiler-overlay').remove();
$this.remove();
});
});