1$(function(){ 2 3 4 /*------------------------------------------------- 5 ããã¯ã¼ 6 ----------------------------------------------- */ 7 $('.remodal.drawer .list_btn').click(function () { 8 $(this).toggleClass('open'); 9 $(this).next('ul').slideToggle(); 10 }); 11 12 13 /*------------------------------------------------- 14 ãã¼ã¸å ãªã³ã¯ãã¹ã ã¼ãºã«ã¹ã¯ãã¼ã« 15 ----------------------------------------------- */ 16 $('a[href^="#"]').click(function(){ 17 var speed = 1000; 18 var href= $(this).attr("href"); 19 var target = $(href == "#" || href == "" ? 'html' : href); 20 var position = target.offset().top; 21 $("html, body").animate({scrollTop:position}, speed, "swing"); 22 return false; 23 }); 24 25 /*------------------------------------------------- 26 é«ããæãã 27 ----------------------------------------------- */ 28 $('.js_mh_item').matchHeight(); 29 $('.js_mh_item2').matchHeight(); 30 31 32 /*------------------------------------------------- 33 æå¥è¨äºä¸è¦§SP 34 ----------------------------------------------- */ 35 $('.remodal.month .year_btn').click(function () { 36 $(this).toggleClass('open'); 37 $(this).next('ul').slideToggle(); 38 }); 39 40 41 /*------------------------------------------------- 42 ãã¼ãã£ã³ã° 43 ----------------------------------------------- */ 44 var timer = setInterval(function(){ 45 if($('html').hasClass("wf-active")){ 46 $('.load_mask').fadeOut('slow'); 47 dispTitle(); 48 dispCopy(); 49 clearTimeout(timer); 50 } 51 }, 10); 52 53 /* ä¸å±¤ãã¼ã¸ã¿ã¤ãã«è¡¨ç¤º 54 -------------------------------- */ 55 function dispTitle(){ 56 if($('.com_page_title').length > 0){ 57 $('.com_page_title').addClass('disp'); 58 } 59 } 60 61 /* ã¡ã¤ã³ãã¸ã¥ã¢ã«è¡¨ç¤º 62 -------------------------------- */ 63 function dispCopy(){ 64 if($('.sec_mainv .main_copy').length > 0){ 65 $('.sec_mainv .main_copy').addClass('disp'); 66 } 67 } 68 69 70}); 71 72/* ---------------------------------------- 73 ãµã¤ããã¼ãã¹ã¯ãã¼ã«åºå® 74---------------------------------------- */ 75$(function(){ 76 77 $(window).on('load scroll resize', function () { 78 fixedSidebar(); 79 }); 80 81 function fixedSidebar(){ 82 var $window_bp = 767; 83 var $right_box = $(".main_content"); 84 var $sidebar = $(".sidebar"); 85 var $header = $(".header");//åºå®ãããã¼ 86 var pos_btm = 10;//åºå®ãããä¸ä½ç½® 87 88 var $side_left = $(".sidebar_wrap");//ãµã¤ããã¼ã®ä½ç½® 89 90 91 //ã¦ã£ã³ãã¦ãµã¤ãº768px以ä¸ã®å ´åããã¤ã³ã³ãã³ããããµã¤ããã¼ãä½ãå ´åã®ã¿ 92 if($(window).width() > $window_bp && $right_box.outerHeight() > $sidebar.outerHeight()){ 93 94 if($(window).height() - $header.outerHeight() < $sidebar.outerHeight()){ 95 //ãµã¤ããã¼ã®é«ããã¦ã£ã³ãã¦ã®è¡¨ç¤ºé åããé«ãã¨ãããµã¤ããã¼ãbottomã§åºå® 96 97 if($right_box.offset().top + $sidebar.outerHeight() < $(window).scrollTop() + $(window).height() - pos_btm){ 98 //ãµã¤ããã¼ãæå¾ã¾ã§è¡¨ç¤ºãããã 99 100 var left = $side_left.offset().left; 101 var bottom = 0; 102 103 if($right_box.offset().top + $right_box.outerHeight() < $(window).scrollTop() + $(window).height() - pos_btm){ 104 //ã³ã³ãã³ããä¸ã¾ã§è¡¨ç¤ºãããããã³ã³ãã³ãã®ä¸å´ã§åºå® 105 bottom = ($(window).scrollTop() + $(window).height() + 50) - ($right_box.offset().top + $right_box.outerHeight()); 106 }else{ 107 //ã³ã³ãã³ãã®ä¸ã¾ã§è¡¨ç¤ºãããå 108 bottom = pos_btm; 109 } 110 111 $sidebar.css({ 112 "position":"fixed", 113 "left":left, 114 "top":"auto", 115 "bottom":bottom, 116 }); 117 118 }else{ 119 //ãµã¤ããã¼ãä¸ã¾ã§è¡¨ç¤ºãããå 120 $sidebar.css({ 121 "position":"static" 122 }); 123 124 } 125 }else{ 126 //ãµã¤ããã¼ã®é«ããã¦ã£ã³ãã¦ã®è¡¨ç¤ºé åããä½ãã¨ãããµã¤ããã¼ãtopã§åºå® 127 if($right_box.offset().top < $(window).scrollTop() + $header.outerHeight()){ 128 //ã¹ã¯ãã¼ã«ãããã 129 130 var left = $side_left.offset().left; 131 132 if($right_box.offset().top + $right_box.outerHeight() < $(window).scrollTop() + $sidebar.outerHeight() + $header.outerHeight()){ 133 //ã³ã³ãã³ããä¸ã¾ã§è¡¨ç¤ºãããããã³ã³ãã³ãã®ä¸å´ã§åºå® 134 bottom = ($(window).scrollTop() + $(window).height()) - ($right_box.offset().top + $right_box.outerHeight()); 135 $sidebar.css({ 136 "position":"fixed", 137 "left":left, 138 "top":"auto", 139 "bottom":bottom, 140 }); 141 }else{ 142 //ã³ã³ãã³ãã®ä¸ã¾ã§è¡¨ç¤ºãããå 143 $sidebar.css({ 144 "position":"fixed", 145 "left":left, 146 "top":$header.outerHeight(), 147 "bottom":"auto", 148 }); 149 } 150 }else{ 151 $sidebar.css({ 152 "position":"static" 153 }); 154 } 155 } 156 157 }else{ 158 $sidebar.css({ 159 "position":"static" 160 }); 161 162 } 163 } 164 165}); 166
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.