-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
101 lines (96 loc) · 4.11 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<title>Shop NoW</title>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<h1 style="text-align: center;">Shop NoW</h1>
<div id="left" style="text-align: center; overflow-y: scroll;">
<button id="myOrders" onclick="initMyOrders()">My Orders<i class="fa fa-user-circle"></i></button>
<button id="modal-btn" style="margin-left: 20px;">SignUp</a><i class="fa fa-user-plus"></i></button>
<button style="margin-left: 20px; color: white;"><a href="./Seller/indexs.html">Switch To Seller</a><i
class="fa fa-user-plus"></i></button>
<div style="text-align: center; margin:1px;">
<input type="text" id="cancelProductId" class="example" placeholder="Enter ProductId..." name="search1"
style="width:90px">
<input type="text" id="cancelPurchaseId" class="example" placeholder="Enter PurchaseId..." name="search2"
style="width:90px">
<button id="cancelOrder" style="width:60px">Cancel Order</button>
</div>
<div class="modal">
<div class="modal-content">
<span class="close-btn">×</span>
<div id="center" style="text-align: center;">
<form>
<div class="container">
<h1>Register</h1>
<p>Please fill in this form to create an account.</p>
<hr>
<div style="text-align: center;">
<label for="name"><b>Name</b></label>
<input type="text" id="name" placeholder="Enter Your Name.." required>
</div>
<div style="text-align: center;">
<label for="address"><b>Email Address</b></label>
<input type="text" id="email" placeholder="[email protected]." required>
</div>
<div style="text-align: center;">
<label for="about"><b>Delivery Address</b></label>
<input type="text" id="deliveryAddress" placeholder="Enter Your Preferd Delivery Address.." required>
<hr>
<p>By creating an account you agree to our <a href="#">Terms & Privacy</a>.</p>
</div>
<div style="text-align: center;">
<button id="createAccount" class="registerbtn">Register</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div id="allOrders" style="text-align: center;"></div>
</div>
<div id="main" style="overflow-y:scroll;">
<div style=" text-align: center;">
<div style="text-align: center;">
<button id="productListings" onclick="initProducts()">Products</button>
</div>
<div style="text-align: center; margin:1px;">
<input type="text" id="buyProductId" class="example" placeholder="Enter ProductId.." name="search2"
style="width:12%">
<input type="text" id="buyAmount" class="example" placeholder="Confirm Amount.." name="search2"
style="width:8%">
<button id="buyProduct" style="width:60px;">Buy</button>
</div>
</br>
<div id="allProducts" style="text-align:center;"></div>
</div>
</div>
<div id="log" style="text-align: center;"></div>
<script>
let modalBtn = document.getElementById("modal-btn");
let modal = document.querySelector(".modal");
let closeBtn = document.querySelector(".close-btn");
modalBtn.onclick = function () {
modal.style.display = "block";
};
closeBtn.onclick = function () {
modal.style.display = "none";
};
window.onclick = function (e) {
if (e.target == modal) {
modal.style.display = "none";
}
}
</script>
<script src="web3.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="index.js"></script>
<footer style="text-align: right;">
<h6>© Salman Dabbakuti </h6>
</footer>
</body>
</html>