{"size": 1674, "ext": "js", "max_stars_repo_path": "MonoPriceMultiZone/src/main/resources/static/js/multizone.js", "max_stars_repo_name": "Lightning51B/MonoPriceMultiZone", "max_stars_repo_stars_event_min_datetime": "2016-06-05T03:54:38.000Z", "max_stars_repo_stars_event_max_datetime": "2016-06-05T03:54:38.000Z", "max_issues_repo_path": "MonoPriceMultiZone/src/main/resources/static/js/multizone.js", "max_issues_repo_name": "Lightning51B/MonoPriceMultiZone", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "MonoPriceMultiZone/src/main/resources/static/js/multizone.js", "max_forks_repo_name": "Lightning51B/MonoPriceMultiZone", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.7402597403, "max_line_length": 64, "alphanum_fraction": 0.4928315412}
$(function() {
		
    $(window).scroll( function() {

	    var value = $(this).scrollTop();
	    if($(".navbar").not(':animated')){
		    if ( value > 50 ){
		    	if($(".navbar").is(':visible')){
		    		$(".navbar").slideUp();
		    	}
		    }
		    else{
		    	if($(".navbar").is(':hidden')){
		    		$(".navbar").slideDown();
		    	}
		    }
	    }
	});
    //setup mute button
    	
  
	$('.section-wrapper').on('click', '.mute-wrapper',function() {	
		$(this).toggleClass('muted-wrapper unmuted-wrapper');
	});
	    // setup master volume
	    $(".master").slider({
			value : 60,
			orientation : "horizontal",
			range : "min",
			animate : true
	    });
	    // setup graphic EQ
	    $(".level").each(function() {
			// read initial values from markup and remove that
			var value = parseInt($(this).text(), 10);
			$(this).empty().slider({
			    value : value,
			    range : "min",
			    max : 100,
			    animate : true,
			    orientation : "vertical"
			});
	    });
	    $('.pwrbtn').bind('click', function() {
			$(this).toggleClass('active');
	    });
	    $( window ).resize(function() {
		  if($( window ).width() < 768){
		      setupMobile();
		  }else{
		      setupDesktop();
		  }
		});
	    var viewwidth = $(window).width(); 
	    	
		if(viewwidth < 768){
		    setupMobile();
		    
		 }
		
		    
		  
		// scripts
	function setupMobile(){
	    if($('section').hasClass('col-md-4')){
		$('section').removeClass('col-md-4');
		$('.section-wrapper').panelSnap();
		
	    }
	}
	function setupDesktop(){
	    if(!$('section').hasClass('col-md-4')){
		$('section').addClass('col-md-4');
		$('.section-wrapper').panelSnap('destroy');
	    }
	}
	});