mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-05 12:25:50 +00:00
made it so it saves the currently-loaded flatdoc file in the hash and remembers it next page load
This commit is contained in:
@@ -62,8 +62,16 @@ mixpanel.init("132d42885e094171f34467fc54da6fab");
|
||||
|
||||
<!-- Initializer -->
|
||||
<script>
|
||||
if (window.location.hash == "#web-sockets-api") {
|
||||
var fdfile = "websocket_api.md";
|
||||
} else if (window.location.hash == "#ripple-rest-api") {
|
||||
var fdfile = "ripplerest_api.md";
|
||||
} else {
|
||||
var fdfile = "intro.md";
|
||||
}
|
||||
|
||||
Flatdoc.run({
|
||||
fetcher: Flatdoc.file('intro.md')
|
||||
fetcher: Flatdoc.file(fdfile)
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -110,9 +118,9 @@ mixpanel.init("132d42885e094171f34467fc54da6fab");
|
||||
<div class='menubar'>
|
||||
|
||||
<ul class='subnav section'>
|
||||
<li><a href='#' onclick="Flatdoc.run({fetcher: Flatdoc.file('intro.md')}); document.title='Ripple Developer Portal: Introduction'">Introduction</a></li>
|
||||
<li><a href='#' onclick="Flatdoc.run({fetcher: Flatdoc.file('ripplerest_api.md')}); document.title='Ripple Developer Portal: Ripple-REST API'">Ripple-REST API</a></li>
|
||||
<li><a href='#' onclick="Flatdoc.run({fetcher: Flatdoc.file('websocket_api.md')}); document.title='Ripple Developer Portal: Web Sockets API'">Web Sockets API</a></li>
|
||||
<li><a href='#introduction' onclick="Flatdoc.run({fetcher: Flatdoc.file('intro.md')}); document.title='Ripple Developer Portal: Introduction'">Introduction</a></li>
|
||||
<li><a href='#ripple-rest-api' onclick="Flatdoc.run({fetcher: Flatdoc.file('ripplerest_api.md')}); document.title='Ripple Developer Portal: Ripple-REST API'">Ripple-REST API</a></li>
|
||||
<li><a href='#web-sockets-api' onclick="Flatdoc.run({fetcher: Flatdoc.file('websocket_api.md')}); document.title='Ripple Developer Portal: Web Sockets API'">Web Sockets API</a></li>
|
||||
</ul>
|
||||
<form class='section'>
|
||||
<label for="syntax_mode">Show Syntax for:</label>
|
||||
|
||||
Reference in New Issue
Block a user