1/* 2 * Main Script 3 */ 4 5 6var $window = $(window); 7// var $header = $('#js-layout-header'); 8// var headerHeight = $header.outerHeight(); 9// var $footerButton = $('#js-lf-button'); 10 11// $(function() { 12// $('#js-lh-toggle').on('click', function() { 13// if($(this).attr('aria-expanded') === 'false') { 14// $('#js-layout-header').addClass('is-expand'); 15// } else { 16// $('#js-layout-header').removeClass('is-expand'); 17// } 18// }); 19// }); 20 21// function setupPlayer() { 22// /** 23// * THIS FAILS!!!!! 24// */ 25// // player = new YT.Player("player", { 26// // height: "390", 27// // width: "640", 28// // videoId: "M7lc1UVf-VE", 29// // events: { 30// // onReady: onPlayerReady, 31// // onStateChange: onPlayerStateChange 32// // } 33// // }); 34 35// /** 36// * Need to wait until Youtube Player is ready! 37// */ 38// window.YT.ready(function () { 39// player = new window.YT.Player("video", { 40// height: "390", 41// width: "640", 42// videoId: "M7lc1UVf-VE", 43// events: { 44// onReady: onPlayerReady, 45// onStateChange: onPlayerStateChange 46// } 47// }); 48// }); 49// } 50 51 52//ãªã¼ããã³ã°ç»é¢ ãã§ã¼ãã¤ã³ã®ã¢ãã¡ã¼ã·ã§ã³ãçµãã£ããæ°ç§å¾ã«ãã§ã¼ãã¢ã¦ã 53$(document).ready(function () { 54 $('.opening_inner').on('animationend', function () { 55 setTimeout(function () { 56 $('.opening').fadeOut(); 57 }, 1000); 58 }); 59}); 60 61 62$(function () { 63 // $window.on('load', function () { 64 // $('#js-video').YTPlayer(); 65 66 var myPlayer; 67 jQuery(function () { 68 69 var options = { 70 // mobileFallbackImage: "http://www.hdwallpapers.in/walls/pink_cosmos_flowers-wide.jpg", 71 playOnlyIfVisible: false 72 }; 73 74 myPlayer = jQuery('#js-video').YTPlayer(options); 75 }); 76}); 77 78var main = { 79 // menuToggle: function () { 80 // $(".ly-header_menuToggle").on("click", function () { 81 // $(this).toggleClass("is-active"); 82 // $(".ly-menu_wrap").toggleClass("is-active"); 83 // }); 84 // }, 85 // menuNavAcc: function () { 86 // $(".ly-menuNavList_toggle").on("click", function (event) { 87 // event.preventDefault(); 88 89 // $(this).toggleClass("is-active"); 90 // $(this).next().slideToggle(); 91 // }); 92 // }, 93 // searchToggle: function () { 94 // $(".ly-header_search").on("click", function (event) { 95 // event.preventDefault(); 96 97 // $(this).toggleClass("is-active"); 98 // $(".ly-search_wrap").toggleClass("is-active"); 99 // }); 100 // }, 101 // transitionSet: function () { 102 // $(".js-transition").each(function() { 103 // $(this).addClass("is-transition"); 104 // }); 105 // }, 106 // pageTopFade: function () { 107 // var showFlag = false; 108 // var topBtn = $(".ly-pageTop"); 109 110 // $(window).on("load scroll", function () { 111 // if ($(this).scrollTop() > 100) { 112 // if (showFlag == false) { 113 // showFlag = true; 114 // topBtn.addClass("is-visible"); 115 // } 116 // } else { 117 // if (showFlag) { 118 // showFlag = false; 119 // topBtn.removeClass("is-visible"); 120 // } 121 // } 122 // scrollHeight = $(document).height(); 123 // scrollPosition = $(window).height() + $(window).scrollTop(); 124 // footHeight = $("footer").innerHeight(); //footerã®é«ãï¼ï¼æ¢ãããä½ç½®ï¼ 125 // if ( scrollHeight - scrollPosition <= footHeight ) { 126 // $(".ly-pageTop").css({ 127 // "position":"absolute", 128 // "bottom": footHeight + 20 129 // }); 130 // } else { 131 // $(".ly-pageTop").css({ 132 // "position":"fixed", 133 // "bottom": "20px" 134 // }); 135 // } 136 // }); 137 // }, 138 // smoothScroll: function () { 139 // $('a[href^="#"]').on("click", function () { 140 // var adjust = 0; 141 // var speed = 400; 142 // var href = $(this).attr("href"); 143 // var target = $(href == "#" || href == "" ? "html" : href); 144 // var position = target.offset().top - adjust; 145 146 // $("body,html").animate({ scrollTop: position }, speed, "swing"); 147 // return false;
148 // }); 149 // }, 150 scrollFade: function () { 151 $(window).on("load scroll", function () { 152 $(".js-fadein").each(function () { 153 var targetElement = $(this).offset().top; 154 var scroll = $(window).scrollTop(); 155 var windowHeight = $(window).height(); 156 157 if (scroll > targetElement - windowHeight + 200) { 158 $(this).addClass("is-fadeIn"); 159 } 160 }); 161 }); 162 }, 163}; 164// var page_faq = { 165// acToggle: function () { 166// $('.js-acToggleTitle').on('click', function () { 167// /*ã¯ãªãã¯ã§ã³ã³ãã³ããéé*/ 168// $(this).next().slideToggle(400); 169// /*ç¢å°ã®åãã夿´*/ 170// $(this).toggleClass('is-active', 400); 171// }); 172// } 173// } 174 175 176// main.menuToggle(); 177// main.menuNavAcc(); 178// main.searchToggle(); 179// main.transitionSet(); 180// main.pageTopFade(); 181// main.smoothScroll(); 182main.scrollFade(); 183// page_faq.acToggle(); 184 185// objectFitImages("img.js-objectFit");
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.