-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnew - Copy.html
153 lines (126 loc) · 5.24 KB
/
new - Copy.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>yeon</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS
================================================== -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Favicons
================================================== -->
<!-- <link rel="shortcut icon" href="images/favicon.ico"> -->
<!-- <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> -->
<!-- <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> -->
<!-- <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> -->
<!-- Included CSS files
================================================== -->
<link rel="stylesheet" type="text/css" href="assets/css/morph.css">
<!-- Fonts -->
<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900italic,900' rel='stylesheet' type='text/css'>
<!-- Included javascript files
================================================== -->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var max_fields = 10; //maximum input boxes allowed
var wrapper = $(".input_fields_wrap"); //Fields wrapper
var add_button = $(".add_field_button"); //Add button ID
$(add_button).click(function(e){ //on add input button click
e.preventDefault();
var x = $(this).siblings(".input_fields_wrap").children("div").length;
if(x < max_fields){ //max input box allowed
$(this).siblings(".input_fields_wrap").append('<div><p class="material-icons">description</p><textarea class="removable"></textarea><a href="#" class="remove_field material-icons">close</a></div>'); //add textarea
//$( "p:last" ).html( x+1 ); //insert current number to the last div's p --> used as number
}
});
$(wrapper).on("click",".remove_field", function(e){ //user click on remove text
e.preventDefault(); $(this).parent('div').remove(); x--;
})
});
</script>
</head>
<body>
<input type="checkbox" name="user" id="user-profile">
<label class="user-profile" for="user-profile">
<div class="user-profile-img">
<img src="">
</div>
<span class="user-profile-name">
John Doe of The Crimson Heaven
</span>
</label>
<label class="side-menu" for="user-profile">
<a href="templates.html">Templates</a>
<a href="users.html">Users</a>
<a href="roles.html">Roles</a>
<hr>
<a href="login.html">Log out</a>
<div class="base-layer"></div>
</label>
<header>
<nav>
<a href="index.html" class="button theme">
<i class="material-icons">close</i>
<span>Batal</span>
</a>
</nav>
</header>
<div class="main">
<div class="container">
<span class="section-title">Dokumen Baru</span>
<form class="form-default">
<label>
Jenis Surat
<select>
<option disabled="disabled" selected>--- Pilih format ---</option>
<option>Surat dari Hokkaido</option>
<option>Suratan takdir</option>
</select>
</label>
<label>
Tanggal Surat
<input type="text" name="">
</label>
<label>
Ditandatangani oleh
<input type="text" name="">
</label>
<section>
<hr>
<small>menimbang</small>
<div class="input_fields_wrap"></div>
<button class="add_field_button button pink">tambah poin</button>
</section>
<section>
<hr>
<small>mengingat</small>
<div class="input_fields_wrap"></div>
<button class="add_field_button button pink">tambah poin</button>
</section>
<hr><br>
<span class="section-title">pemeriksa</span>
<section>
<div class="input_fields_wrap"></div>
<button class="add_staff_button button pink">tambah pemeriksa</button>
</section>
<label>
Catatan
<textarea></textarea>
</label>
<button class="button theme form">Proses</button>
</form>
</div>
</div>
</body>
</html>