forked from iamsushank/mutual-cart-3380
-
Notifications
You must be signed in to change notification settings - Fork 0
/
new.html
256 lines (251 loc) · 7.69 KB
/
new.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>New Client | My Hours</title>
<link
rel="icon"
href="https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/b5f28d17-3a80-4bf3-aa0c-82ca5cdcccf2.png?w=100&q=50"
type="image/x-icon"
/>
</head>
<style>
body {
display: grid;
grid-template-columns: 14rem auto;
}
#heading1 {
font-size: 45px;
font-family: sans-serif;
color: black;
font-weight: 200;
}
.new_client {
width: 450px;
margin: auto;
}
p {
font-size: 12px;
font-weight: bold;
color: rgb(135, 130, 130);
}
input {
border-radius: 5px;
width: 450px;
height: 35px;
margin-top: -10px;
border: 1px solid rgb(135, 130, 130);
}
#address {
height: 80px;
}
button {
margin-top: 20px;
}
#button1 {
background-color: cornflowerblue;
border: none;
color: white;
height: 30px;
}
#button2 {
background-color: rgb(164, 189, 236);
border: none;
color: white;
height: 30px;
}
hr {
margin-top: 30px;
}
#taxji {
width: 220px;
border-radius: 5px;
}
#tax {
display: flex;
justify-content: space-between;
}
</style>
<link rel="stylesheet" href="Sidebar/sidebar.css" />
<body>
<div id="sidebarBox">
<div id="img-fr-sb">
<img
id="logo-sq"
src="https://icon-library.com/images/256-256-ed559f9ab4ee6cec08ffde71c58a68af-grid.png"
alt=""
/>
<img
src="https://app.myhours.com/assets/myhours_app_logo_icon.svg"
alt=""
/>
</div>
<div style="background-color: #f8f9fa" id="to-scroll">
<div id="accmainbox">
<div class="mainaccordin">
<div class="conBoxes">
<div class="labelbox t-p-h-a">
<a class="fb-aws-n-tx" href=""
><i class="fa-solid fa-stopwatch"></i> Track</a
>
</div>
<div class="labelbox t-p-h-a">
<a class="fb-aws-n-tx" href="./projects.html"
><i class="fa-solid fa-briefcase"></i
> Project</a
>
</div>
<div class="fb-aws-n-tx labelbox">
<span fb-aws-span
><i class="fa-solid fa-chart-column"></i
> Report</span
>
<img
src="https://cdn-icons-png.flaticon.com/512/25/25623.png"
alt="Down Arrow"
/>
<div class="parainsideatag">
<p><a href="">Dashboard</a></p>
<p><a href="">Activity</a></p>
<p><a href="">Team pivot</a></p>
<p><a href="">Economy</a></p>
<p><a href="">Timesheet</a></p>
</div>
</div>
</div>
<div class="conBoxes">
<div class="fb-aws-n-tx labelbox">
<span fb-aws-span
><i class="fa-solid fa-folder"></i
> Clients</span
>
<img
src="https://cdn-icons-png.flaticon.com/512/25/25623.png"
alt="Down Arrow"
/>
</div>
<div class="parainsideatag">
<p><a href="./client.html">Clients</a></p>
<p><a href="">Invoices</a></p>
<p><a href="">Uninvoiced</a></p>
</div>
</div>
<div class="conBoxes">
<div class="fb-aws-n-tx labelbox">
<span fb-aws-span
><i class="fa-solid fa-users"></i> Team</span
>
<img
id="team-arrow-img"
src="https://cdn-icons-png.flaticon.com/512/25/25623.png"
alt="Down Arrow"
/>
</div>
<div class="parainsideatag">
<p><a href="./team.html">Team members</a></p>
<p><a href="./team.html">Teams</a></p>
</div>
</div>
</div>
</div>
<div id="protrailexpire">
<p>Pro trial expires in 13 days.</p>
<a href="./Upgrade(Dashboard)/upgrade.html">Keep/leave the Pro</a>
</div>
<div style="background-color: #f8f9fa" id="helpApps">
<div class="labelbox t-p-h-a">
<a class="fb-aws-n-tx" href="./Help.html"
><i class="fa-solid fa-circle-question"></i
> Help</a
>
</div>
<div class="labelbox t-p-h-a">
<a class="fb-aws-n-tx" href="/Apps/Apps.html"
><i class="fa-solid fa-mobile-button"></i
> Apps</a
>
</div>
<div class="labelbox">
<a class="fb-aws-n-tx" href="./whatnew.html"
><i class="fa-solid fa-bell"></i> What's new</a
>
</div>
<div class="mainaccordin">
<div class="conBoxes">
<div class="m-p-z-f-p fb-aws-n-tx labelbox">
<span class="fb-aws-span"
><i class="fa-solid fa-user"></i> <span
onclick="profile()"
id="name-profile"
>Profile</span
></span
>
<img
id="p-n-img-log"
src="https://cdn-icons-png.flaticon.com/512/25/25623.png"
alt="Down Arrow"
/>
</div>
<div class="parainsideatag">
<p><a href="">Company</a></p>
<p><a href="">Account Admin</a></p>
<p><a href="">Subscription</a></p>
<hr />
<p onclick="profileSignout()"><a href="">Signout</a></p>
<p><a href="">Profile</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="new_client">
<p id="heading1">New Client</p>
<p>NAME</p>
<input type="text" id="name" />
<p>CONTACT PERSON</p>
<input type="text" id="contact" />
<p>EMAIL</p>
<input type="text" id="email" />
<p>PHONE</p>
<input type="text" id="phone" />
<p>ADDRESS</p>
<input type="text" id="address" />
<hr />
<div id="tax">
<div>
<p>TAX NUMBER</p>
<input type="text" id="taxji" />
</div>
<div>
<p>TAX PERCENTAGE</p>
<input type="number" id="taxji" />
</div>
</div>
<p>TAX NUMBER</p>
<input type="text" />
<div>
<button id="button1" onclick="savadata()">SAVE</button>
<a href="client.html"> <button id="button2">CANCEL</button></a>
</div>
</div>
</body>
</html>
<script>
//let arr=JSON.parse(localStorage.getItem("dataclient"))||[]
function savadata() {
event.preventDefault();
console.log(1);
let obj1 = {
name: document.getElementById("name").value,
contact: document.getElementById("contact").value,
email: document.getElementById("email").value,
};
let arr = JSON.parse(localStorage.getItem("dataclient")) || [];
arr.push(obj1);
console.log(arr);
localStorage.setItem("dataclient", JSON.stringify(arr));
window.location.href = "client.html";
}
</script>