1$(function() { 2 // 读åbody data-type 夿æ¯åªä¸ªé¡µé¢ç¶åæ§è¡ç¸åºé¡µé¢æ¹æ³ï¼æ¹æ³å¨ä¸é¢ã 3 var dataType = $('body').attr('data-type'); 4 console.log(dataType); 5 6 // // å¤æç¨æ·æ¯å¦å·²æèªå·±éæ©ç模æ¿é£æ ¼ 7 // if(storageLoad('SelcetColor')){ 8 // $('body').attr('class',storageLoad('SelcetColor').Color) 9 // }else{ 10 // storageSave(saveSelectColor); 11 // $('body').attr('class','theme-black') 12 // } 13 14 autoLeftNav(); 15 16 17 // if(storageLoad('SelcetColor')){ 18 19 // }else{ 20 // storageSave(saveSelectColor); 21 // } 22}) 23 24 25 26 27 28// 飿 ¼åæ¢ 29 30$('.tpl-skiner-toggle').on('click', function() { 31 $('.tpl-skiner').toggleClass('active'); 32}) 33 34$('.tpl-skiner-content-bar').find('span').on('click', function() { 35 $('body').attr('class', $(this).attr('data-color')) 36 saveSelectColor.Color = $(this).attr('data-color'); 37 // ä¿å鿩项 38 storageSave(saveSelectColor); 39 40}) 41 42 43 44 45// ä¾§è¾¹èåå¼å ³ 46 47 48function autoLeftNav() { 49 if ($(window).width() < 1024) { 50$('.left-sidebar').addClass('active'); 51 } 52 53 $('.tpl-header-switch-button').on('click', function() { 54 55 if ($('.left-sidebar').is('.active')) { 56 if ($(window).width() > 1024) { 57 $('.tpl-content-wrapper').removeClass('active'); 58 $('.left-sidebar').removeClass('active'); 59 }else{ 60 $('.left-sidebar').removeClass('active'); 61 } 62 63 } else { 64 if ($(window).width() > 1024) { 65 $('.left-sidebar').addClass('active'); 66 $('.tpl-content-wrapper').addClass('active'); 67 }else { 68 $('.left-sidebar').addClass('active'); 69 } 70 } 71 }) 72 73 74} 75 76 77// ä¾§è¾¹èå 78$('.sidebar-nav-sub-title').on('click', function() { 79 $(this).siblings('.sidebar-nav-sub').slideToggle(80) 80 .end() 81 .find('.sidebar-nav-sub-ico').toggleClass('sidebar-nav-sub-ico-rotate'); 82})
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.