1 2jQuery(function($) { 3 4// GNAV 5var nav = $('#fixedBox'), 6 offset = nav.offset(); 7 8$(window).scroll(function () { 9 if($(window).scrollTop() > offset.top) { 10 nav.addClass('fixed'); 11 } else { 12 nav.removeClass('fixed'); 13 } 14}); 15 16//nav ãã«ãã¦ã³ç¨ 17document.getElementById("fixedBox").onclick = function() { 18 this.classList.toggle("open"); 19}; 20 21// pagetop 22var pagetop = $('.pagetop'); 23 $(window).scroll(function () { 24 if ($(this).scrollTop() > 700) { 25 pagetop.fadeIn(); 26 } else { 27 pagetop.fadeOut(); 28 } 29 }); 30 pagetop.click(function () { 31 $('body, html').animate({ scrollTop: 0 }, 500); 32 return false; 33 }); 34 35 // ãã¼ã¸å ãªã³ã¯ 36 // â ãä»»æã®ãºã¬é«ããã¯ã»ã«æ°ãå ¥åãâ 37 var headerHight = 100; 38 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 39 jQuery('a[href^=#]').click(function() { 40 // ã¹ã¯ãã¼ã«ã®é度 41 var speed = 800; // ããªç§ 42 // ã¢ã³ã«ã¼ã®å¤åå¾ 43 var href= jQuery(this).attr("href"); 44 // ç§»åå ãåå¾ 45 var target = jQuery(href == "#" || href == "" ? 'html' : href); 46 // ç§»åå ãæ°å¤ã§åå¾ 47 var position = target.offset().top-headerHight; // â»ã-headerHightã§ãºã¬ã®å¦ç 48 // ã¹ã ã¼ãºã¹ã¯ãã¼ã« 49 jQuery('body,html').animate({scrollTop:position}, speed, 'swing'); 50 return false; 51 }); 52 53 //ãªã³ã¯å ãã¼ã¸ã®æå®ä½ç½®ã«ç§»å 54 var url = $(location).attr('href'); 55 if (url.indexOf("?id=") == -1) { 56 }else{ 57 // ã¹ã¯ãã¼ã«ã®é度 58 var speed = 800; // ããªç§ 59 // ç§»åå ãåå¾ 60 var url_sp = url.split("?id="); 61 var hash = '#' + url_sp[url_sp.length - 1]; 62 var target = $(hash); 63 // ç§»åå ãæ°å¤ã§åå¾ 64 var position = target.offset().top -100; 65 $("html, body").animate({scrollTop:position}, speed, "swing"); 66 } 67 68}); 69 70// é«ãåãã 71$(function(){ 72 $(".tile1").tile(); 73}); 74$(function(){ 75 $(".tile2").tile(); 76}); 77$(function(){ 78 $(".tile3").tile(); 79});
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.