82 lines
3.9 KiB
HTML
82 lines
3.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{block "title" .}}{{end}}</title>
|
|
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="/css/bootstrap-icons.css" rel="stylesheet">
|
|
<link href="/css/legends.css" rel="stylesheet">
|
|
<script src="/js/jquery-3.6.0.min.js"></script>
|
|
<script src="/js/bootstrap.min.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light mb-4">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="#">Legends Browser</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
|
|
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/">Civilizations</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/worldmap">World Map</a>
|
|
</li>
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown"
|
|
aria-expanded="false">
|
|
Objects
|
|
</a>
|
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
<li><a class="dropdown-item" href="/entities">Entities</a></li>
|
|
<li><a class="dropdown-item" href="/hfs">Historical Figures</a></li>
|
|
<li><a class="dropdown-item" href="/regions">Regions</a></li>
|
|
<li><a class="dropdown-item" href="/sites">Sites</a></li>
|
|
<li><a class="dropdown-item" href="/structures">Structures</a></li>
|
|
<li><a class="dropdown-item" href="/worldconstructions">World Constructions</a></li>
|
|
<li><a class="dropdown-item" href="/artifacts">Artifacts</a></li>
|
|
<li><a class="dropdown-item" href="/artforms">Art Forms</a></li>
|
|
<li><a class="dropdown-item" href="/writtencontents">Written Contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/years">Years</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/collections">Collections</a>
|
|
</li>
|
|
</ul>
|
|
<form class="d-flex">
|
|
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
|
|
<button class="btn btn-outline-success" type="submit">Search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container">{{block "content" .}}{{end}}</div>
|
|
|
|
<script>
|
|
var hash = document.location.hash;
|
|
console.log("hah", hash)
|
|
if (hash && hash.startsWith("#nav-")) {
|
|
var hashPieces = hash.split('?');
|
|
activeTab = $('.nav-link[data-bs-target="' + hashPieces[0] + '"]');
|
|
console.log(hashPieces[0], activeTab);
|
|
activeTab && activeTab.click()
|
|
}
|
|
|
|
$('.nav-tabs button').on('click', function (e) {
|
|
window.location.hash = $(this).data("bs-target")
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |