1window.onbeforeunload = function() {}; 2window.onunload = function() {}; 3window.addEventListener("pageshow", function(event){if (event.persisted) {window.location.reload();}}); 4 5$(document).ready(function(){ 6function loadVideo() { 7var date = new Date( '2000/1/1' ); 8// console.info(`loadVideo called`); 9 (function loadYoutubeIFrameApiScript() { 10 const tag = document.createElement("script"); 11tag.src = "https://www.youtube.com/iframe_api?date=" + date.getTime(); 12const firstScriptTag = document.getElementsByTagName("script")[0]; 13firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); 14tag.onload = setupPlayer; 15})(); 16} 17 18//èæ¯åç»ãKV 19let player = null; 20let boxid = '#bgmovie'; 21let boxArea = 'bgmovie'; 22function setupPlayer() { 23//background movie 24let movieid = ''; 25let movieStart = 0,movieEnd = 0; 26if($('#baseVW').width()>1024 && ( $('.ipad')[0] || $('.android')[0] ) ) { 27boxid = '#bgmovie'; 28boxArea = 'bgmovie'; 29}else if($('#baseVW').width()>1024){ 30 boxid = '#bgmovie'; 31 boxArea = 'bgmovie'; 32} 33if($(boxid)[0] && $(boxid).attr('data-pc')[0]){movieid = $(boxid).attr('data-pc');} 34if($(boxid)[0] && $(boxid).attr('data-start')[0]){movieStart = $(boxid).attr('data-start');} 35if($(boxid)[0] && $(boxid).attr('data-end')[0]){movieEnd = $(boxid).attr('data-end');} 36var ytPlayer = []; 37var ytPlaying, ytStop, ytPlay; 38var ytData = [{id: movieid,area: boxArea,skip:movieStart,end:movieEnd}]; 39// ãã¬ã¼ã¤ã¼ã®ãµã¤ãº 40var ytWidth = 1200; 41var ytHeight = 720; 42window.YT.ready(function(){ 43player = new window.YT.Player(ytData[0]['area'], { 44height: ytHeight, 45width: ytWidth, 46videoId: ytData[0]['id'], 47 playerVars: { 48 'autoplay': 1, 49 'controls': 0, 50 'enablejsapi': 1, 51 'iv_load_policy': 3, 52 'disablekb':1, 53 'showinfo':0, 54 'wmode':'transparent', 55 //'quality':'hd720', 56 'rel':0, 57 'end':ytData[0]['end'], 58 'start':ytData[0]['skip'], 59 playsinline:1 60 }, 61 events: { 62 onReady: onPlayerReady, 63 onStateChange: onPlayerStateChange 64 } 65 }); 66 }); 67 68//resizeMovie(); 69//$(window).on('resize load',function(){resizeMovie();}); 70function resizeMovie () { 71 if($('#baseVW').width()>1920){ 72 var w = $('#baseVW').width(); 73 var h = w / 16 * 9; 74 $(boxid).removeClass('spfix'); 75 $(boxid).css({ width: w, height: h, marginTop: 0, marginLeft: 0}); 76 }else if($('#baseVW').width()>1023){ 77 var w = 1920; 78 var w2 = 1920 - $('#baseVW').width(); 79 var h = 1080; 80 var wh = $(window).outerHeight(); 81 var ww = $(window).outerWidth(); 82 $(boxid).removeClass('spfix'); 83 /* 84 if(wh>h){ 85 w = wh/9*16; 86 $(boxid).css({ width: w, height: wh, marginTop: 0, marginLeft: 0 - ((ww-w)/2) }); 87 }else{ 88 $(boxid).css({ width: w, height: h, marginTop: 0 - ((h - wh) / 2), marginLeft: 0 - ((w-ww)/2) }); 89 } 90 */ 91 }else{ 92 $(boxid).addClass('spfix'); 93 } 94//resizeMovie 95} 96} 97 98function onPlayerReady(e) { 99 //var index = $(e.target.f).attr('data-videoindex'); 100// player.setPlaybackQuality('hd1080'); 101 player.mute(); 102 player.playVideo(); 103// setTimeout(function(){ 104 $(boxid).css('opacity',1); 105 $('html,body').addClass('bgmovieplayed'); 106 //},200); 107} 108function onPlayerStateChange(e) { 109 //var index = $(e.target.f).attr('data-videoindex'); 110 //console.log(index); 111 player.playVideo(); 112 player.mute(); 113} 114 115 116 if($('#baseVW').width()>1023){ 117 118 if (document.readyState !== "loading") { 119 $('html').addClass('playmovie'); 120 //console.info(`document.readyState ==>`, document.readyState); 121 loadVideo(); 122 } else { 123 document.addEventListener("DOMContentLoaded", function() { 124 //console.info(`DOMContentLoaded ==>`, document.readyState); 125 $('html').addClass('playmovie'); 126 loadVideo(); 127 }); 128 } 129 $(window).on('load',function(){ 130 checkmovie(); 131 }); 132 }; 133 function checkmovie(){ 134 if($('html.playmovie')[0]){ 135 setTimeout(function(){ 136 checkmovie(); 137 },1000); 138 }else{ 139 loadVideo(); 140 } 141 } 142 143/* slider */ 144if(1024 > $('#baseVW').width()){ 145 $('body').addClass('bgmovieplayed'); 146} 147 148loadcheck(); 149function loadcheck(){ 150 if($('.imgloaded')[0]){ 151 152 }else{ 153 setTimeout(function(){ 154 loadcheck(); 155 }) 156 } 157} 158 159$('#registerButton').on('click',function(e){ 160 e.preventDefault(); 161 162 var notification = ($("#a1").prop('checked') === true) ? 1 : 0; 163 164 var url = 'https://' + mememoriApiDomain + '/DmgPreRegister/Register?notification=' + notification; 165 location.href = url; 166}); 167 168 169// scroll check 170 171if($('#baseVW').width()>1023){ 172preScrollXcheck(); 173$(window).on('load resize scroll',function(){preScrollXcheck();}); 174 function preScrollXcheck(){ 175 var $sl = $(window).scrollLeft(); 176 if($('.ipad')[0]){ 177 }else{ 178 if($sl>0){ 179 $('.floating_registlink').css('left',0-$sl).addClass('sl'); 180 }else{ 181 $('.floating_registlink').css('left',0).removeClass('sl'); 182 } 183 } 184 } 185} 186preScrollYcheck(); 187$(window).on('load resize scroll',function(){preScrollYcheck();}); 188 function preScrollYcheck(){ 189 var $st = $(window).scrollTop(); 190 if($st>0){ 191 $('html,body').addClass('prescroll'); 192 }else{ 193 $('html,body').removeClass('prescroll'); 194 } 195 } 196 197 198 199}); 200
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.