mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-11-04 01:47:35 +03:00 
			
		
		
		
	added permalinks
This commit is contained in:
		
							parent
							
								
									b889eb6549
								
							
						
					
					
						commit
						9d2cbbb9b4
					
				| 
						 | 
				
			
			@ -800,7 +800,13 @@
 | 
			
		|||
 | 
			
		||||
    <!-- Open source code -->
 | 
			
		||||
    <script>
 | 
			
		||||
      window.page = "#about";
 | 
			
		||||
      window.page = window.location.hash || "#about";
 | 
			
		||||
 | 
			
		||||
      $(document).ready(function() {
 | 
			
		||||
        if (window.page != "#about") {
 | 
			
		||||
          $(".menu").find("li[data-target=" + window.page + "]").trigger("click");
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
      $(window).on("resize", function() {
 | 
			
		||||
        $("html, body").height($(window).height());
 | 
			
		||||
| 
						 | 
				
			
			@ -814,6 +820,7 @@
 | 
			
		|||
        $(this).addClass("active");
 | 
			
		||||
        window.page = $(this).data("target");
 | 
			
		||||
        var page = $(window.page);
 | 
			
		||||
        window.location.hash = window.page;
 | 
			
		||||
        $(".page").not(page).removeClass("active").hide();
 | 
			
		||||
        page.show();
 | 
			
		||||
        setTimeout(function() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user