1$(window).load(function(){ 2//subtab 3 $('.navSub li a').on('click' , function(e) { 4 e.preventDefault(); 5 if($(this).hasClass('active')) { 6 return false; 7 } 8 var parent = $(this).closest('.tabBox'), 9 tabSub = parent.find('.tabSubContent'); 10 11 var href = $(this).attr('href'); 12 $(this).addClass('active').parent('li').siblings().children('a').removeClass('active'); 13 14 if(href == 'all') { 15 tabSub.addClass('active'); 16 } else { 17 $(href).addClass('active').siblings().removeClass('active'); 18 } 19 }); 20 21 function scrollToAnchor(id) { 22 var offset = $(id).offset().top, 23 header = $('header'); 24 25 setTimeout(function() { 26 if(header) { 27 offset = offset - header.height(); 28 } 29 $('body,html').animate({scrollTop: offset}, 600); 30 }, 200); 31 } 32 33 // Area map on click 34 //$('.area ul li a').on('click', function(e) { 35 // e.preventDefault(); 36 // var id = $(this).attr('href'); 37 // if($(id).length) { 38 // var parentID= '#' + $(id).closest('.tabSubContent').attr('id'), 39 // parentTabBox = $(parentID).closest('.tabBox'); 40// 41 // if(parentTabBox.is(':hidden')) { 42 // var index = parentTabBox.index(); 43 // $('.tab li')[index].click(); 44 // } 45 // $('.navSub li a').each(function(n) { 46 // var activeSubId = $(this).attr('href'); 47 // if(activeSubId === parentID) { 48 // $(this).click(); 49 // } 50 // }); 51 52 // if($('header').offset().top == 0) { 53 // $('body,html').animate({scrollTop: 1}, 0); 54 // } 55 // scrollToAnchor(id); 56 // } 57// }); 58 59 60 61 var def_width = 0; 62 var initPC = false, initSP = false; 63 64 $(window).resize(function() { 65 var w = $(window).width(); 66 var x = 751; 67 68 if (def_width == w) { 69 return; 70 } else { 71 def_width = w; 72 } 73 74 if (w > x) { 75 //PC 76 if (!initPC) { 77 initPC = true; 78 setEventPCUser(); 79 } 80 } else { 81 //SP 82 if (!initSP) { 83 initSP = true; 84 setEventSPUser(); 85 } 86 } 87 }).trigger('resize'); 88 89 90 91 // PC -------------------------------------------------------------------- 92 function setEventPCUser() { 93 94 // PC表示æã®jsãè¨è¿° 95 96 } 97 98 99 // SP -------------------------------------------------------------------- 100 function setEventSPUser() { 101 102 // SP表示æã®jsãè¨è¿° 103 104 105 } 106 // Match Height 107 $('.listItems .technologyItem .itemContent').matchHeight(); 108}); 109 110$(function(){ 111 112 // active tab ISO 10001 113 var hash = window.location.hash; 114 if(hash == '#1') { 115 var index = window.location.hash.substring(1); 116 $('.tab li').removeClass('active'); 117 $('.tab li').eq(index).addClass('active'); 118 $('.tabBox').removeClass('active'); 119 $('.tabBox').eq(index).addClass('active'); 120 } 121});
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.