1var $win = $(window); 2 3$win.on('load resize', function() { 4 if (window.matchMedia('(max-width:979px)').matches) { 5 // TABã®å¦ç 6 } else { 7 // ãµã¤ããã¼ã®åºå®ããã¬ã¤ã¤ã¼ 8 var navi = $('#sidebanner02'); 9 // ã¡ã¤ã³ã®ã¬ã¤ã¤ã¼ 10 var main = $('#contents_left'); 11 //var header = $('header'); 12 // åºå®ããã¬ã¤ã¤ã¼ã®åæä½ç½®� - side_sectionã®bottom30px) 13 var target_top = navi.offset().top - 30; 14 // ã¡ã¤ã³ã¬ã¤ã¤ã¼ã®åæä½ç½® 15 var sub_top = main.offset().top ; 16 // ã¹ã¯ãã¼ã«ããä¸é 17 var sub_scroll = main.offset().top + main.outerHeight(true) - navi.outerHeight(true) - 30; 18 if (navi.outerHeight(true) + target_top < main.outerHeight(true) + sub_top) { 19 $(window).scroll(function () { 20 var ws = $(window).scrollTop(); 21 $('.scroll').text(ws); 22 if (ws > sub_scroll) { 23 // 調æ´10px) 24 navi.css({position:'fixed', top: sub_scroll - ws + 10 }); 25 } else if(ws > target_top) { 26 navi.css({position:'fixed', top: 10}); 27 } else { 28 navi.css({position:'relative', top: 0}); 29 } 30 }); 31 } 32 33 } 34});
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.