-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (36 loc) · 1.28 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
<!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>The Bro Code...! :"}</title>
<link rel="shortcut icon" href="bro-fist.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<!-- development version, includes helpful console warnings -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="the-code.js"></script>
</head>
<body>
<!-- Vue instance -->
<div id="app">
<div class="search-box">
<input type="text" autocomplete="off" autocapitalize="none" placeholder="keyword" name="keyword" v-model="keyword" id="keyword">
<span>Found {{ this.codes.length }} code{{ this.codes.length > 1 ? 's': ''}}...!</span>
</div>
<div v-for="code in codes" class="code-container" @click="handleCopyCode(code)">
<div class="code-number">{{ code.number }}</div>
<div class="code-content"> {{ code.content }}</div>
</div>
<!-- Snackbar -->
<div v-if="toastText" id="snackbar" class="show">
<span class="wrapper">
<span class="text">
{{ toastText }}
</span>
</span>
</div>
</div>
<script src="index.js"></script>
</body>
</html>