1/*----------------------------------------------------------------------------------- 2/* Styles Switcher 3-----------------------------------------------------------------------------------*/ 4 5window.console = window.console || (function(){ 6 var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile = c.clear = c.exception = c.trace = c.assert = function(){}; 7 return c; 8})(); 9 10 11jQuery(document).ready(function($) { 12 13 14 15 16 17 18 $("#style-switcher .switch_btn").click(function(e){ 19 e.preventDefault(); 20 var div = $("#style-switcher"); 21 console.log(div.css("right")); 22 if (div.css("right") === "-190px") { 23 $("#style-switcher").animate({ 24 right: "0px" 25 }); 26 } else { 27 $("#style-switcher").animate({ 28 right: "-190px" 29 }); 30 } 31 }); 32 33 34 //Layout Switcher 35 $("#layout-style").change(function(e){ 36 if( $(this).val() == 1){ 37 $("body").removeClass("jb-boxed"), 38 $(window).resize(); 39 stickyheader = !stickyheader; 40 } else{ 41 $("body").addClass("jb-boxed"), 42 $(window).resize(); 43 stickyheader = !stickyheader; 44 } 45 }); 46 47 48 $('.bg li a').click(function() { 49 var current = $('#style-switcher select[id=layout-style]').find('option:selected').val(); 50 if(current == '2') { 51 var bg = $(this).css("backgroundImage"); 52 $("body").css("backgroundImage",bg); 53 } else { 54 alert('Please select boxed layout'); 55 } 56 }); 57 58 $("#reset a").click(function(e){ 59 var bg = $(this).css("backgroundImage"); 60 $("body").css("backgroundImage","url(../images/bg/default_bg.png)"); 61 $("#navigation" ).removeClass("style-2") 62 }); 63 64 65 });
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.