Current File : /home/karenpetzb/www/css/themes/admin/js/functions.js
$(window).scroll(function() {    
    var scroll = $(window).scrollTop();

    if (scroll >= 145) {
        $(".effect").addClass("affix");
    } else {
        $(".effect").removeClass("affix");
    }
});

// Close and toggle buttons
$(document).ready(function () {
	$("div a.closethis").click(function(){
	  $(this).parent().hide();
	});
	$("a.togglethis").click(function(){
		$( this ).toggleClass( "clicked" );
	    $(this).parent().toggleClass("hidden-sec");
	});
});
// add scroll to div
$(document).ready(function() {
  $(".scroller").customScrollbar();
});

$(document).ready(function(){
    // tooltip demo
    $('.tooltip-demo').tooltip({
      selector: "[data-toggle=tooltip]",
      container: "body"
    })
	
	// popover demo
    $("[data-toggle=popover]")
      .popover()
	
	$(".alert").alert()
});
$(document).ready(function(){
	selectnav('nav1', {
	  label: 'Menu',
	  nested: true,
	  indent: '-'
	});
});
$(document).ready(function(){
	selectnav('nav2', {
	  label: 'Menu',
	  nested: true,
	  indent: '-'
	});
});
$(document).ready(function(){
	selectnav('nav3', {
	  label: 'Menu',
	  nested: true,
	  indent: '-'
	});
});
$(document).ready(function(){
	selectnav('nav4', {
	  label: 'Inbox Menu',
	  nested: true,
	  indent: '-'
	});
});