1// JavaScript Document 2$(window).on('load',function(){ 3 $('.l-transition').addClass('is-load'); 4 // $('body').removeClass('is-transition'); 5 setTimeout(function(){ 6 $('.l-transition').addClass('is-load'); 7 $('.l-transition').addClass('is-finish'); 8 $('header').show(); 9 },800); 10 11 //ãããã¢ãã 12 var popup = document.getElementById('js-popup'); 13 if(!popup) return; 14 popup.classList.add('is-show'); 15 16 var blackBg = document.getElementById('js-black-bg'); 17 var closeBtn = document.getElementById('js-close-btn'); 18 19 closePopUp(blackBg); 20 closePopUp(closeBtn); 21 22 function closePopUp(elem) { 23 if(!elem) return; 24 elem.addEventListener('click', function() { 25 popup.classList.remove('is-show'); 26 }) 27 } 28 29}); 30 31/*======================================= 32ç»é¢é·ç§» 33=========================================*/ 34 35/* topã®ã¿-scrollifyä½¿ç¨ */ 36//scrollify ã¹ã¯ãã¼ã«åä½ 37//scrollify footeråä½ offsettopåå² 38jQuery(function($){ 39 var current; 40 $.scrollify({ 41 section:".home-scroll", 42 interstitialSection:"#footer", 43 setHeights:true, 44 updateHash:false,//falseã ã¨ãªãã¼ãã§éä¸ããã®æãå·¦ç»åãå¤ãããªããâafterRenderã§åæåããã°ããã 45 before:function(i,box){ 46 current = i; 47 section_image_change(i); 48 }, 49 afterRender:function(){ 50 //ä½çªç®ããåå¾ããã¼ã¸éä¸ã§ãªãã¼ãããå ´åç¨ããã â$.scrollify.enable()ãå ¥ããã常ã«0çªéå§ã«ãªã£ã¦ãã¾ã£ã 51 var i = $('.home-scroll').index($.scrollify.current()); 52 section_image_change(i); 53 $.scrollify.update(); 54 }, 55 }); 56 $(window).on('resize',function(){ 57 if(current){ 58 var currentScrl = $('.home-scroll, .footer').eq(current).offset().top; 59 $(window).scrollTop(currentScrl); 60 } 61 }); 62}); 63 64 65$(function(){ 66 var timer = false; 67 $(window).on('load resize', function() { 68 69 //ç¶ç¶å¼ã³åºã鲿¢ã®timeoutã使ãã¨ããªãµã¤ãºæã«ä¸é¨ã¸æ»ãã®ã§æ²¡ã*loadã¨resizeãåããã®ã¯è©¦ãã¦ãã¾ãã 70 // if (timer !== false) {clearTimeout(timer)}; 71 // timer = setTimeout(function() { }, 200); 72 73 // ã¹ããã¬ã¤ã¢ã¦ãæã¯scrollifyãç¡å¹ 74 if (window.matchMedia('(max-width: 980px)').matches) { 75 $.scrollify.disable(); 76 } else { 77 $.scrollify.enable(); 78 } 79 80 }); 81});
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.