1$(function() { 2 let tabs = $(".tab"); // tabã®ã¯ã©ã¹ãå ¨ã¦åå¾ãã夿°tabsã«é åã§å®ç¾© 3 $(".tab").on("click", function() { // tabãã¯ãªãã¯ãããã¤ãã³ãçºç« 4 $(".active").removeClass("active"); // activeã¯ã©ã¹ãæ¶ã 5 $(this).addClass("active"); // ã¯ãªãã¯ããç®æã«activeã¯ã©ã¹ã追å 6 const index = tabs.index(this); // ã¯ãªãã¯ããç®æãã¿ãã®ä½çªç®ãå¤å®ãã宿°indexã¨ãã¦å®ç¾© 7 $(".contents").removeClass("show").eq(index).addClass("show"); // showã¯ã©ã¹ãæ¶ãã¦ãcontentã¯ã©ã¹ã®indexçªç®ã«showã¯ã©ã¹ã追å 8 }) 9}) 10 11 $('select').change(function () { 12 console.log("1") 13 var val = $('select option:selected').val(); 14 console.log(val) 15 // if (val == 'select') return; 16 if (val == 'select') { 17 $('section.contents').fadeOut("fast"); 18 $('section.contents').fadeIn("fast"); 19 }else{ 20 $('section.contents').fadeOut("fast"); 21 $('section#' + val ).fadeIn("fast"); 22 } 23 }); 24 25 26$(function() { 27 let tabs2 = $(".tab2"); // tabã®ã¯ã©ã¹ãå ¨ã¦åå¾ãã夿°tabsã«é åã§å®ç¾© 28 $(".tab2").on("click", function() { // tabãã¯ãªãã¯ãããã¤ãã³ãçºç« 29 $(".active2").removeClass("active2"); // activeã¯ã©ã¹ãæ¶ã 30 $(this).addClass("active2"); // ã¯ãªãã¯ããç®æã«activeã¯ã©ã¹ã追å 31 const index2 = tabs2.index(this); // ã¯ãªãã¯ããç®æãã¿ãã®ä½çªç®ãå¤å®ãã宿°indexã¨ãã¦å®ç¾© 32 $(".contents2").removeClass("show2").eq(index2).addClass("show2"); // showã¯ã©ã¹ãæ¶ãã¦ãcontentã¯ã©ã¹ã®indexçªç®ã«showã¯ã©ã¹ã追å 33 }) 34}) 35 36 $('select').change(function () { 37 console.log("1") 38 var val = $('select option:selected').val(); 39 console.log(val) 40 // if (val == 'select') return; 41 if (val == 'select') { 42 $('section.contents2').fadeOut("fast"); 43 $('section.contents2').fadeIn("fast"); 44 }else{ 45 $('section.contents2').fadeOut("fast"); 46 $('section#' + val ).fadeIn("fast"); 47 } 48 }); 49
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.