This repository has been archived by the owner on Mar 15, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
62 lines (59 loc) · 2.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Tibia ClientID Finder</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.min.css" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container" id="app">
<div class="row">
<div class="column">
<input type="text" placeholder="type item name to search" v-model="keyword" @change="search(keyword)">
<span class="error" v-if="error"v-html="error"></span>
</div>
</div>
<div class="row">
<div class="column" v-if="!results || !results.length">
<br>
<h4>Categories</h4>
<table>
<tr v-for="(count, category) in categories">
<td>{{ category }} ({{ count }})</td>
<td class="action"><button @click.prevent="showCategory(category)" type="button">Show more</button></td>
</tr>
</table>
</div>
<div class="column" v-if="results && results.length">
<br>
<h4>Results ({{ results.length }})</h4>
<table>
<thead>
<tr>
<th>item name</th>
<th>type</th>
<th>client id</th>
<th>server version</th>
</tr>
</thead>
<tbody>
<tr v-for="item in results">
<td v-html="item.name"></td>
<td>{{ item.type }}</td>
<td v-html="item.client_id"></td>
<td>{{ item.version }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.6.14/vue.min.js"></script>
<script src="script.js"></script>
</body>
</html>