1sw = window.innerWidth - $(window).width(); 2function scrollHandler(){ 3 var wh = window.innerHeight; 4 var ww = window.innerWidth; 5 var sct = $(window).scrollTop(); 6 var scl = $(window).scrollLeft(); 7 8 //SCROLLBUTTON 9 if(sct > wh / 2) { 10 $(".header__scroll a").addClass("rtn"); 11 $(".header__scroll a strong").text('PAGETOP'); 12 }else{ 13 $(".header__scroll a").removeClass("rtn"); 14 $("body:not(.sub) .header__scroll a strong").text('SCROLL'); 15 } 16 //HEADER VERTICAL FIXED 17 if(wh < 640){ 18 var ch = $("#fullWrap").outerHeight() - sct - 640; 19 if(ch > 0){ 20 ch = 0; 21 } 22 $("header,.ic,.nav__about").css({'top':ch+'px'}); 23 }else{ 24 $("header,.ic,.nav__about").css({'top':0}); 25 } 26 //HEADER HORIZONTAL FIXED 27 if(ww < 1200) { 28 $("header,.ic").css({'left':-(scl)+'px'}); 29 $(".nav__about").css({'left':-(scl)+240+'px'}); 30 }else{ 31 $("header,.ic").css({'left':0}); 32 $(".nav__about").css({'left':'240px'}); 33 } 34} 35function modalmovie(_path,_num) { 36 $(".modal__cont").load(_path+'assets/parts/movie.php',function(){ 37 var tobj = $(".modal__movie--nav li:nth-child("+_num+")").find('a'); 38 var ytid = tobj.data('yt'); 39 tobj.addClass('active'); 40 $(".modal__movie iframe").attr('src','https://www.youtube.com/embed/'+ytid); 41 $("body").css({"overflow":'hidden','margin-right':sw+'px'}); 42 $("#modal").fadeIn(500); 43 }); 44} 45function modalmusic(_file) { 46 $(".modal__cont").load(_file,function(){ 47 $("body").css({"overflow":'hidden','margin-right':sw+'px'}); 48 $("#modal").fadeIn(500); 49 }); 50} 51function modalClose() { 52 $("#modal").fadeOut(500,'linear',function(){ 53 $(".modal__cont").html(''); 54 $("body").attr('style',''); 55 }); 56} 57function characterChange(_setid,_this){ 58 $(".character__img").hide(); 59 $("#"+_setid).fadeIn(500); 60 $(".character__imgs ol a").removeClass("active"); 61 _this.addClass('active'); 62} 63function atChange(_setid,_this){ 64 $(".at__img").hide(); 65 $("#"+_setid).fadeIn(500); 66 $(".at__imgs ol a").removeClass("active"); 67 _this.addClass('active'); 68} 69 $(".modalin").on('click','.modal__movie--nav li a',function(){ 70 var ytid = $(this).data('yt'); 71 $(".modal__movie iframe").attr('src','https://www.youtube.com/embed/'+ytid); 72 $(".modal__movie--nav li a").removeClass('active'); 73 $(this).addClass('active'); 74 return false; 75 }); 76$(function(){ 77 //ANCHOR SMOOTH SCROLL 78 $('.anchor').click(function() { 79 var speed = 800; 80 var href= $(this).attr("href"); 81 var target = $(href == "#" || href == "" ? 'html' : href); 82 var position = target.offset().top; 83 $('body,html').animate({scrollTop:position}, speed, 'easeInOutQuint'); 84 return false; 85 }); 86 //SCROLL CLICK 87 $(".header__scroll a").on('click',function(){ 88 if($(this).hasClass('rtn')){ 89 var position = $("#index").offset().top; 90 }else{ 91 var position = $(".contents").offset().top; 92 } 93 $('body,html').animate({scrollTop:position}, 800, 'easeInOutQuint'); 94 }); 95 96 $("#menuBtn a").on('click',function(){ 97 $("#menuBtn,header").toggleClass('on'); 98 if($("#menuBtn").hasClass('on')){ 99 $("#menuBtn strong").text('CLOSE'); 100 }else{ 101 $("#menuBtn strong").text('MENU'); 102 } 103 }); 104 105 //ABOUT SUB 106 $(".nav__about--block > a").on('click',function(){ 107 var ww = window.innerWidth; 108 if(ww < 771){ 109 $(".nav__about").toggleClass("on").slideToggle(500); 110 $(".nav__about--block").toggleClass("on"); 111 return false; 112 } 113 }); 114 115 //ABOUT CONTENT 116 $(".about__list--titles").on('click',function(){ 117 $(this).find('.alts__title--c').toggleClass("on"); 118 $(this).next('.about__list--content').slideToggle(500, 'easeInOutQuint'); 119 var position = $(this).offset().top +-96; 120 $('body,html').animate({scrollTop:position}, 500, 'easeInOutQuint'); 121 return false; 122 }); 123 124 //KEYWORDS CONTENT 125 $(".keyword__content h3").on('click',function(){ 126 $(this).next('dl').slideToggle(500,'easeInOutQuint'); 127 $(this).toggleClass('on'); 128 var position = $(this).offset().top +-96; 129 $('body,html').animate({scrollTop:position}, 500, 'easeInOutQuint'); 130 }) 131 132 133 $("#top__title--link li").on('click',function(){ 134 var idx = $(this).index(); 135 owl.trigger('to.owl.carousel',idx); 136 }); 137 var owl = $("#top__visual--carousel ul"); 138 owl.owlCarousel({ 139 items:1, 140 loop:true, 141 mouseDrag:false, 142 dots:true, 143 autoplay:true, 144 autoplayTimeout:4000, 145 autoplayHoverPause:false, 146 smartSpeed:500, 147 touchDrag:true 148 }); 149 $("#top__visual--bar div").css({width:0}).animate({width:'100%'},4000,'linear'); 150 owl.on('changed.owl.carousel', function(event) { 151 $("#top__visual--bar div").css({width:'0px'});
152 $("#top__visual--bar div").stop(true,false).animate({width:'100%'},4500,'linear'); 153 $("#top__title--link li,#top__title--logo li").removeClass("active"); 154 $("#top__title--logo li:eq("+event.page.index+"),#top__title--link li:eq("+event.page.index+")").addClass("active"); 155 }); 156 if($("#top__pickup--carousel li").length > 1){ 157 var powl = $('#top__pickup--carousel ul').owlCarousel({ 158 items:1, 159 autoWidth:false, 160 smartSpeed:500, 161 loop:true, 162 autoplay:true, 163 autoplaySpeed:500, 164 touchDrag:true, 165 pullDrag:false, 166 mouseDrag:false, 167 autoplayTimeout:5000 168 }); 169 $("#top__pickup--bar div").css({width:0}).animate({width:'100%'},5000,'linear'); 170 powl.on('changed.owl.carousel', function(event) { 171 $("#top__pickup--bar div").css({width:'0px'}); 172 $("#top__pickup--bar div").stop(true,false).animate({width:'100%'},5500,'linear'); 173 }); 174 } 175 $('a:not(.anchor)').on('click',function(){ 176 var ww = window.innerWidth; 177 var alnk = $(this); 178 if(alnk.attr('href').indexOf('javascript')!= -1 || alnk.attr('target')=='_blank'||(alnk.parent('li').hasClass('nav__about--block')&&ww<771)){ 179 return true; 180 }else{ 181 $("#loading__in").animate({'left':0},250,'swing',function(){ 182 location.href = alnk.attr('href'); 183 }); 184 } 185 return false; 186 }); 187 if($('#top__title')[0]){ 188 $(".modal__cont").load('./assets/parts/firstmodal.php',function(){ 189 $("body").css({"overflow":'hidden','margin-right':sw+'px'}); 190 $("#modal").fadeIn(500); 191 }); 192 } 193}); 194window.onunload=function(){} 195window.addEventListener("pageshow", function(event){ 196 if (event.persisted) { 197 window.location.reload(); 198 } 199}); 200$(window).on('load scroll resize',scrollHandler); 201$(window).on('load unload',function(){ 202 $("#loading__out").delay(200).animate({'left':'100%','right':'-100%'},250); 203 setTimeout(function(){ 204 $(".loading__out--box").hide(); 205 },250) 206 $(window).bind("unload", function() {}); 207});
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.