-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathliveresult.html
More file actions
153 lines (146 loc) · 5.02 KB
/
liveresult.html
File metadata and controls
153 lines (146 loc) · 5.02 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="hi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Live Number Results</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
background: #f0f2f5;
color: #333;
line-height: 1.6;
}
header {
background: linear-gradient(135deg, #1e3c72, #2a5298);
color: white;
text-align: center;
padding: 1.5rem 0;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.container {
max-width: 800px;
margin: 2rem auto;
padding: 0 1rem;
}
.card {
background: white;
border-radius: 10px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
th, td {
padding: 12px 15px;
text-align: center;
border: 1px solid #ddd;
}
th {
background-color: #1e3c72;
color: white;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
.whatsapp-btn {
background: #25D366;
color: white;
border: none;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.update-time {
text-align: right;
font-size: 0.9rem;
color: #666;
margin-bottom: 1rem;
}
@media (max-width: 600px) {
th, td { padding: 8px; }
}
</style>
</head>
<body>
<header>
<h1>Live Number Results</h1>
<p>रियल टाइम अपडेट्स</p>
</header>
<div class="container">
<div class="card">
<div class="update-time" id="updateTime">
अंतिम अपडेट: <span id="time">लोड हो रहा है...</span>
</div>
<table>
<thead>
<tr>
<th>शहर</th>
<th>मॉर्निंग</th>
<th>इवनिंग</th>
<th>समय</th>
<th>व्हाट्सएप</th>
</tr>
</thead>
<tbody id="resultsBody">
<!-- डेटा यहाँ लोड होगा -->
</tbody>
</table>
</div>
</div>
<script>
// रिजल्ट डेटा (आप इसे बदल सकते हैं)
const results = [
{ city: "फरीदाबाद", morning: "240", evening: "580", time: "11:30 AM" },
{ city: "गाजियाबाद", morning: "120", evening: "350", time: "12:30 PM" },
{ city: "गली", morning: "380", evening: "190", time: "5:15 PM" },
{ city: "देसावर", morning: "450", evening: "210", time: "6:45 PM" }
];
// पेज लोड होने पर
window.onload = function() {
loadResults();
setInterval(loadResults, 300000); // हर 5 मिनट में अपडेट
};
// रिजल्ट लोड करें
function loadResults() {
let html = '';
results.forEach(item => {
html += `
<tr>
<td>${item.city}</td>
<td>${item.morning}</td>
<td>${item.evening}</td>
<td>${item.time}</td>
<td>
<button class="whatsapp-btn"
onclick="sendWhatsApp('${item.city} का रिजल्ट चाहिए')">
मैसेज करें
</button>
</td>
</tr>
`;
});
document.getElementById('resultsBody').innerHTML = html;
// अपडेट समय सेट करें
const now = new Date();
document.getElementById('time').textContent =
`${now.toLocaleTimeString()} (${now.toLocaleDateString()})`;
}
// व्हाट्सएप मैसेज भेजें
function sendWhatsApp(message) {
const phone = "919876543210"; // यहाँ अपना WhatsApp नंबर डालें (country code के बिना)
window.open(`https://wa.me/91${phone}?text=${encodeURIComponent(message)}`, '_blank');
}
</script>
</body>
</html>