1/* =============================================== 2smooth scroll 3.not_ssãã¤ããè¦ç´ ã«ã¯é©ç¨ãããªã 4=============================================== */ 5(function($){ 6$(function(){ 7 $('a[href^=#]').not('.not_ss').click(function(ev) { 8 ev.preventDefault(); 9 var speed = 800; //ç§»åã¹ãã¼ã 10 var href= $(this).attr("href"); 11 var target = $(href == "#" || href == "" ? 'html' : href); 12 var position = target.offset().top; 13 $('body,html').animate({scrollTop:position-50}, speed, 'swing'); 14 return false; 15 }); 16}); 17})(jQuery); 18/* =============================================== 19tab 20=============================================== */ 21(function($) { 22$(function(){ 23 var $tabs = $('.home_tab'); 24 var $btn = $('.home_tab_btn a') 25 $('.home_tab_btn a').click(function() { 26 var index = $btn.index(this); 27 28 $tabs.css('display','none'); 29 $tabs.eq(index).css('display','block'); 30 31 $btn.removeClass('active'); 32 $tabs.removeClass('active'); 33 $(this).addClass('active'); 34 35 return false; 36 }); 37}); 38})(jQuery); 39/* =============================================== 40auto _blank 41.not_blankãã¤ããè¦ç´ ã«ã¯é©ç¨ãããªã 42=============================================== */ 43(function($) { 44$(function(){ 45 $('a[href^=http]').not('.not_blank').not('[href*="'+location.hostname+'"]').attr({target:"_blank"}); 46}); 47})(jQuery); 48/* =============================================== 49text resize 50=============================================== */ 51(function($) { 52$(function(){ 53 var fclass = ""; 54 var btns = $('.btn_nom,.btn_large'); 55 var btn_01 = $('.btn_large'); 56 var btn_02 = $('.btn_nom'); 57 58 var font_size_change = function(btns,this_obj,classname){ 59 var fclass = classname; 60 61 btns.removeClass('active'); 62 this_obj.addClass('active'); 63 64 $.removeCookie('font_size',{ path: '/'}); 65 66 $.cookie("font_size",fclass,{path:'/'}); 67 68 $('html').removeClass('font_normal font_large').addClass(fclass); 69 }; 70 71 btn_01.on('click',function(){ 72 font_size_change(btns,$(this),'font_large'); 73 return false; 74 }); 75 76 btn_02.on('click',function(){ 77 font_size_change(btns,$(this),'font_normal'); 78 return false; 79 }); 80 81 //check cookie 82 btns.removeClass('active'); 83 $("html").addClass($.cookie('font_size')); 84 85 if($.cookie('font_size') == 'font_large'){ 86 btn_01.addClass('active'); 87 $('html').removeClass('font_normal'); 88 }else{ 89 btn_02.addClass('active'); 90 $('html').removeClass('font_large'); 91 } 92}); 93})(jQuery); 94 95/* homeSlider 96--------------------------- */ 97(function($) { 98$(function(){ 99 var slidelength = $(".homeSlider li").length; 100 if(slidelength > 1){ 101 $(".homeSlider").bxSlider({ 102 auto:true, 103 controls:true, 104 }); 105 } 106}); 107})(jQuery); 108 109/* =============================================== 110sp menu 111=============================================== */ 112(function($) { 113$(function(){ 114 var $w = $(window); 115 var namespace = 'jpcjs'; 116 var touches = typeof document.ontouchstart != "undefined"; 117 /* sp menu 118 --------------------------- */ 119 120 $(".btn_gnav").bind("click",function(){ 121 $(".gnav").slideToggle(200); 122 $(this).toggleClass('open'); 123 124 if($('#responsive_flg').css('display') == 'block'){ 125 if($(".btn_gnav").hasClass('open')){ 126 if (touches) { 127 $w.on("touchmove." + namespace, function(event) { 128 event.preventDefault(); 129 }); 130 } 131 }else{ 132 if (touches) { 133 $w.off("touchmove." + namespace); 134 } 135 } 136 } 137 return false; 138 }); 139}); 140})(jQuery); 141/* =============================================== 142sp_fix 143=============================================== */ 144(function($) { 145$(function(){ 146 var $spnav_inner_c = $('.spnav-inner').clone(); 147 $spnav_inner_c.addClass('sp').appendTo('.entry-content .asset-body'); 148}); 149})(jQuery); 150 151/* =============================================== 152ãã¦ã³ãã¼ã fixheight 153=============================================== */ 154(function($) { 155$(function(){ 156 $(".post-type-archive-downloads .segment-nopad").fixHeight(); 157 $(".tax-category_downloads .segment-nopad").fixHeight(); 158 $(".list4col").fixHeight(); 159}); 160})(jQuery); 161 162/* =============================================== 163spæ é»è©±ãªã³ã¯ 164=============================================== */ 165(function($) { 166$(function(){ 167 var ua = navigator.userAgent; 168 if(ua.indexOf('iPhone') > 0 && ua.indexOf('iPod') == -1 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0 && ua.indexOf('SC-01C') == -1 && ua.indexOf('A1_07') == -1 ){ 169 $('.tel-link').each(function(){ 170 var str = $(this).text(); 171 $(this).html($('<a>').attr('href', 'tel:' + str.replace(/-/g, '')).append(str + '</a>')); 172 }); 173 } 174}); 175})(jQuery); 176 177 178(function($) { 179$(function(){ 180 $('.js-aside').on('click',function(){ 181 $target = $(this).next('.js-hidden'); 182 183 if($target.css('display') == 'block'){ 184 $target.slideUp('200'); 185 $(this).removeClass('active'); 186 }else{ 187 $target.slideDown('200'); 188 $(this).addClass('active'); 189 } 190 return false;
191 }) 192}); 193})(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.