textnavi/templates/preview.html

115 lines
4.8 KiB
HTML
Raw Permalink Normal View History

2018-12-23 18:32:17 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/css/style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="../static/bower_components/jqcloud2/dist/jqcloud.min.css">
<link rel="stylesheet" href="../static/bower_components/choices.js/assets/styles/css/choices.min.css">
<link rel="stylesheet" href="../static/bower_components/bootstrap-multiselect/dist/css/bootstrap-multiselect.css"
type="text/css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
<title>Search ...</title>
</head>
<body>
<div class="container-fluid">
<div class="row head-area">
<div class="col-sm-2">
<div class="row logo-section">
<a href="/"><img src="/static/img/logo.png" class="logo"></a>
</div>
</div>
<div class="col-sm-10">
<div class="input-group mb-3 search-section">
<input type="text" class="form-control" placeholder=""
value="{{ keyword }}"
disabled
aria-describedby="basic-addon2" id="search-input2">
<script>
</script>
<div class="input-group-append">
<button class="btn btn-success btn-search" type="button">Search</button>
</div>
</div>
</div>
</div>
<div class="row search-content">
<div class="col-sm-4 col-md-2 col-lg-2 config-area">
</div>
<div class="col-sm-8 col-md-10">
<div class="loading" id="loader">
<img alt="self-Logo" src="../static/img/loading.svg" width="50px">
</div>
<div id="result_area" style="display: none"></div>
<div id="show_content">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Title</th>
<th scope="col">Author</th>
<th scope="col">Discipline</th>
</tr>
</thead>
<tbody>
{% for item in data %}
<tr>
<th scope="row"><a href="/doc?id={{ item["_id"] }}">{{ item["_id"] }}</a></th>
<td>{{ item["_source"].title }}</td>
<td>{{ item["_source"].author }}</td>
<td>{{ item["_source"].discipline }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
<form type="GET" id="search-controller">
<input type="hidden" name="delta_cloud" id="delta_cloud" value="{{ delta_cloud }}">
<input type="hidden" id="freq_keys"/>
<input type="hidden" value="{{ keyword }}" name="query" id="query_values"
data-depth={{ depth }} data-filter={{ cluster }} />
<input type="hidden" value="{{ depth }}" name="depth"/>
<input type="hidden" value="{{ cluster }}" name="cluster"/>
</form>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="../static/js/bootstrap.min.js"></script>
<script src="../static/bower_components/jqcloud2/dist/jqcloud.min.js"></script>
<script src="../static/bower_components/choices.js/assets/scripts/dist/choices.min.js"></script>
<script type="text/javascript"
src="../static/bower_components/bootstrap-multiselect/dist/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
<script src="../static/js/appv2.js"></script>
<script>
jQuery(document).ready(function () {
new Choices('#search-input2').disable();
app.run();
});
</script>
</body>
</html>