@@ -5,6 +5,7 @@ | |||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script> | <script src="//code.jquery.com/jquery-3.3.1.min.js"></script> | ||||
<script src="//code.jquery.com/ui/1.12.0/jquery-ui.min.js"></script> | <script src="//code.jquery.com/ui/1.12.0/jquery-ui.min.js"></script> | ||||
<script src="/modules/jquery.cookie-1.4.1.min.js"></script> | |||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script> | <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script> | ||||
<link href="//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" /> | <link href="//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" /> | ||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.min.css" /> | <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.min.css" /> | ||||
@@ -17,7 +18,7 @@ | |||||
<div class="accordion mb-5" id="accordion-filter"> | <div class="accordion mb-5" id="accordion-filter"> | ||||
<div class="accordion-item"> | <div class="accordion-item"> | ||||
<h2 class="accordion-header"> | <h2 class="accordion-header"> | ||||
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-filter" aria-expanded="true" aria-controls="collapse-filter"> | |||||
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-filter" aria-controls="collapse-filter"> | |||||
絞り込み | 絞り込み | ||||
</button> | </button> | ||||
</h2> | </h2> | ||||
@@ -0,0 +1,2 @@ | |||||
/*! jquery.cookie v1.4.1 | MIT */ | |||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}); |
@@ -67,6 +67,22 @@ Script | |||||
$ (window).resize (this.setPagination); | $ (window).resize (this.setPagination); | ||||
this.setPagination (); | this.setPagination (); | ||||
$ ('.pagination').removeClass ('opacity-0'); | $ ('.pagination').removeClass ('opacity-0'); | ||||
$ ('#accordion-filter').on ('shown.bs.collapse', function () | |||||
{ | |||||
$.cookie ('expand-filter', '1'); | |||||
}); | |||||
$ ('#accordion-filter').on ('hidden.bs.collapse', function () | |||||
{ | |||||
$.cookie ('expand-filter', '0'); | |||||
}); | |||||
if ($.cookie ('expand-filter') === '0') | |||||
{ | |||||
$ ('#collapse-filter').removeClass ('show'); | |||||
$ ('#accordion-filter .accordion-button').addClass ('collapsed'); | |||||
} | |||||
} | } | ||||
static | static | ||||