-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordpress.html
110 lines (97 loc) · 3.43 KB
/
wordpress.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
<!--
https://securitytalent.net
- https://t.me/Securi3yTalent
- https://www.facebook.com/Securi3ytalent/
- https://x.com/Securi3yTalent
- Hire Freelance Developers WhatsApp: 01960995649
-->
<title>Pathao Tracking</title>
<style>
#containerrr {
max-width: 600px;
margin: 100px auto;
background-color: white;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
#h1_tag{
text-align: center;
margin-bottom: 20px;
}
#trackingForm label {
font-size: 14px;
display: block;
margin-bottom: 6px;
}
#trackingForm input[type="text"] {
width: 100%;
padding: 10px;
margin: 10px 0 20px 0;
border: 1px solid #ddd;
border-radius: 4px;
}
#trackingForm input[type="submit"] {
width: 100%;
padding: 10px;
background-color: #387478;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
#trackingForm input[type="submit"]:hover {
background-color: #387478;
}
#result {
margin-top: 20px;
padding: 15px;
background-color: #f9f9f9;
border: 1px solid #ddd;
display: none; /* Initially hidden */
}
#result a {
color: #4CAF50;
text-decoration: none;
}
#result a:hover {
text-decoration: underline;
}
#containerrr a img{
display: block;
margin: auto;
}
</style>
<div id="containerrr">
<a href="#"><img src="https://pathao.com/bn/wp-content/uploads/sites/6/2019/02/Pathao_Logo-.svg" alt=""></a>
<h1 id="h1_tag">Track Your Pathao Consignment</h1>
<form id="trackingForm">
<label for="ID">Consignment ID:</label>
<input type="text" id="ID" name="ID" placeholder="Enter Consignment ID" required>
<label for="phone_number">Phone Number:</label>
<input type="text" id="phone_number" name="phone_number" placeholder="Enter Phone Number" required>
<input type="submit" value="Track">
</form>
<!-- Section to display result -->
<div id="result">
<p><strong>Tracking URL:</strong></p>
<a id="trackingLink" href="" target="_blank">Click here to track your consignment</a>
</div>
</div>
<script>
document.getElementById('trackingForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent form submission
// Get the input values
var consignmentID = document.getElementById('ID').value;
var phoneNumber = document.getElementById('phone_number').value;
// Construct the URL
var url = `https://merchant.pathao.com/tracking?consignment_id=${consignmentID}&phone=${phoneNumber}`;
// Show the result section
var resultDiv = document.getElementById('result');
var trackingLink = document.getElementById('trackingLink');
// Set the generated URL as the href of the link
trackingLink.href = url;
// Display the result section
resultDiv.style.display = 'block';
});
</script>