PageSourceSearch

https://www.hankyu-bunka.or.jp/parser_root.js?ver=20260922

js hankyu-bunka.or.jp collected 2026-09-24 09:53:27 UTC 4,778 bytes, 121 lines download raw bytes

1$(function () {
2    let data = [];
3    let code = '';
4    let code_last = '';
5    let buybtn = '';
6    let currentDate = "";
7
8    //SET CURRENT DATE
9    $.ajax({
10        type: 'GET'
11    }).done(function (data, status, xhr) {
12        var serverDate = new Date(xhr.getResponseHeader('Date'));
13        let year = serverDate.getFullYear();
14        let month = ("0" + (serverDate.getMonth() + 1)).slice(-2);
15        let day = ("0" + serverDate.getDate()).slice(-2);
16        let hours = ("0" + serverDate.getHours()).slice(-2);
17        let minutes = ("0" + serverDate.getMinutes()).slice(-2);
18        let seconds = ("0" + serverDate.getSeconds()).slice(-2);
19        // console.log(year + month + day);
20        currentDate = year + month + day + hours + minutes + seconds;
21        getJson();
22    });
23
24    function getJson() {
25        $.ajax({
26            type: "GET",
27            // url: "/magnolia-hall/concert/entry.json",
28            // url: "/magnolia-hall/dev__concert/entry.json",
29            url: "/magnolia-hall/concert/entry.json",
30            dataType: "json",
31            async: false,
32        }).then(
33            function (json) {
34                for (var i = 0; i < json.length; i++) {
35                    // json値をdata配列に追加
36                    data.push({
37                        id: json[i].id,
38                        title: json[i].title,
39                        sholder: json[i].sholder,
40                        sub_title: json[i].sub_title,
41                        content_date_entry: json[i].content_date_entry,
42                        content_time_start: json[i].content_time_start,
43                        content_date_start_unit: json[i].content_date_start_unit,
44                        content_date_start_year: json[i].content_date_start_year,
45                        content_date_start: json[i].content_date_start,
46                        content_date_end: json[i].content_date_end,
47                        content_entry_time_start: json[i].content_entry_time_start,
48                        image: json[i].image,
49                        permalink: json[i].permalink,
50                        category: json[i].category,
51                        category_basename: json[i].category_basename,
52                        label_sale: json[i].label_sale,
53                        book_type: json[i].book_type,
54                        is_pickup: json[i].is_pickup,
55                        is_top_pickup: json[i].is_top_pickup,
56                        event_label: json[i].event_label,
57                        date: json[i].date,
58                        buybtn: json[i].buybtn,
59                    });
60                }
61
62                const current_entryID = $('#data-pageposition').data('entryID');
63                const current_pagetype = $('#data-pageposition').data('pagetype');
64
65                console.log("current_entryID : " + current_entryID);
66                console.log("current_pagetype : " + current_pagetype);
67
68                if (current_pagetype == "root") {
69
70                    console.log("//////// root")
71                    for (var i = 0; i < data.length; i++) {
72
73                        if (Number(currentDate) >= Number(data[i]["content_entry_time_start"])) {
74                            if (Number(data[i]["is_top_pickup"]) == 1) {
75                                console.log("title : " + data[i]["title"]);
76                                setObjectRootMagnoliahall(data, i);
77                            }
78                        }
79                    }
80                } else {
81
82                }
83                // console.log("SUCCESS");
84            },
85            function () {
86                // console.log("ERROR");
87            }
88        );
89    }
90
91
92    function setObjectRootMagnoliahall(data, i) {
93        code = '' +
94            '<div class="inner_col">' +
95            '<div class="details">' +
96            '<a href="/magnolia-hall/">' +
97            '<h2 class="title"><img src="/assets/images/img_logo_recommend_0002.png" alt="マグノリアホール"></h2>' +
98            '</a>' +
99            '<div class="event-details">' +
100            '<p class="status magnolia">オススメ</p>' +
101            '<div class="text">' +
102            '<a href="' + data[i]["permalink"] + '">' +
103            '<h3 class="event-title magnolia">' + data[i]["title"] + '</h3>' +
104            '<p class="date">日時:' + data[i]["date"] + '</p>' +
105            '</a>' +
106            '</div>' +
107            '</div>' +
108            '</div>' +
109            '<div class="image">' +
110            '<a href="' + data[i]["permalink"] + '">' +
111            '<img class="news_list__thumb" src="' + data[i]["image"] + '">' +
112            '</a>' +
113            '</div>' +
114            '</div>';
115
116        $('#root_magnoliahall_recommend').append(code);
117    }
118
119
120
121});

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.