1/* 2 | ------------------------------------------ 3 | JavaScript File 4 | ------------------------------------------ 5 | Filename:module.js 6 | Copyright:gingdesign 7 | 8*/ 9 10 11/*----------------------------------------------------*/ 12/* ãã¼ã¸å ãªã³ã¯ä½ç½®èª¿æ´ 13/*----------------------------------------------------*/ 14/*$(function () { 15$('a[href^=#]').click(function(){ 16var href= $(this).attr("href"); 17var target = $(href == "#" || href == "" ? 'html' : href); 18var position = target.offset().top - 160; 19$("html, body").animate({scrollTop:position}, 500, "swing"); 20return false; 21}); 22});*/ 23 24 25 26//ãã¼ã¸å ã¹ã¯ãã¼ã« 27/*$(function(){ 28$('.scroll a , a.scroll').click(function(){ 29var speed = 1000; 30var href= $(this).attr("href"); 31var target = $(href == "#" || href == "" ? 'html' : href); 32var position = target.offset().top; 33$("html, body").animate({scrollTop:position}, speed, "swing"); 34return false; 35}); 36}); 37 38if (location.hash) { 39 var speed = 1000; 40 var urlHash = location.hash; 41 var position = $(urlHash).offset().top; 42 //$("html, body").animate({scrollTop:position-142+'px'}, speed, "swing"); 43 $("html, body").animate({scrollTop:position}, speed, "swing"); 44};*/ 45 46 47 48/*----------------------------------------------------*/ 49/* ãã¼ã¸ãããã¹ã¯ãã¼ã« 50/*----------------------------------------------------*/ 51$(function() { 52var topBtn = $('#pagetop'); 53topBtn.hide(); 54$(window).scroll(function () { 55if ($(this).scrollTop() > 300) { 56topBtn.fadeIn(); 57} else { 58topBtn.fadeOut(); 59} 60}); 61topBtn.click(function () { 62$('body,html').animate({ 63scrollTop: 0 64}, 300); 65return false; 66}); 67}); 68 69 70/*-------------------------------------------------------------------------- 71 ããåºå® 72---------------------------------------------------------------------------*/ 73/*$(function($) { 74var nav = $('#sp-nav'), 75offset = nav.offset(); 76$(window).scroll(function () { 77if($(window).scrollTop() > offset.top) { 78$("body").addClass('fixed'); 79} else { 80$("body").removeClass('fixed'); 81} 82}); 83});*/ 84 85// sp accordion 86 87$(function(){ 88//$("#sp-panel").hide(); 89$("#sp-nav .btn span").click(function(){ 90if ($(this).attr("class")=="open") { 91$(this).removeClass("open"); 92//$("body").removeClass("active"); 93$("#sp-panel").fadeOut(200); 94} else { 95$(this).addClass("open"); 96//$("body").addClass("active"); 97$("#sp-panel").fadeIn(200); 98var wt = $(window).scrollTop(); 99var sh = $('#sp-nav').height(); 100// fixedã®æã«æå® 101if ( $("body").hasClass("fixed") ){ 102$("#sp-panel dl").css({'top':wt+sh+'px'}); 103} else { 104$("#sp-panel dl").css({'top':'123px'}); 105} 106 107} 108return false; 109}); 110 111 112 113 114/*$("#sp-nav .btn").on("click", function() { 115$("#sp-nav .menu").fadeIn(200); 116$(this).next().slideToggle(200); 117$(this).toggleClass("open"); 118$("body").toggleClass("active"); 119});*/ 120}); 121// bodyã®é«ãåå¾ 122$(window).load(function(){ 123var winH = $('body').height(); 124$("#sp-panel").css({'height':winH}); 125}); 126// èæ¯ã¯ãªãã¯ã§ã¡ãã¥ã¼é表示 127$("#sp-panel").click(function(){ 128$("#sp-nav .btn span").removeClass("open"); 129$(this).fadeOut(200); 130}); 131 132 133 134/*----------------------------------------------------*/ 135/* ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ã 136/*----------------------------------------------------*/ 137 138var getDevice = (function(){ 139var ua = navigator.userAgent; 140if(ua.indexOf('iPhone') > 0 || ua.indexOf('iPod') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0){ 141/*-------------------------------------------------------------------------*/ 142/* ã¹ããã®æ 143/*-------------------------------------------------------------------------*/ 144$('body').addClass('sp'); 145 146/*----------------------------------------------------*/ 147/* ã¢ã³ã¼ãã£ãªã³ã®è¨å® 148/*----------------------------------------------------*/ 149$(function(){ 150// ddãæ¶ã 151$(".index .navi dd").hide(); //cssã§æ¶ã 152// æ¬ä½ 153$(".index .navi dt").on("click", function() { 154$(this).next().slideToggle(); 155$(this).toggleClass("open"); 156}); 157}); 158 159//return 'sp'; 160}else if(ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0){ 161/*-------------------------------------------------------------------------*/ 162/* ã¿ãã¬ããã®æ 163/*-------------------------------------------------------------------------*/ 164$('body').addClass('tb'); 165 166// pc accordion 167$(function() { 168//$('#dropdown li ul').hide(); 169$(".acdon li").hover(function() { 170 $(this).children('ul').stop().slideDown(100); 171}, function() { 172 $(this).children('ul').stop().slideUp(100); 173}); 174}); 175 176//return 'tb'; 177}else{ 178/*-------------------------------------------------------------------------*/ 179/* PCã®æ 180/*-------------------------------------------------------------------------*/ 181$('body').addClass('pc'); 182 183$(window).load(function() { 184$(".tile > div").tile(2); 185$(".tile > figure").tile(2); 186$(".tile3 > li").tile(3); 187$(".tile3dl > dl").tile(3); 188}); 189 190//return 'pc'; 191} 192})(); //æ¶ããªã 193 194 195 196/* tabåãæ¿ã */ 197$(function($){ 198$('#pc-panel > div').hide(); 199var index = $("#pc-panel > div").index(this); 200$('#pc-nav a').mouseover(function () { 201$('#pc-panel').show(); 202//$('#pc-panel').animate( { height: 'show'}, 100 ); 203$('#pc-panel > div').stop().hide().filter(this.rel).fadeIn(); 204$('#pc-nav a').removeClass('active'); 205$(this).addClass('active'); 206}).filter(':eq(index)').mouseover(); 207$('#header').mouseleave(function () { 208$('#pc-panel div').slideUp(100); 209$('#pc-nav a').removeClass('active'); 210$('#pc-panel').hide(); 211}); 212}); 213 214// hover 215/*$(function(){ 216$('.hvr li').hover( 217function(){ 218$(this).stop(true).fadeTo(0, 0.9).fadeTo('fast', 1.0); 219}, 220function(){ 221$(this).fadeTo('fast', 1.0); 222} 223); 224});*/ 225 226 227
228/* ã¡ã¤ã³ãªã¹ãã«ã¯ã©ã¹ãä»ä¸ */ 229//$("ul.list li:nth-child(even)").addClass("even"); 230//$("ul.list li:last-child").addClass("last"); 231 232/* tableã«ã¯ã©ã¹ãä»ä¸ */ 233//$("table.tbl01 tr:nth-child(odd)").addClass("odd"); 234 235 236/* 䏿çãªã³ã¯ç¡å¹ */ 237/*$(function(){ 238 $('.path li:first-child').html('<span>home</span>'); 239});*/ 240 241/*----------------------------------------------------*/ 242/* ãã¼ã¸å ãªã³ã¯ 243/*----------------------------------------------------*/ 244$(window).load(function() { 245 var url = $(location).attr('href'); 246 if (url.indexOf("?id=") == -1) { 247 // ã¹ã ã¼ãºã¹ã¯ãã¼ã«ä»¥å¤ã®å¦çï¼å¿ è¦ãªãï¼ 248 }else{ 249 // ã¹ã ã¼ãºã¹ã¯ãã¼ã«ã®å¦ç 250 var url_sp = url.split("?id="); 251 var hash = '#' + url_sp[url_sp.length - 1]; 252 var tgt = $(hash); 253 var pos = tgt.offset().top; 254 $("html, body").animate({scrollTop:pos-42+'px'}, 1000, "swing"); 255 //$("html, body").animate({scrollTop:pos}, 1000, "swing"); 256 } 257}); 258 259/*----------------------------------------------------*/ 260/* iOSããã¤ã¹ã®å ´åã®ã¿bodyã«class屿§ãiosããä»ä¸ããã 261/*----------------------------------------------------*/ 262document.addEventListener("DOMContentLoaded", function(event) { 263if(navigator.userAgent.match(/iPhone|iPad|iPod/)){ 264document.getElementsByTagName("body")[0].classList.add("ios"); 265} 266}); 267
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.