-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
123 lines (114 loc) · 5.04 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!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">
<meta name="mobile-web-app-capable" content="yes">
<link rel="manifest" href="/tagsformat/manifest.json">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<link rel="icon" href="favicon.png" sizes="32x32" type="image/png">
<link href="https://fonts.googleapis.com/css?family=Raleway:400,300,600,800,900" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/Vazirmatn-font-face.css" rel="stylesheet"
type="text/css" />
<!-- <script src="https://unpkg.com/[email protected]/dist/vue.global.js"></script> -->
<script src="https://unpkg.com/[email protected]/dist/vue.global.prod.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<title>Tag Generator</title>
<style>
.cont {
margin: 1em;
width: 3.5rem;
height: 3.5rem;
position: relative;
}
body {
font-family: 'Vazirmatn', sans-serif;
}
textarea {
font-weight: 500 !important;
font-size: 1.2em !important;
/* box-shadow: grey 1px 1px 5px; */
}
</style>
</head>
<body>
<div class="container" id="app">
<div class="row">
<div class="col d-flex align-items-center justify-content-start">
<h3 for="comment" class='mt-2'>{{ name }}</h3>
</div>
<div class="col text-center">
<a href="\tagsformat/tagtools.html"><img class="cont" src="favicon.png"></a>
</div>
<div class="col">
<div id="cont" class="cont float-right"></div>
</div>
</div>
<div class="row">
<div class="col">
<textarea ref="tags"
placeholder="Type your tags, each on one line.
Space will be converted to underline."
dir="auto" class="mb-2 form-control " rows="9" id="tags" @keyup="convert"></textarea>
</div>
</div>
<div class="row">
<div class="col-auto">
<button @click="save_tags" type="button" class="btn btn-primary">Save Tags</button>
<!-- <h4 for="comment" class='text-left' id="outcount">Output</h4> -->
</div>
<div class="col-auto">
<!-- <button type="button" class="btn btn-primary">Load Tags</button> -->
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1"
data-bs-toggle="dropdown">
Load Tags
</button>
<ul class="dropdown-menu">
<li v-for="item in tags_name" class="dropdown-item">
<div class="row">
<div class="col" @click="load_tags(item)">
<span>{{ item }}</span>
</div>
<div class="col-3" @click="remove_tags(item)">
<span><i class="bi bi-x-circle-fill"></i></span>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="col-auto">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="dotcheck" value="" id="flexCheckChecked"
checked>
<label class="form-check-label" for="flexCheckChecked">
Insert Dots
</label>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col">
<textarea dir="auto" class="mb-2 form-control" rows="3" id="output" readonly></textarea>
</div>
</div>
<div class="row">
<div class="col">
<button type="button" class="btn btn-success btn-block btn-lg w-100" @click="select">Copy</button>
</div>
<div class="col">
<button type="button" class="mb-2 btn btn-danger btn-block btn-lg w-100"
@click="cleartext">Clear</button>
</div>
</div>
</div>
<script src="progressbar.min.js"></script>
<script src="app.js"></script>
</body>
</html>