1$(function() { 2 //set auto width or height for img 3 4 $('.to_top').click(function () { 5 $('html, body').animate({ scrollTop: 0 }, 800); 6 return false; 7 }); 8 9 10 $('.cbx').click(function(){ //blockã®ä½çªè¡¨ç¤º 11 var x1 = $('#cbx1').is(':checked');//1 12 var x2 = $('#cbx2').is(':checked');//3,4 13 var x3 = $('#cbx3').is(':checked');//2,4 14 var x4 = $('#cbx4').is(':checked');//2,4 15 var x5 = $('#cbx5').is(':checked');//2,3,4 16 var x6 = $('#cbx6').is(':checked');//2,4,10 17 var x7 = $('#cbx7').is(':checked');//7,11 18 var x9 = $('#cbx9').is(':checked');//8,12 19 var x10 = $('#cbx10').is(':checked');//0,0,0,0,0,0,0,0 20 var x11 = $('#cbx11').is(':checked');//1 21 var x12 = $('#cbx12').is(':checked');//1 22 if(x1 == true) { 23 $('.selectBlock').hide(); 24 $('#block1').show(); 25 } 26 if (x2 == true) { 27 $('.selectBlock').hide(); 28 $('#block3,#block4').show(); 29 } 30 if (x3 == true) { 31 $('.selectBlock').hide(); 32 $('#block2,#block4,#block9').show(); 33 } 34 if (x4 == true) { 35 $('.selectBlock').hide(); 36 $('#block1,#block2,#block4,#block9').show(); 37 } 38 if (x5 == true) { 39 $('.selectBlock').hide(); 40 $('#block2,#block3,#block4,#block9').show(); 41 } 42 if (x6 == true) { 43 $('.selectBlock').hide(); 44 $('#block2,#block4,#block10').show(); 45 } 46 if (x7 == true) { 47 $('.selectBlock').hide(); 48 $('#block7,#block11').show(); 49 } 50 if (x9 == true) { 51 $('.selectBlock').hide(); 52 $('#block8,#block12').show(); 53 } 54 if (x10 == true) { 55 $('.selectBlock').hide(); 56 } 57 if(x11 == true) { 58 $('.selectBlock').hide(); 59 $('#block1,#block2,#block4,#block9').show(); 60 } 61 if(x12 == true) { 62 $('.selectBlock').hide(); 63 $('#block4,#block13').show(); 64 } 65 }); 66 67 $('.cbx:checked').trigger('click'); 68 69 $(".tabs a").click(function(e) { 70 e.preventDefault(); 71 72 var t = $('.current img').attr("src"); 73 $('.current img').attr("src",t.replace("_on.", "_off.")); 74 75 $(this).parent().addClass("current"); 76 $(this).parent().siblings().removeClass("current"); 77 var tab = $(this).attr("href"); 78 $(".ac_contents").not(tab).removeClass("active"); 79 $(tab).addClass("active"); 80 81 var img = $(this).find('img').attr("src"); 82 if ($(this).parents('.current').length) { 83 $(this).find('img').attr("src",img.replace("_off.", "_on.")); 84 } else { 85 $(this).find('img').attr("src",img.replace("_on.", "_off.")); 86 } 87 }); 88 89 //accordion 90 $('.acco_box .acco_a').on("click",function(){ 91 var img = $(this).find('img').attr("src"); 92 93 $(this).toggleClass('opened'); 94 $(this).next('.acco_dv').slideToggle('fast'); 95 if($(this).hasClass('opened')) { 96 $(this).find('img').attr("src", img.replace("_off.", "_on.")); 97 } else { 98 $(this).find('img').attr("src", img.replace("_on.", "_off.")); 99 } 100 }); 101 102});
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.