35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<div class="topbar" align="center">
|
|
|
|
</div>
|
|
|
|
<header>
|
|
<div class="header" id="NavHeader" align="center">
|
|
|
|
<a href="/">Home</a> |
|
|
<a href="/random?view=rich">Random Verse</a> |
|
|
<a href="/votd?view=rich">Verse of the Day</a>
|
|
<form action="/find">
|
|
<input type="text" name="kw" value="{query}" id="searchBar">
|
|
<input type="submit" value="Search">
|
|
<input type="hidden" name="view" value="rich">
|
|
</form>
|
|
<button onclick="make_shortcode()">Get Shortcode: </button>
|
|
<a id="context_href" href=''></a>
|
|
<br>
|
|
←
|
|
<a href="{prev_chapter_link}">{prev_chapter_name}</a> |
|
|
{current_chapter_name} |
|
|
<a href="{next_chapter_link}">{next_chapter_name}</a>
|
|
→
|
|
</div>
|
|
<script>
|
|
function make_shortcode(){{
|
|
var xmlHttp = new XMLHttpRequest();
|
|
var theUrl = "/mksc/" + document.getElementById("searchBar").value;
|
|
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
|
|
xmlHttp.send( null );
|
|
document.getElementById("context_href").innerHTML = xmlHttp.responseText;
|
|
document.getElementById('context_href').setAttribute("href", "/" + xmlHttp.responseText);
|
|
}}
|
|
</script>
|
|
</header> |