mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<title>SillyTavern Guidebook</title>
|
|
<link rel="stylesheet" href="/css/notes.css">
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link href="/webfonts/NotoSans/stylesheet.css" rel="stylesheet">
|
|
<script src="/scripts/showdown.min.js"></script>
|
|
<script src="/scripts/showdown-toc.min.js"></script>
|
|
<script type="module">
|
|
const toc = [];
|
|
let hash = location.hash;
|
|
let converter = new showdown.Converter({ extensions: [showdownToc({ toc })] } );
|
|
let text = await (await fetch('/notes/content.md')).text();
|
|
let content = document.getElementById('content');
|
|
content.innerHTML = converter.makeHtml(text);
|
|
const link = document.createElement('a');
|
|
link.href = hash;
|
|
document.body.appendChild(link);
|
|
link.click();
|
|
document.body.removeChild(link);
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="main">
|
|
<div id="content">
|
|
<!-- To change the guidebook content edit the content.md file -->
|
|
<!-- Then it will be dynamically inserted here -->
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |