1// JavaScript Document 2jQuery.noConflict(); 3 (function($){ 4//ã¹ããã§ã¿ããã¤ãã³ãèµ·å 5/* ã¾ã颿°ãå®ç¾© */ 6var linkTouchStart = function(){ 7 thisAnchor = $(this); 8 touchPos = thisAnchor.offset().top; 9 //ã¿ããããç¬éã®aè¦ç´ ã®ãä¸ããã®ä½ç½®ãåå¾ã 10 moveCheck = function(){ 11 nowPos = thisAnchor.offset().top; 12 if(touchPos == nowPos){ 13 thisAnchor.addClass("hover"); 14 //ã¿ããããç¬éã¨0.1ç§å¾ã®aè¦ç´ ã®ä½ç½®ãå¤ãã£ã¦ããªããã° hover ã¯ã©ã¹ã追å ã 15 //ãªã¹ããªã©ã§aè¦ç´ ã並ãã§ããã¨ãã«ãã¹ã¯ãã¼ã«ã®ããã«ã¿ããããé¨åã«ã¾ã§hover广ãã¤ãã¦ãã¾ãã®ã鲿¢ãã¦ããã 16 } 17 } 18 setTimeout(moveCheck,100); 19 //0.1ç§å¾ã«moveCheck()ãå®è¡ã 20} 21var linkTouchEnd = function(){ 22 thisAnchor = $(this); 23 hoverRemove = function(){ 24 thisAnchor.removeClass("hover"); 25 } 26 setTimeout(hoverRemove,500); 27 //0.5ç§å¾ã«hoverRemove()ãå®è¡ã 28 //æãé¢ããç¬éã«hover广ãåãããããè¦ç´ ãå¤åããæå¿ãã表ç¾ã§ããã 29} 30 31 32/* ã¿ããã¤ãã³ãã§ä¸è¨ã®é¢æ°ãå¼ã³åºã */ 33$(document).on('touchstart mousedown','a',linkTouchStart); 34//aè¦ç´ ãã¿ããããããã¯ãã¦ã¹ã¯ãªãã¯ãããlinkTouchStart()ãå®è¡ã 35$(document).on('touchend mouseup','a',linkTouchEnd); 36//aè¦ç´ ããæãé¢ãããããã¯ã¯ãªãã¯ãçµãããlinkTouchEnd()ãå®è¡ã 37 38 39$(function(){ 40//drawer 41 $(".drawer").drawer(); 42//drawerãmodelhouseã®ä¸å±¤ 43 // $(".toggle-menu .accordion").click(function(){ 44 // if($(this).children("ul").not(".hover")){ 45 // $(this).children("ul").addClass("hover"); 46 // } 47 // }); 48 // $("li.back-menu").click(function(){ 49 // $(this).parent("ul").remove(".hover"); 50 // }); 51 52 $(".toggle-menu #gnav #accordion").click(function(){ 53 $(this).children("ul").toggleClass("hover",true); 54 }) 55 $('#gnav #accordion .back-menu').click(function(){ 56 $("ul").remove(".hover"); 57 }) 58//ãã¼ã¸ããã㸠59 var pagetop = $('.pagetop'); 60 $(window).scroll(function () { 61 if ($(this).scrollTop() > 100) { 62 pagetop.fadeIn(); 63 } else { 64 pagetop.fadeOut(); 65 } 66 }); 67 pagetop.click(function () { 68 $('body, html').animate({ scrollTop: 0 }, 500); 69 return false; 70 }); 71}); 72 73})(jQuery);
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.