1/* Admin layout options */ 2 3$(document).on('ready', function() { 4 5 $('#theme-switcher-wrapper .switch-toggle').on('click', this, function() { 6 var dataToggle = $(this).prev().attr('data-toggletarget'); 7 $('body').toggleClass(dataToggle); 8 9 if ( dataToggle = 'closed-sidebar' ) { 10 $('#close-sidebar .glyph-icon').toggleClass('icon-angle-right').toggleClass('icon-angle-left'); 11 } 12 }); 13 14 $('.switch-toggle[id="#boxed-layout"]').click(function(){ 15 16 if ( $('#boxed-layout').attr("checked") ) { 17 $('.boxed-bg-wrapper').slideDown(); 18 } else { 19 $('.boxed-bg-wrapper').slideUp(); 20 } 21 22 }); 23}); 24 25/* Open theme switcher */ 26 27$(function() { 28 29 $(".theme-switcher").unbind("click").click(function() { 30 $("#theme-options").toggleClass('active'); 31 }); 32 33}); 34 35/* Admin header style */ 36 37$(function() { 38 39 $('.set-adminheader-style').click(function() { 40 $('.set-adminheader-style').removeClass('active'); 41 $(this).addClass('active'); 42 var newBg = $(this).attr('data-header-bg'); 43 $("#page-header").removeClass(function(index, css) { 44 return (css.match(/(^|\s)bg-\S+/g) || []).join(' '); 45 }); 46 $("#page-header").removeClass(function(index, css) { 47 return (css.match(/(^|\s)font-\S+/g) || []).join(' '); 48 }); 49 $('#page-header').addClass(newBg); 50 }); 51 52}); 53 54/* Admin sidebar style */ 55 56$(function() { 57 58 $('.set-sidebar-style').click(function() { 59 $('.set-sidebar-style').removeClass('active'); 60 $(this).addClass('active'); 61 var newBg = $(this).attr('data-header-bg'); 62 $("#page-sidebar").removeClass(function(index, css) { 63 return (css.match(/(^|\s)bg-\S+/g) || []).join(' '); 64 }); 65 $("#page-sidebar").removeClass(function(index, css) { 66 return (css.match(/(^|\s)font-\S+/g) || []).join(' '); 67 }); 68 $('#page-sidebar').addClass(newBg); 69 }); 70 71}); 72 73/* Boxed layout background style */ 74 75$(function() { 76 77 $('.set-background-style').click(function() { 78 $('.set-background-style').removeClass('active'); 79 $(this).addClass('active'); 80 var newBg = $(this).attr('data-header-bg'); 81 $("body").removeClass(function(index, css) { 82 return (css.match(/(^|\s)pattern-\S+/g) || []).join(' '); 83 }); 84 $("body").removeClass(function(index, css) { 85 return (css.match(/(^|\s)full-\S+/g) || []).join(' '); 86 }); 87 $("body").removeClass(function(index, css) { 88 return (css.match(/(^|\s)bg-\S+/g) || []).join(' '); 89 }); 90 $("body").removeClass(function(index, css) { 91 return (css.match(/(^|\s)fixed-\S+/g) || []).join(' '); 92 }); 93 $('body').addClass(newBg); 94 }); 95 96}); 97 98/* Frontend header style */ 99 100$(function() { 101 102 $('.set-header-style').click(function() { 103 $('.set-header-style').removeClass('active'); 104 $(this).addClass('active'); 105 var newBg = $(this).attr('data-header-bg'); 106 $(".main-header").removeClass(function(index, css) { 107 return (css.match(/(^|\s)bg-\S+/g) || []).join(' '); 108 }); 109 $(".main-header").removeClass(function(index, css) { 110 return (css.match(/(^|\s)font-\S+/g) || []).join(' '); 111 }); 112 $('.main-header').addClass(newBg); 113 }); 114 115}); 116 117/* Frontend footer style */ 118 119$(function() { 120 121 $('.set-footer-style').click(function() { 122 $('.set-footer-style').removeClass('active'); 123 $(this).addClass('active'); 124 var newBg = $(this).attr('data-header-bg'); 125 $(".main-footer").removeClass(function(index, css) { 126 return (css.match(/(^|\s)bg-\S+/g) || []).join(' '); 127 }); 128 $(".main-footer").removeClass(function(index, css) { 129 return (css.match(/(^|\s)font-\S+/g) || []).join(' '); 130 }); 131 $('.main-footer').addClass(newBg); 132 }); 133 134}); 135 136 137/* Frontend top menu style */ 138 139$(function() { 140 141 $('.set-topmenu-style').click(function() { 142 $('.set-topmenu-style').removeClass('active'); 143 $(this).addClass('active'); 144 var newBg = $(this).attr('data-header-bg'); 145 $(".top-bar").removeClass(function(index, css) { 146 return (css.match(/(^|\s)bg-\S+/g) || []).join(' '); 147 }); 148 $(".top-bar").removeClass(function(index, css) { 149 return (css.match(/(^|\s)font-\S+/g) || []).join(' '); 150 }); 151 $('.top-bar').addClass(newBg); 152 }); 153 154}); 155 156/* Theme styler scroll */ 157 158$(function() { 159 160 $('.scroll-switcher').slimscroll({ 161 height: '100%', 162 color: 'rgba(0,0,0,0.3)', 163 size: '10px', 164 alwaysVisible: true 165 }); 166 // 167 //$(".scroll-switcher").slimScroll({ 168 // destroy: true 169 //}); 170 171}); 172 173function swither_resizer() { 174 var windowHeight = $(window).height(); 175 $('#theme-switcher-wrapper').height(windowHeight / 1.4); 176} 177 178$(document).on('ready', function() { 179 swither_resizer(); 180}); 181 182/*$(window).on('resize', function() { 183 swither_resizer(); 184});*/
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.