tissue/resources/assets/js/app.js
2019-03-12 03:44:35 +09:00

26 lines
727 B
JavaScript
Vendored

import Cookies from 'js-cookie';
require('./bootstrap');
$(() => {
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();
$('.link-card').linkCard();
$('#deleteCheckinModal').deleteCheckinModal();
});