main.js
446 Bytes
/***
CUSTOM.JS FUNCTION
**/
$(function(){
"use strict";
/*** Sidebar Toggle ***/
var barPos=0;
var bar = $('.sidebar');
var main = $('.main');
$('.toggleBar').click(function () {
debugger;
barPos = parseInt($('.sidebar').css('left'));
if(barPos!==0 && !bar.hasClass('active'))
{
bar.addClass('active');
main.addClass('active');
}
else
{
bar.removeClass('active');
main.removeClass('active');
}
});
});