-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
112 lines (111 loc) · 3.44 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
<!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" />
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<title>Slug Generator</title>
</head>
<body class="body">
<header style="text-align: center">
<h1 class="heading py-3" style="font-weight: bold; font-size: 2em">
Slug Generator
</h1>
<h5 class="header mx-5 my-4" style="font-weight: bold; font-size: 1.5em">
Enter Title text to slug.
</h5>
</header>
<main>
<div class="mx-5 my-4" style="text-align: center">
<input
type="text"
id="titletextbox"
placeholder="Enter the title here."
autocomplete="off"
/>
</div>
<div class="options mx-5">
<div class="btn-group btn-group-toggle d-inline ml-3">
<label class="dashbutton btn btn-primary ml-5">
<input
type="radio"
name="dashbutton"
id="dashbuttoninput"
autocomplete="off"
/>
Separate with dash(-)
</label>
<label class="underscorebutton btn btn-primary mr-5">
<input
type="radio"
name="underscorebutton"
id="underscorebuttoninput"
autocomplete="off"
/>
Separate with Underscore(_)
</label>
</div>
<div class="d-inline mx-5" style="float: right">
<input type="checkbox" id="withoutdigit" />
<label for="withoutdigit">Without Digits</label>
</div>
</div>
<div class="output-zone my-5">
<div style="text-align: center">
<button
type="button"
class="btn btn-secondary btn-lg btn-inline"
id="generate-button"
>
Generate Slug
</button>
</div>
<div id="outputzone" style="text-align: center; display: inline-block">
<label
class="mt-5 mx-5"
for="output-slug"
style="display: block; font-size: 2em; font-weight: bold"
>Output Slug(Clean URI Slug)</label
>
<textarea
class="mx-5"
id="output-slug"
name="output-slug"
rows="1"
cols="50"
style="display: none; font-size: 2em"
>
</textarea>
<div style="text-align: center">
<button
type="button"
class="my-5 btn btn-success btn-lg btn-inline"
style="display: inline-block"
id="copy-button"
>
Copy the Text
</button>
</div>
</div>
</div>
<div class="reset & clear buttons">
<div style="text-align: right" class="mx-5">
<button type="button" class="btn btn-outline-light" id="clear">
Clear
</button>
<button type="button" class="btn btn-outline-light mr-5" id="reset">
Reset
</button>
</div>
</div>
</main>
<script src="script.js"></script>
</body>
</html>