PageSourceSearch

https://www.heya-ten.jp/_js/index.v3.js

js heya-ten.jp collected 2026-10-08 02:03:22 UTC 7,703 bytes, 260 lines download raw bytes

1//top用js
2$(function () {
3  //ipad 振り分け
4  "use strict";
5  if (navigator.userAgent.indexOf("iPad") > 0) {
6    $("video").prop({
7      controls: "controls"
8    });
9    $("video").addClass("for-ipad");
10    $(".splash_container").addClass("for-ipad-bg");
11    $(".splash_container").addClass("v1");
12  }
13
14  var ua = navigator.userAgent;
15  var wh = $(window).height();
16  $('video').css({
17    height: wh
18  });
19
20  // 動画リスト、タイトルの設定
21  var vCount = 0,
22    videoID = document.getElementById('video'),
23    fileName = [
24      '/_img/slide1/uchu.mp3',  // slide1
25      '/_img/slide2/kaizoku.mp3',  // slide2
26      '/_img/slide3/autumn.mp3',  // slide3
27      '/_img/slide4/ukulele.mp3',  // slide4
28      '/_img/20190901-yoyaku.mp3', // 予約制の部屋店
29      // '/_img/movie/20150928_premiumDesk_CM.mp4',
30      // '/_img/movie/20150928_dance_CM.mp4',
31      // '/_img/movie/cast-to-be01.mp4',
32      // '/_img/movie/cast-to-be02.mp4',
33      // '/_img/movie/cast-to-be03.mp4',
34      // '/_img/movie/cast-to-be04.mp4',
35      // '/_img/movie/cast-to-be05.mp4',
36      // '/_img/movie/cast-to-be06.mp4',
37      // '/_img/movie/cast-to-be07.mp4',
38      // '/_img/movie/cast-to-be08.mp4',
39      // '/_img/movie/cast-to-be09.mp4',
40      // '/_img/movie/cast-to-be10.mp4',
41      // '/_img/movie/cast-to-be11.mp4',
42      // '/_img/movie/cast-to-be12.mp4',
43      // '/_img/movie/cast-to-be13.mp4',
44      // '/_img/movie/cast-to-be14.mp4',
45      // '/_img/movie/cast-to-be15.mp4',
46      // '/_img/movie/cast-to-be16.mp4',
47      // '/_img/movie/cast-to-be17.mp4',
48    ],
49    vTitle = [
50      '「SPHERE」',
51      '「ADVENTURE」',
52      '「FAMILY」',
53      '「STANDARD」',
54      '「予約制の部屋店」',
55      // '部屋店CM「プレミアムデスク 篇」',
56      // '部屋店CM「ももキキ - ダンス篇」',
57      // '「Cast to be!? Vol.1」',
58      // '「Cast to be!? Vol.2」',
59      // '「Cast to be!? Vol.3」',
60      // '「Cast to be!? Vol.4」',
61      // '「Cast to be!? Vol.5」',
62      // '「Cast to be!? Vol.6」',
63      // '「Cast to be!? Vol.7」',
64      // '「Cast to be!? Vol.8」',
65      // '「Cast to be!? Vol.9」',
66      // '「Cast to be!? Vol.10」',
67      // '「Cast to be!? Vol.11」',
68      // '「Cast to be!? Vol.12」',
69      // '「Cast to be!? Vol.13」',
70      // '「Cast to be!? Vol.14」',
71      // '「Cast to be!? Vol.15」',
72      // '「Cast to be!? Vol.16」',
73      // '「Cast to be!? Vol.17」'
74    ];
75
76  for (var i = 0; i < fileName.length; i++) {
77    fileName[ i ];
78  }
79
80  videoID.src = fileName[ 0 ];
81  $(".videotitle .text").text(vTitle[ 0 ]);
82  $(".videotitle").animate({
83    opacity: 1.0,
84  }, 2000);
85
86  // 再生が始まるタイミング
87  // 動画までは、data-slideが一致するものを再生
88  videoID.addEventListener('play', function () {
89  //  console.log("step1:vCount" + vCount);
90    $('[data-slide="' + vCount + '"]').fadeIn("slow");
91  });
92
93  videoID.addEventListener('play', function () {
94    if(vCount === 3){    // タイトルロゴを変更
95      $('[data-title="0"]').addClass('d-none');
96      $('[data-title="1"]').removeClass('d-none');
97    } else {
98      $('[data-title="0"]').removeClass('d-none');
99      $('[data-title="1"]').addClass('d-none');
100    }
101
102  });
103
104  // 再生が終わるタイミング
105  videoID.addEventListener('ended', function () {
106
107    videoID.pause();      // ビデオ一時停止
108
109    if (vCount < fileName.length - 1 ) {
110
111      vCount ++;
112      $('video').animate({
113        'opacity': 0
114      }, 800, function () {
115        // フェードアウトさせる
116        //vCount
117        videoID.src = fileName[ vCount ];
118
119        $(".videotitle .text").text(vTitle[ vCount ]);
120        $('video').animate({
121          'opacity': 1
122        }, 800, function () {
123          videoID.play();    // ビデオ再生
124          $('[data-slide="' + (vCount - 1) + '"]').fadeOut("slow");
125        });
126      });
127    } else {
128
129      // 最後まで再生したら、カウントを0にする
130      $('[data-slide="' + vCount + '"]').fadeOut("slow");
131      vCount = 0;
132      videoID.pause();
133      $('video').animate({
134        'opacity': 0
135      }, 800, function () {
136        videoID.src = fileName[ 0 ];
137        $(".videotitle .text").text(vTitle[ 0 ]);
138        $('video').animate({
139          'opacity': 0
140        }, 800, function () {
141          videoID.play();
142        });
143      });
144    }
145  }, false);
146
147  // 音声ミュート----------------------------
148  $('.mute').on('click', function () {
149    $(this).toggleClass('off');
150    $("video").prop('muted', !$("video").prop('muted'));
151  });
152
153  // ビデオ Play----------------------------
154  var videoPlaylg,
155    v = document.getElementById("video");
156
157  function videoPause() {
158    $('#play-video span').text('pause');
159    $('#play-video').removeClass('play');
160    $('#play-video').addClass('pause');
161    v.pause();
162    videoPlaylg = true;
163  }
164
165  function videoPlay() {
166    $('#play-video span').text('play');
167    $('#play-video').removeClass('pause');
168    $('#play-video').addClass('play');
169    v.play();
170    videoPlaylg = false;
171  }
172
173
174  if (ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0) {
175    // スマートフォン用コード
176    $('.splash_container').addClass('sp');
177    videoPlaylg = false;
178    videoPlay();
179  } else if (ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0) {
180    // タブレット用コード
181    $('.splash_container').addClass('sp');
182    videoPlaylg = false;
183    videoPlay();
184  } else {
185    // PC用コード
186    $('.splash_container').addClass('pc');
187    videoPlaylg = false;
188    videoPlay();
189  }
190
191  $('#play-video').on('click', function () {
192    if (videoPlaylg === false) {
193      videoPause();
194      //console.log("再生ストップ");
195    } else {
196      videoPlay();
197      //console.log("再生中");
198    }
199  });
200
201  // sort -----------------------
202  $(this).addClass('active');
203  $('.sort_wrap .item_wrap').datasort({
204    datatype: 'date',
205    sortAttr: 'id'
206    //reverse: true
207  });
208
209  $('.sort_wrap .item_wrap').each(function () {
210    if (!$(this).hasClass('groupe_new')) {
211      $(this).fadeOut('normal').addClass('hidden');
212    } else {
213      $(this).fadeIn('slow').removeClass('hidden');
214    }
215  });
216
217  // filter -----------------------
218  $('#filter a').click(function () {
219    $('#filter .active').removeClass('active');
220    $(this).addClass('active');
221
222    var filterVal = $(this).text().toLowerCase().replace(' ', '-');
223
224    if (filterVal === 'all') {
225      $('.col-lg-8').css({
226        'width': '66.66666667%'
227      });
228      $('.sort_wrap .item_wrap').fadeIn('slow').removeClass('hidden');
229      $('.sort_wrap div').datasort({
230        datatype: 'date',
231        sortAttr: 'id'
232        //reverse: true
233      });
234      $('.sort_wrap .item_wrap').each(function () {
235        if (!$(this).hasClass('groupe_new')) {
236          $(this).fadeOut('normal').addClass('hidden');
237        } else {
238          $(this).fadeIn('slow').removeClass('hidden');
239        }
240      });
241    } else {
242      $('.sort_wrap .item_wrap').each(function () {
243        if (!$(this).hasClass(filterVal)) {
244          $(this).fadeOut('normal').addClass('hidden');
245          $('.col-lg-8').css({
246            'width': '50%'
247          });
248
249        } else {
250          $(this).fadeIn('slow').removeClass('hidden');
251          $('.col-lg-8').css({
252            'width': '50%'
253          });
254        }
255      });
256    }
257    return false;
258  });
259
260});

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.