1jQuery(function(){ 2 3 /* -------------------------- */ 4 /* ãããã¼ */ 5 /* -------------------------- */ 6 // ãããã¼ã®é«ãåã¹ã¯ãã¼ã«ãããclassãä»ä¸ 7 var pos = 0; 8 // let headerElm = jQuery('#header'); 9 let headerElmTop = jQuery('#header .header-top'); 10 // let headerHeight = headerElm.height(); 11 jQuery(window).on('scroll', function () { 12 // if (jQuery(this).scrollTop() > headerHeight) { 13 // headerElmTop.addClass('-scroll'); 14 // // headerElmTop.slideUp(); 15 // } else { 16 // headerElmTop.removeClass('-scroll'); 17 // // headerElmTop.slideDown(); 18 // } 19 if(jQuery(this).scrollTop() < pos){ 20 // ä¸ã«ã¹ã¯ãã¼ã«ããã¨ã 21 headerElmTop.removeClass('-scroll'); 22 } else { 23 // ä¸ã«ã¹ã¯ãã¼ã«ããã¨ã 24 headerElmTop.addClass('-scroll'); 25 } 26 pos = jQuery(this).scrollTop(); 27 }); 28 29 30 31 /* -------------------------- */ 32 /* SPãã */ 33 /* -------------------------- */ 34 let gNaviTrigger = jQuery('#header .header-menu.-trigger'); 35 let gNavi = jQuery('#header .header-btm'); 36 37 // ããã¡ãã¥ã¼ãå±é 38 gNaviTrigger.on('click', function() { 39 jQuery(this).toggleClass('-open'); 40 gNavi.fadeToggle(300).css('display','flex'); 41 jQuery('body').toggleClass('scroll'); 42 }); 43 44 45 /* -------------------------- */ 46 /* ãã¼ã¸ããããã¿ã³ */ 47 /* -------------------------- */ 48 jQuery(window).on('scroll', function () { 49 // ãããã¼ã®é«ãåã¹ã¯ãã¼ã«ãããclassãä»ä¸ 50 let header = jQuery('#header'); 51 let scrollTop = jQuery('#scroll-top'); 52 let headerHeight = header.height(); 53 if (jQuery(this).scrollTop() > headerHeight) { 54 scrollTop.fadeIn(300); 55 } else { 56 scrollTop.fadeOut(300); 57 } 58 }); 59 60 /* -------------------------- */ 61 /* ã¹ã¯ãã¼ã«ãã³ã */ 62 /* -------------------------- */ 63 new ScrollHint('.js-scrollable', { 64 i18n: { 65 scrollable: 'ã¹ã¯ãã¼ã«ã§ãã¾ã' 66 }, 67 }); 68}); 69 70/* -------------------------- */ 71/* éè¡æ å ±ã®ã»ãã */ 72/* -------------------------- */ 73function setUnkouInfo(selector, type, vmode) { 74 jQuery.ajax({ 75 url : '/parts/get_unkou.cgi', 76 type : 'POST', 77 cache : false , 78 data : { 79 type : type, 80 vmode : vmode 81 }, 82 dataType : 'html' 83 }) 84 .done(function(html) { 85 jQuery(selector).html(html); 86 }) 87 .fail(function(jqXHR, textStatus, errorThrown) { 88 console.log('ã¨ã©ã¼ãçºçãã¾ããã'); 89 }); 90}
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.