-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
77 lines (55 loc) · 1.8 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
<!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>jQuery Appender</title>
<link rel="stylesheet" href="demo/demo.css">
<link rel="stylesheet" href="demo/animate.css">
<link href="https://fonts.googleapis.com/css?family=Courgette|Zilla+Slab&display=swap" rel="stylesheet">
</head>
<body>
<span id="forkongithub"><a target="_blank" href="https://github.com/amiryxe/jquery-appender">View on GitHub</a></span>
<h1>jQuery Appender</h1>
<p>
Simple Way to Create and Append Elements
<br>
<b>by <a target="_blank" href="https://github.com/amiryxe/">@amiryxe</a></b>
</p>
<div id="wrapper">
<div class="row_container">
<p class="row-number"></p>
<label>
First Name
<input type="text" name="fname" style="margin: 0 10px;">
</label>
<label>
Last Name
<input type="text" name="lname" style="margin: 0 10px;">
</label>
<label>
Age
<input type="text" name="age" style="margin: 0 10px;">
</label>
<button class="delete-btn" style="margin: 0 10px;">Delete</button>
<br><br>
</div>
<button class="add-new-item" style="margin: 0 10px;">Demo: Add new item</button>
<div id="appendHere"></div>
</div>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/appender.js"></script>
<script>
$("#appendHere").appender({
rowSection: '.row_container',
addBtn: '.add-new-item',
appendEffect: 'fade',
addClass: 'animated bounceInLeft',
rowNumber: '.row-number',
deleteBtn: '.delete-btn',
hideSection: true
});
</script>
</body>
</html>