PageSourceSearch

https://www.tkg-jp.com/js/contact_index.js

js tkg-jp.com collected 2026-10-05 03:34:41 UTC 1,043 bytes, 56 lines download raw bytes

1/* global jQuery */
2
3/**
4 * contact
5 *
6 * @date 2026-02-12
7 */
8
9var contact = function ($) {
10  // 初期化
11  var _init = function _init() {
12    $win = $(window);
13    $body = $('body');
14
15    $(function () {
16      kindSet.init();
17    });
18  };
19
20  /****
21   *
22   * お問い合わせ種別 初期設定
23   *
24   */
25  var kindSet = function () {
26    var paramLp = getParam('lp');
27    if (paramLp == 'houkago-program') {
28      $('select[name="select_kind"]').val('放課後学習支援プログラムについてのお問い合わせ');
29    }
30
31    return {
32      init: _init
33    };
34  }();
35
36  /****
37   *
38   * パラメータ取得
39   *
40   */
41  function getParam(name, url) {
42    if (!url) url = window.location.href;
43    name = name.replace(/[\[\]]/g, "\\$&");
44    var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
45        results = regex.exec(url);
46    if (!results) return null;
47    if (!results[2]) return '';
48    return decodeURIComponent(results[2].replace(/\+/g, " "));
49  }
50
51  return {
52    init: _init
53  };
54}(jQuery);
55
56contact.init();

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.