PageSourceSearch

https://iriofficial.com/js/live.js

js iriofficial.com collected 2026-10-02 16:46:57 UTC 8,397 bytes, 207 lines download raw bytes

1'use strict';
2
3(function($) {
4    $(function() {
5
6        AIP.getData('live', function(data) {
7            var live = data.live.tour;
8            var $liveContent = $('.live_content');
9            for (var i = 0, len = live.length; i < len; i++) {
10//                if (!live[i].info) continue;
11
12//                var d = live[i].info[0].date.split('(');
13//                var date = getWeek(d[0]);
14//               console.log(date);
15//                if (live[i].info.length > 1) {
16//                    date += '~';
17//                }
18               
19               
20//                var $article = $('<article/>').addClass('effect2').append($('<time/>').addClass('f1SB').text(d[0] + ' ' + date)).append($('<p/>').addClass('title').html(live[i].title));
21               var $article = $('<article/>').addClass('effect2').append($('<p/>').addClass('title').html(live[i].title));
22
23                var $hideArea = $('<div/>').addClass('hide_area');
24               
25                for (var l = 0; l < live[i].info.length; l++) {
26                   
27                   console.log(live[i].info.length);
28                   var t = live[i].info[l];
29                   console.log(t);
30                   
31                   
32                   
33                   var place = '';
34                    if (t.place_url) {
35                        place = '<a href="' + t.place_url + '" target="_blank">' + t.place + '</a>';
36                    } else {
37                        place = t.place;
38                    }
39                   var $liveInfo_inner = $('<div/>').addClass('live_info_inner');
40                    $liveInfo_inner.append(dl('日 程', t.date)).append(dl('地 域', t.prefecture)).append(dl('会 場', place)).append(dl('開場 / 開演', t.time.replace(/(開場 |開演 )/, ''))).append(dl('チケット', t.charge)).append(dl('発売日', t.ticket)).append(dl('お問い合わせ', t.inquiry)).append(dl('備考', nl2br(t.note)));
41                   
42                   
43//                   var sub_d = live[i].info[l].date.split('(');
44//                   t.date.text.replace('/','.');
45//                   console.log(t.date);
46                   var sub_d = t.date.split('(');
47                   console.log(sub_d);
48                   var sub_date = getWeek(sub_d[0]);
49                   console.log(sub_date);
50                  var dot_date =  sub_d[0].split('/').join('.');
51                   console.log(dot_date);
52                   
53                   var $liveInfo_in = $('<div/>').addClass('live_info_in hide').append($liveInfo_inner);
54//                   var $liveInfo = $('<div/>').addClass('live_info bl' + l).append($('<p/>').addClass('title sub_date').text(sub_d[0] + ' ' + sub_date)).append($('<p/>').addClass('title sub_title').text(t.prefecture + ' ' + t.place)).append($liveInfo_in);
55                   var $liveInfo = $('<div/>').addClass('live_info bl' + l).append($('<p/>').addClass('title sub_date').text(dot_date + ' ' + sub_date)).append($('<p/>').addClass('title sub_title').text(t.prefecture + ' ' + t.place)).append($liveInfo_in);
56
57                   
58                   
59                   
60
61                    $hideArea.append($liveInfo);
62                     
63             
64                }
65
66                if (live[i].note || live[i].link_url) {
67                    var note = live[i].note;
68                    if (live[i].link_url) {
69                        note += '<br><br><a href="' + live[i].link_url + '" target="' + live[i].link_target + '">' + (live[i].link_label ? live[i].link_label : live[i].link_url) + '</a>';
70                    }
71//                    $hideArea.append($('<div/>').addClass('note').html(nl2br(note)));
72                   $article.append($('<div/>').addClass('note').html(nl2br(note)));
73                }
74
75                $liveContent.append($article.append($('<div/>').addClass('hide_wrap').append($hideArea)));
76               
77               
78            }
79
80            /**
81             * effect
82             */
83
84            $('article').each(function(index) {
85                (function(n, $obj) {
86                    setTimeout(function() {
87                        $obj.addClass('on');
88                    }, n * 600);
89                })(index, $(this));
90
91                if (index === 5) return false;
92            });
93
94            var effect = [];
95            $('.effect2').each(function(index) {
96                effect.push({
97                    top: $(this).offset().top,
98                    obj: $(this)
99                });
100            });
101
102            $(window).on('scroll.effect', function() {
103                var st = $(this).scrollTop();
104                var fire = 0;
105                for (var _i = 0; _i < effect.length; _i++) {
106                    if (st + WH * .8 >= effect[_i].top) {
107                        fire = _i + 1;
108                        effect[_i].obj.addClass('on').on(END, function() {
109                            $(this).off(END).removeClass('effect2');
110                        });
111                    }
112                }
113
114                if (fire > 0) {
115                    effect.splice(0, fire);
116                    if (!effect.length) {
117                        $(window).off('effect');
118                    }
119                }
120            });
121
122
123           
124           
125//            $('article').on('click', function() {
126//                var $this = $(this);
127//                if ($this.hasClass('open')) {
128//                    TM.fromTo($this.find('.hide_wrap').addClass('hide'), 1, {
129//                        height: $this.find('.hide_area').outerHeight()
130//                    }, {
131//                        height: 0
132//                    });
133//                } else {
134//                    TM.to($this.find('.hide_wrap'), 1, {
135//                        height: $this.find('.hide_area').outerHeight(),
136//                        onComplete: function onComplete() {
137//                            $this.find('.hide_wrap').removeClass('hide').css({
138//                                height: 'auto'
139//                            });
140//                        }
141//                    });
142//                }
143//
144//                $(this).toggleClass('open');
145//            });
146
147           
148           
149           
150           
151//           $('.live_info').on('click', function() {
152//                var $this = $(this);
153//                if ($this.hasClass('open')) {
154//                    TM.fromTo($this.find('.live_info_in').addClass('hide'), 1, {
155//                        height: $this.find('.live_info_inner').outerHeight()
156//                    }, {
157//                        height: 0
158//                    });
159//                } else {
160//                    TM.to($this.find('.live_info_in'), 1, {
161//                        height: $this.find('.live_info_inner').outerHeight(),
162//                        onComplete: function onComplete() {
163//                            $this.find('.live_info_in').removeClass('hide').css({
164//                                height: 'auto'
165//                            });
166//                        }
167//                    });
168//                }
169//
170//                $(this).toggleClass('open');
171//            });
172           
173           
174           
175           $('.live_info').on('click', function() {
176                var $this = $(this);
177                if ($this.hasClass('open')) {
178                    TM.fromTo($this.find('.live_info_in').addClass('hide'), 0.5, {
179                        height: $this.find('.live_info_inner').outerHeight()
180                    }, {
181                        height: 0
182                    });
183                } else {
184                    TM.to($this.find('.live_info_in'), 0.5, {
185                        height: $this.find('.live_info_inner').outerHeight(),
186                        onComplete: function onComplete() {
187                            $this.find('.live_info_in').removeClass('hide').css({
188                                height: 'auto'
189                            });
190                        }
191                    });
192                }
193
194                $(this).toggleClass('open');
195            });
196           
197           
198           
199        });
200
201        function dl(label, val) {
202            if (!val) return '';
203
204            return $('<dl/>').addClass('clear').append($('<dt/>').text(label)).append($('<dd/>').html(val));
205        }
206    });
207})(typeof Zepto !== 'undefined' ? Zepto : jQuery);

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.