mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-01-30 19:24:10 +03:00
added permalinks
This commit is contained in:
parent
b889eb6549
commit
9d2cbbb9b4
|
@ -800,7 +800,13 @@
|
||||||
|
|
||||||
<!-- Open source code -->
|
<!-- Open source code -->
|
||||||
<script>
|
<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() {
|
$(window).on("resize", function() {
|
||||||
$("html, body").height($(window).height());
|
$("html, body").height($(window).height());
|
||||||
|
@ -814,6 +820,7 @@
|
||||||
$(this).addClass("active");
|
$(this).addClass("active");
|
||||||
window.page = $(this).data("target");
|
window.page = $(this).data("target");
|
||||||
var page = $(window.page);
|
var page = $(window.page);
|
||||||
|
window.location.hash = window.page;
|
||||||
$(".page").not(page).removeClass("active").hide();
|
$(".page").not(page).removeClass("active").hide();
|
||||||
page.show();
|
page.show();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user