Logo white

ADAM / AIAHTML5

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues
  • Merge Requests 14
  • Labels
  • Wiki
  • Snippets
  • AIAHTML5
  • 400-SOURCECODE
  • AIAHTML5.Web
  • content
  • js
  • custom
  • main.js
  • CI Module jspanel and ca json and images
    ef481fa1
    Mitali Srivastava authored
    2016-06-27 19:30:19 +0530  
    Browse Code ยป
main.js 431 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/***
CUSTOM.JS FUNCTION
**/
$(function(){
	"use strict";
	/*** Sidebar Toggle ***/
	var barPos=0;
	var bar = $('.sidebar');
	var main = $('.main');
	$('.toggleBar').click(function () {
	    barPos = parseInt($('.sidebar').css('left'));
		if(barPos!==0 && !bar.hasClass('active'))
		{
			bar.addClass('active');
			main.addClass('active');	
		}
		else
		{
			bar.removeClass('active');
			main.removeClass('active');			
		}
	});
});