//BACKGROUND CHANGER $(function() { $("#button-bg").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg5.jpg')no-repeat center center fixed" }); }); $("#button-bg2").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg2.jpg')no-repeat center center fixed" }); }); $("#button-bg3").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg.jpg')no-repeat center center fixed" }); }); $("#button-bg5").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/giftly.png')repeat" }); }); $("#button-bg6").click(function() { $("body").css({ "background": "#2c3e50" }); }); $("#button-bg7").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg3.png')repeat" }); }); $("#button-bg8").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg8.jpg')no-repeat center center fixed" }); }); $("#button-bg9").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg9.jpg')no-repeat center center fixed" }); }); $("#button-bg10").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg10.jpg')no-repeat center center fixed" }); }); $("#button-bg11").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg11.jpg')no-repeat center center fixed" }); }); $("#button-bg12").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg12.jpg')no-repeat center center fixed" }); }); $("#button-bg13").click(function() { $("body").css({ "background": "url('/cms/app/admin/templates/admin/img/bg13.jpg')repeat" }); }); /** * Background Changer end */ }); //TOGGLE CLOSE $('.nav-toggle').click(function() { //get collapse content selector var collapse_content_selector = $(this).attr('href'); //make the collapse content to be shown or hide var toggle_switch = $(this); $(collapse_content_selector).slideToggle(function() { if ($(this).css('display') == 'block') { //change the button label to be 'Show' toggle_switch.html(''); } else { //change the button label to be 'Hide' toggle_switch.html(''); } }); }); $('.nav-toggle-alt').click(function() { //get collapse content selector var collapse_content_selector = $(this).attr('href'); //make the collapse content to be shown or hide var toggle_switch = $(this); $(collapse_content_selector).slideToggle(function() { if ($(this).css('display') == 'block') { //change the button label to be 'Show' toggle_switch.html(''); } else { //change the button label to be 'Hide' toggle_switch.html(''); } }); return false; }); //CLOSE ELEMENT $(".gone").click(function() { var collapse_content_close = $(this).attr('href'); $(collapse_content_close).hide(); }); //tooltip $('.tooltitle').tooltip();