-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink-form.html
133 lines (126 loc) · 3.9 KB
/
link-form.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
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/tagify.css" />
<script
src="https://kit.fontawesome.com/be8d0e4a0d.js"
crossorigin="anonymous"
></script>
<title>Bookmarks</title>
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-dark bg-dark p-0">
<div class="container">
<a class="navbar-brand" href="/">Bookmarks</a>
</div>
<ul class="navbar-nav">
<li class="navbar-item">
<a class="nav-link" href="link-list.html">Links</a>
</li>
<li class="navbar-item">
<a class="nav-link" href="tag-list.html">Tags</a>
</li>
</ul>
</nav>
<!-- HEADER -->
<header id="main-header" class="py-2 bg-primary text-white">
<div class="container">
<div class="row">
<div class="col-md-6">
<h1><i class="fas fa-cog"></i> URL</h1>
</div>
</div>
</div>
</header>
<!-- ACTIONS -->
<section id="actions" class="py-4 mb-4 bg-light">
<div class="container">
<div class="row">
<div class="col-md-3">
<a href="link-list.html" class="btn btn-light btn-block">
<i class="fas fa-arrow-left"></i> Back to the list
</a>
</div>
<div class="col-md-3">
<a href="#" class="btn btn-success btn-block">
<i class="fas fa-check"></i> Save
</a>
</div>
<div class="col-md-3">
<a href="#" class="btn btn-danger btn-block">
<i class="fas fa-trash"></i> Delete URL
</a>
</div>
</div>
</div>
</section>
<!-- FORM -->
<section id="form">
<div class="container">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
<h4>Edit URL</h4>
</div>
<div class="card-body">
<form action="">
<div class="form-group">
<label for="title">URL</label>
<input
type="text"
name="url"
id="title"
class="form-control"
value="www.youtube.com"
/>
</div>
<div class="form-group">
<label for="tags">TAGs</label>
<input
type="text"
name="tags"
id="tags"
value="Social Media, Videos"
/>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- FOOTER -->
<footer id="main-footer" class="bg-dark text-white mt-5 p-5">
<div class="container">
<div class="row">
<div class="col">
<p class="lead text-center">
Copyright © <span id="year"></span>
</p>
</div>
</div>
</div>
</footer>
<!-- SCRIPTS -->
<script src="js/tagify.min.js"></script>
<script>
// Get the current year for the copyright
document.getElementById("year").textContent = new Date().getFullYear();
var input = document.querySelector('input[id=tags]');
var tagify = new Tagify(input, {
whitelist: ["Social Media", "Videos", "Favorite", "News"]
})
</script>
</body>
</html>