Skip to content

Commit

Permalink
set location.hash on collapse open
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-ninja committed Jan 31, 2024
1 parent 397a6ff commit 0de7bc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ title: "Home"
query: 'h3'
});

$("#outer").bind("opened", function(e, section) {
location.hash = section.$details[0].id;
});

// new jQueryCollapse($("#doclinux"), {
// open: div_open,
// close: div_close,
Expand Down

0 comments on commit 0de7bc4

Please sign in to comment.