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.