Spaces:
Running
Running
Download index.html from yking21/Super_Lead_generation: direct link, hf CLI and curl.
- Browser
- Download file 2.5 kB
-
https://huggingface.co/spaces/yking21/Super_Lead_generation/resolve/main/index.html
- Command line
-
hf download hf://spaces/yking21/Super_Lead_generation/index.html
-
curl -L -o index.html https://huggingface.co/spaces/yking21/Super_Lead_generation/resolve/main/index.html
2.5 kB
| <html lang="ar" dir="rtl"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>البحث عن الأنشطة</title> | |
| <style> | |
| body { font-family: Tahoma; background: #f4f7f6; padding: 50px; display: flex; justify-content: center; } | |
| .box { background: #fff; padding: 30px; border-radius: 8px; width: 400px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } | |
| input, select { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } | |
| button { width: 100%; padding: 12px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; } | |
| #msg { text-align: center; margin-top: 10px; font-weight: bold; } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="box"> | |
| <h3>البحث عن نشاط</h3> | |
| <iframe name="hidden_frame" id="hidden_frame" style="display:none;" onload="done()"></iframe> | |
| <form id="myForm" action="https://ykingai.rooyai.com/webhook/ffadeed0-9100-46ae-b89c-4f4fab0e4204" method="GET" target="hidden_frame"> | |
| <label>النشاط:</label> | |
| <input type="text" name="activity" required> | |
| <label>المكان:</label> | |
| <input type="text" name="location" required> | |
| <label>النطاق:</label> | |
| <select name="scope" id="scope" onchange="chg()"> | |
| <option value="neighborhood">حي (16 كم)</option> | |
| <option value="city">مدينة (10 كم)</option> | |
| </select> | |
| <label>المسافة:</label> | |
| <input type="number" name="distance" id="dist" value="16" required> | |
| <button type="submit">إرسال</button> | |
| </form> | |
| <div id="msg"></div> | |
| </div> | |
| <script> | |
| function chg() { | |
| let s = document.getElementById('scope').value; | |
| document.getElementById('dist').value = (s === 'neighborhood') ? 16 : 10; | |
| } | |
| let sent = false; | |
| document.getElementById('myForm').onsubmit = function() { | |
| sent = true; | |
| document.getElementById('msg').style.color = '#555'; | |
| document.getElementById('msg').innerText = 'جاري الإرسال...'; | |
| } | |
| function done() { | |
| if(sent) { | |
| document.getElementById('msg').style.color = 'green'; | |
| document.getElementById('msg').innerText = 'تم الإرسال بنجاح!'; | |
| document.getElementById('myForm').reset(); | |
| chg(); | |
| sent = false; | |
| } | |
| } | |
| </script> | |
| </body> | |
| </html> |