PageSourceSearch

https://www.keneibus.jp/js/modal.js

js keneibus.jp collected 2026-10-02 07:18:48 UTC 790 bytes, 37 lines download raw bytes

1function show_modal() {
2  $('.modal').show();
3  $('.bg').show();
4}
5
6function close_modal() {
7  $('.modal').hide();
8  $('.bg').hide();
9}
10
11function show_route_modal(href) {
12  if(typeof href === 'undefined') href = null;
13  $('.route-modal').show();
14  $('.bg').show();
15  if (href != "") {
16    location.href = href;
17  }
18}
19
20function close_route_modal() {
21  $('.route-modal').hide();
22  $('.bg').hide();
23}
24
25// 背景クリック時に閉じる(shirasagi)
26$(document).on('click touchend', '.bg', function() {
27  $('.modal').hide();
28  $('.route-modal').hide();
29  $('.bg').hide();
30});
31
32// 背景クリック時に閉じる(ローカル)
33// $('.bg').on('click', function() {
34//   $('.modal').hide();
35//   $('.route-modal').hide();
36//   $('.bg').hide();
37// });

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.