function changePage(href){
	$("#preloader").show();
	$(".ripple").addClass("activating");
	$('main').load(href + " #main-content", function(response, status, xhr){
		console.log("Status: " + status);
		$(".ripple").on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function(){
			$(".ripple").addClass("disabling");
			setTimeout(function(){
				$(".ripple").removeClass("activating disabling");
				$("#preloader").hide();
				$("main").stop().animate({ scrollTop: [0, "easeOutQuint"] }, 300);
				
			},300);
			// Re init materialize things
			materialInit()
		});
	});
}
// Page changing function and transition handling
Page changing function and transition handling
Page changing function and transition handling
function changePage(href){
	$("#preloader").show();
	$(".ripple").addClass("activating");
	$('main').load(href + " #main-content", function(response, status, xhr){
		console.log("Status: " + status);
		$(".ripple").on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function(){
			$(".ripple").addClass("disabling");
			setTimeout(function(){
				$(".ripple").removeClass("activating disabling");
				$("#preloader").hide();
				$("main").stop().animate({ scrollTop: [0, "easeOutQuint"] }, 300);
			},300);
			materialInit()
		});
	});
}
function changePage ( href ) { $ ( "#preloader" ) . show ( ) ; $ ( ".ripple" ) . addClass ( "activating" ) ; $ ( 'main' ) . load ( href + " #main-content" , function ( response , status , xhr ) { console . log ( "Status: " + status ) ; $ ( ".ripple" ) . on ( "transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd" , function ( ) { $ ( ".ripple" ) . addClass ( "disabling" ) ; setTimeout ( function ( ) { $ ( ".ripple" ) . removeClass ( "activating disabling" ) ; $ ( "#preloader" ) . hide ( ) ; $ ( "main" ) . stop ( ) . animate ( { scrollTop : [ 0 , "easeOutQuint" ] } , 300 ) ; } , 300 ) ; materialInit ( ) } ) ; } ) ; }
Page changing function and transition handling
Page changing function and transition handling
// Re init materialize things