2019-03-05 00:18:27 +09:00
|
|
|
import Cookies from 'js-cookie';
|
|
|
|
|
2017-08-27 04:44:53 +09:00
|
|
|
require('./bootstrap');
|
2019-03-05 00:18:27 +09:00
|
|
|
|
|
|
|
$(() => {
|
|
|
|
if (Cookies.get('agechecked')) {
|
|
|
|
$('body').removeClass('tis-need-agecheck');
|
|
|
|
} else {
|
|
|
|
$('#ageCheckModal')
|
|
|
|
.modal({backdrop: 'static'})
|
|
|
|
.on('hide.bs.modal', function () {
|
|
|
|
$('body').removeClass('tis-need-agecheck');
|
|
|
|
Cookies.set('agechecked', '1', {expires: 365});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
if (navigator.serviceWorker) {
|
|
|
|
navigator.serviceWorker.register('/sw.js');
|
|
|
|
}
|
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
|
|
$('.alert').alert();
|
|
|
|
$('.tis-page-selector').pageSelector();
|
|
|
|
|
|
|
|
if (document.getElementById('status')) {
|
|
|
|
setTimeout(function () {
|
|
|
|
$('#status').alert('close');
|
|
|
|
}, 5000);
|
|
|
|
}
|
|
|
|
|
|
|
|
$('.link-card').linkCard();
|
2019-03-05 01:22:49 +09:00
|
|
|
$('#deleteCheckinModal').deleteCheckinModal();
|
2019-03-05 00:18:27 +09:00
|
|
|
});
|