とりあえず一旦これで自動修正

This commit is contained in:
hina
2020-06-06 18:01:56 +09:00
parent 334c810b8d
commit edd7a6f4c8
12 changed files with 295 additions and 268 deletions

View File

@@ -8,10 +8,10 @@ $(() => {
$('body').removeClass('tis-need-agecheck');
} else {
$('#ageCheckModal')
.modal({backdrop: 'static'})
.modal({ backdrop: 'static' })
.on('hide.bs.modal', function () {
$('body').removeClass('tis-need-agecheck');
Cookies.set('agechecked', '1', {expires: 365});
Cookies.set('agechecked', '1', { expires: 365 });
});
}
@@ -52,7 +52,7 @@ $(() => {
$.ajax({
url: '/api/likes/' + encodeURIComponent(targetId),
method: 'delete',
type: 'json'
type: 'json',
})
.then(callback)
.catch(function (xhr: jqXHR) {
@@ -78,8 +78,8 @@ $(() => {
method: 'post',
type: 'json',
data: {
id: targetId
}
id: targetId,
},
})
.then(callback)
.catch(function (xhr: jqXHR) {
@@ -99,7 +99,7 @@ $(() => {
$(document).on('click', '.card-spoiler-overlay', function (event) {
const $this = $(this);
$this.siblings(".card-link").removeClass("card-spoiler");
$this.siblings('.card-link').removeClass('card-spoiler');
$this.remove();
});
});