-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewItems.html
62 lines (42 loc) · 1.46 KB
/
newItems.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
<!DOCTYPE html>
<html>
<head>
<title>Add New Item</title>
<meta charset="utf-8">
<link rel="stylesheet" href="styles/menu.css">
</head>
<body>
<nav>
<ul>
<li> <a href="index.html"> Home</a> </li>
<li> <a href="catalog.html">Catalog</a> </li>
<li> <a href="newItems.html">Add New</a></li>
<li> <a href="gallery.html">Gallery</a></li>
<li> <a href="bestSeller.html">Most Liked</a></li>
<li id="login"> <a href="#">Login</a></li>
<ul class="hidden" style="padding-left: 15px;" >
<div>
<li> <input id="loginName" type="text" name="loginName" > </li>
<li> <input id="loginPassword" type="password" name="loginPassword" > </li>
<li> <button onclick="login()" >Login</button> </li>
</div>
</ul>
</ul>
</nav>
<div id="content">
<form onsubmit="addObject(this)">
Name <input type="text" name="Name">
Description <input type="text" name="Description">
Price <input type="number" name="Prize">
ImageUrl <input type="text" name="ImageUrl">
<button onclick="addObject(this.parent)" type="submit" >Kreiraj JSON</button>
<button onclick="addObject(this.parent)" type="button">Kreiraj</button>
</form>
</div>
<div id="output">
</div>
<script src="js/jquery-3.3.1.js"></script>
<!--<script src="js/stuff.js"></script>-->
<script src="js/newItems.js"></script>
</body>
</html>