Logo white

ADAM / AIAHTML5

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues
  • Merge Requests 14
  • Labels
  • Wiki
  • Snippets
  • AIAHTML5
  • 300-PROTOTYPES
  • 20160722
  • js
  • main.js
  • updated settings and list manager and search designs in prototype folder
    de5881f3
    Ashish Jain authored
    2016-07-22 14:26:20 +0530  
    Browse Code ยป
main.js 451 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');			
		}
	});
});