forked from FarmBuddy2023/FarmBuddy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.js
More file actions
41 lines (37 loc) · 1.45 KB
/
profile.js
File metadata and controls
41 lines (37 loc) · 1.45 KB
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
const refund = document.querySelector('#refund');
const data = document.querySelector('#data');
const review = document.querySelector('#review');
const order = document.querySelector('#order');
refund.addEventListener('click', (e) => {
e.preventDefault();
data.innerHTML = '<h1 class="text-center text-danger">No Refund Available!</h1>';
data.classList.add("pb-5");
});
review.addEventListener('click', (e) => {
e.preventDefault();
data.innerHTML = '<p class="text-center text-secondary-emphasis">~"Excellent quality and taste of fresh, vibrant veggies with a good variety and neat packaging. Highly recommend this vendor from my recent order."</p>';
data.classList.add("pb-5");
});
order.addEventListener('click', (e) => {
e.preventDefault();
data.innerHTML = `<div class="card ">
<div class="textBox">
<div class="textContent">
<p class="h1">Order Status</p>
<span class="span">delivered by <br>30th may,2023</span>
</div>
<p class="p">Shipment In-Transit</p>
<div>
</div></div></div>`;
data.classList.add("pb-5");
});
const head = document.querySelector('header')
head.style.display ='none'
const lod = document.querySelector('#lod')
lod.style.display ='none'
window.addEventListener('load', function() {
var loader = document.querySelector('.spinnerContainer');
loader.style.display = 'none';
head.style.display = 'flex'
lod.style.display = 'block'
});