shikigrid-frontend/public/convert.html

106 lines
4.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Shikigrid: Convert</title>
<meta charset="UTF-8">
<script src="/static/js/dist.js"></script>
<link rel="stylesheet" type="text/css" href="/static/css/main.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous">
</script>
</head>
<body>
<!-- Top navbar -->
<nav class="navbar navbar-expand-lg bg-dark navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Shikigrid</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/convert">Convert</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/search/">Search</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/leaderboard">Leaderboard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/statistics">Statistics</a>
</li>
</ul>
</div>
<form id="search-form" class="form-inline" style="margin-block-end: 0em;">
<div class="input-group">
<input type="text" id="search-input" class="form-control" placeholder="Search by fingerprint...">
<button type="button" id="search-button" class="btn btn-primary">Search</button>
</div>
</form>
</div>
</nav>
<!-- Main content container -->
<div class="container">
<div class="row">
<div class="col">
<h1>Method 1</h1>
<p>
As of 2023-09-06 you can convert to new api by downloading <a href="https://git.toshiki.dev/andatoshiki/shikigrid">this</a>
</p>
<p>
Simply clone <a href="https://git.toshiki.dev/andatoshiki/shikigrid">this repo</a> and run <code>sudo make && sudo make install</code>. This should install and link your device to the new
grid. There is a 50/50 chance that this works lol, nothing device breaking though
</p>
</div>
</div>
<div class="row">
<div class="col">
<h1>Method 2</h1>
<p>
Use use the images located <a href="https://git.toshiki.dev/andatoshiki/shikigotchi">here</a>
</p>
</div>
</div>
</div>
</body>
<footer>
<script>
// Get references to the input and button elements
const searchInput = document.getElementById('search-input');
const searchButton = document.getElementById('search-button');
// Add a click event listener to the button
searchButton.addEventListener('click', function () {
// Get the text from the input
const searchText = searchInput.value.trim();
// Check if the input is not empty
if (searchText) {
// Redirect to /search/ with the search query appended
window.location.href = `/search/${encodeURIComponent(searchText)}`;
}
});
</script>
</footer>
</html>