templates/home.html を追加
This commit is contained in:
parent
11c5d516b7
commit
31dc71649b
1 changed files with 47 additions and 0 deletions
47
templates/home.html
Normal file
47
templates/home.html
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ja">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>連番を簡単に生成!!</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<link rel="stylesheet" href="/css/empty.css">
|
||||||
|
<link rel="stylesheet" href="/css/pure-min.css">
|
||||||
|
<link rel="stylesheet" href="/css/grids-responsive-min.css">
|
||||||
|
<link rel="stylesheet" href="/css/ionicons.min.css">
|
||||||
|
<link rel="stylesheet" href="/css/default.css">
|
||||||
|
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"/>
|
||||||
|
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
|
||||||
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="no-theme">
|
||||||
|
<div class="pure-g h-box" id="search-widget">
|
||||||
|
<div class="pure-u-1" id="logo">
|
||||||
|
<h1 href="/" class="pure-menu-heading">Yuki Youtube</h1>
|
||||||
|
<a href="/bbs">掲示板</a><br>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-4"></div>
|
||||||
|
<div class="pure-u-1 pure-u-md-12-24 searchbar">
|
||||||
|
<form class="pure-form" action="/search" method="get">
|
||||||
|
<fieldset>
|
||||||
|
<input type="search" id="searchbox" autocomplete="on" autocorrect="on" autocapitalize="none" spellcheck="false" autofocus="" name="q" placeholder="検索" title="検索" value="">
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-4"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<script>$('#searchbox').autocomplete({
|
||||||
|
source: function (request, response) {
|
||||||
|
{
|
||||||
|
var url = "/suggest?keyword="+ request.term
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open("GET", url);
|
||||||
|
xhr.onload = function() {
|
||||||
|
response(JSON.parse(xhr.responseText));
|
||||||
|
}
|
||||||
|
xhr.send();
|
||||||
|
}},delay:300});</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Add table
Reference in a new issue