Product Reviews & Order Tracking
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product Reviews & Order Tracking</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
background: #ffeb3b;
color: #333;
}
.container {
max-width: 800px;
margin: auto;
background: #ffffff;
padding: 20px;
border-radius: 15px;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}
h2 {
color: #ff4081;
}
button {
background: #ffffff;
color: black;
padding: 12px 20px;
border: 2px solid black;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin-top: 10px;
display: block;
width: 100%;
}
button:hover {
background: #f1f1f1;
}
.hidden {
display: none;
}
.content-box {
margin-top: 20px;
padding: 15px;
background: #f9f9f9;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="container">
<h2>🔍 Product Video Search</h2>
<button onclick="toggleSection('videoSearchSection', 'https://cse.google.com/cse?cx=YOUR_CSE_ID&q=')">Search for Product Videos</button>
<div id="videoSearchSection" class="content-box hidden"></div>
<h2>⭐ Product Reviews Search</h2>
<button onclick="toggleSection('reviewSearchSection', 'https://www.google.com/search?q=REPLACE_WITH_PRODUCT_NAME+review')">Search for Product Reviews</button>
<div id="reviewSearchSection" class="content-box hidden"></div>
<h2>🚚 Order Tracking</h2>
<button onclick="toggleSection('trackingSection', 'form')">Track Your Order</button>
<div id="trackingSection" class="content-box hidden">
<form action="https://YOUR_SHOPIFY_STORE.com/apps/track123" method="get">
<input type="text" name="tracking_number" placeholder="Enter tracking number" required>
<button type="submit">🔍 Track Order</button>
</form>
</div>
</div>
<script>
function toggleSection(sectionId, contentUrl) {
let section = document.getElementById(sectionId);
let sections = ['videoSearchSection', 'reviewSearchSection', 'trackingSection'];
sections.forEach(id => {
if (id !== sectionId) {
document.getElementById(id).classList.add("hidden");
}
});
if (section.classList.contains("hidden")) {
section.classList.remove("hidden");
if (!section.innerHTML.trim()) {
if (contentUrl === 'form') return;
section.innerHTML = `<iframe src="${contentUrl}" width="100%" height="400"></iframe>`;
}
} else {
section.classList.add("hidden");
}
}
</script>
</body>
</html>
