Download index.html from dr770/ddddd: direct link, hf CLI and curl.
- Browser
- Download file 25.6 kB
-
https://huggingface.co/spaces/dr770/ddddd/resolve/main/index.html
- Command line
-
hf download hf://spaces/dr770/ddddd/index.html
-
curl -L -o index.html https://huggingface.co/spaces/dr770/ddddd/resolve/main/index.html
25.6 kB
| <html lang="he" dir="rtl"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>הקו הלבן | הזמנה דיסקרטית</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap'); | |
| body { | |
| font-family: 'Arial', sans-serif; | |
| background-color: #000; | |
| color: #fff; | |
| } | |
| .hebrew-font { | |
| font-family: 'Arial Hebrew', Arial, sans-serif; | |
| } | |
| .latin-font { | |
| font-family: 'Playfair Display', serif; | |
| } | |
| .gold-text { | |
| color: #FFD700; | |
| text-shadow: 0 0 5px rgba(255, 215, 0, 0.7); | |
| } | |
| .neon-glow { | |
| box-shadow: 0 0 10px rgba(0, 191, 255, 0.7); | |
| } | |
| .neon-glow:hover { | |
| box-shadow: 0 0 20px rgba(0, 191, 255, 0.9); | |
| } | |
| .product-card { | |
| border: 1px solid #4b5563; | |
| transition: all 0.3s ease; | |
| } | |
| .product-card:hover { | |
| border-color: #60a5fa; | |
| transform: translateY(-5px); | |
| } | |
| .btn-primary { | |
| background: linear-gradient(135deg, #8B0000 0%, #4B0082 100%); | |
| border: 1px solid #1E90FF; | |
| } | |
| .btn-primary:hover { | |
| background: linear-gradient(135deg, #A52A2A 0%, #6A5ACD 100%); | |
| } | |
| .modal-overlay { | |
| background-color: rgba(0, 0, 0, 0.8); | |
| } | |
| .cart-modal { | |
| border: 1px solid #FFD700; | |
| box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); | |
| } | |
| @keyframes pulse { | |
| 0% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.7); } | |
| 50% { box-shadow: 0 0 20px rgba(0, 191, 255, 0.9); } | |
| 100% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.7); } | |
| } | |
| .pulse-animation { | |
| animation: pulse 2s infinite; | |
| } | |
| </style> | |
| </head> | |
| <body class="hebrew-font"> | |
| <!-- Header Section --> | |
| <header class="py-8 px-4 text-center"> | |
| <h1 class="text-4xl md:text-5xl latin-font gold-text mb-4">הקו הלבן</h1> | |
| <p class="text-xl text-gray-300 mb-8">דייסקרטיות. איכות. שליטה.</p> | |
| <button id="startOrderBtn" class="btn-primary text-white font-bold py-3 px-8 rounded-full neon-glow pulse-animation text-lg"> | |
| התחל הזממנה | |
| </button> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 pb-20"> | |
| <!-- Product Categories --> | |
| <section id="productCategories" class="hidden"> | |
| <h2 class="text-2xl latin-font gold-text mb-6 text-center">בחר קטגוריה</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <!-- Cocaine --> | |
| <div class="product-card p-6 rounded-lg bg-gray-900"> | |
| <h3 class="text-xl latin-font gold-text mb-4">קוקוקאין</h3> | |
| <div class="grid grid-cols-1 gap-3"> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="קוקאין" data-amount="1 גרם" data-price="600"> | |
| 1 גרם – ₪600 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="קוקאין" data-amount="3 גרם" data-price="1500"> | |
| 3 גרם – ₪1500 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="קוקוקאין" data-amount="5 גרם" data-price="2200"> | |
| 5 גרם – ₪2200 | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Cooked --> | |
| <div class="product-card p-6 rounded-lg bg-gray-900"> | |
| <h3 class="text-xl latin-font gold-text mb-4">מבושל</h3> | |
| <div class="grid grid-cols-1 gap-3"> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="ממבושל" data-amount="1 יחידה" data-price="600"> | |
| 1 יחידה – ₪600 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="ממבושל" data-amount="2 יחידות" data-price="1100"> | |
| 2 יחידות – ₪1100 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="מבושל" data-amount="5 יחידות" data-price="2200"> | |
| 5 יחידות – ₪2200 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="ממבושל" data-amount="10 יחידות" data-price="4000"> | |
| 10 יחידות – ₪4000 | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Dosa --> | |
| <div class="product-card p-6 rounded-lg bg-gray-900"> | |
| <h3 class="text-xl latin-font gold-text mb-4">דוסה (פסיכדליים)</h3> | |
| <div class="grid grid-cols-1 gap-3"> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="דוסה" data-amount="2 יחידות" data-price="500"> | |
| 2 יחידות – ₪500 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="דוסה" data-amount="5 יחידות" data-price="1000"> | |
| 5 יחידות – ₪1000 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="דוסה" data-amount="10 יחידות" data-price="1600"> | |
| 10 יחידות – ₪1600 | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Doctor --> | |
| <div class="product-card p-6 rounded-lg bg-gray-900"> | |
| <h3 class="text-xl latin-font gold-text mb-4">דווקטור</h3> | |
| <div class="grid grid-cols-1 gap-3"> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="דוקטור" data-amount="2 יחידות" data-price="500"> | |
| 2 יחידות – ₪500 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="דווקטור" data-amount="5 יחידות" data-price="1000"> | |
| 5 יחידות – ₪1000 | |
| </button> | |
| <button class="product-btn bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded border border-blue-400 neon-glow" | |
| data-product="דוקטור" data-amount="10 יחידות" data-price="1600"> | |
| 10 יחידות – ₪1600 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Order Form (Hidden by default) --> | |
| <section id="orderForm" class="hidden max-w-md mx-auto"> | |
| <h2 class="text-2xl latin-font gold-text mb-6 text-center">פרטי הזמנה</h2> | |
| <form id="checkoutForm" class="space-y-4"> | |
| <div> | |
| <label for="fullName" class="block text-gray-300 mb-2">שם מלא</label> | |
| <input type="text" id="fullName" required class="w-full bg-gray-800 border border-gray-700 rounded py-2 px-4 text-white focus:outline-none focus:border-blue-400"> | |
| </div> | |
| <div> | |
| <label for="phone" class="block text-gray-300 mb-2">טלפון</label> | |
| <input type="tel" id="phone" required class="w-full bg-gray-800 border border-gray-700 rounded py-2 px-4 text-white focus:outline-none focus:border-blue-400" placeholder="05X-XXXXXXX"> | |
| </div> | |
| <div> | |
| <label for="address" class="block text-gray-300 mb-2">כתובת</label> | |
| <input type="text" id="address" required class="w-full bg-gray-800 border border-gray-700 rounded py-2 px-4 text-white focus:outline-none focus:border-blue-400" placeholder="לדוגמה: תל אביב - מזרח"> | |
| </div> | |
| <div> | |
| <p class="block text-gray-300 mb-2">העדפת תקשורת</p> | |
| <div class="flex space-x-4 space-x-reverse"> | |
| <div class="flex items-center"> | |
| <input type="radio" id="telegram" name="communication" value="telegram" checked class="mr-2"> | |
| <label for="telegram" class="text-gray-300">טלגרם</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="radio" id="whatsapp" name="communication" value="whatsapp" class="mr-2"> | |
| <label for="whatsapp" class="text-gray-300">וואטסאפ</label> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="pt-4"> | |
| <button type="submit" class="btn-primary w-full text-white font-bold py-3 px-4 rounded neon-glow"> | |
| שלח הזממנה | |
| </button> | |
| </div> | |
| </form> | |
| </section> | |
| </main> | |
| <!-- Floating Cart Button --> | |
| <button id="cartBtn" class="fixed bottom-6 left-6 bg-gray-900 text-white p-4 rounded-full border border-blue-400 neon-glow hidden"> | |
| <i class="fas fa-shopping-cart text-xl"></i> | |
| <span id="cartCount" class="absolute -top-2 -right-2 bg-red-500 text-white text-xs font-bold rounded-full h-6 w-6 flex items-center justify-center">0</span> | |
| </button> | |
| <!-- Cart Modal --> | |
| <div id="cartModal" class="fixed inset-0 z-50 flex items-center justify-center modal-overlay hidden"> | |
| <div class="cart-modal bg-gray-900 rounded-lg p-6 w-full max-w-md mx-4"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl latin-font gold-text">עגלת קניות</h3> | |
| <button id="closeCartBtn" class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div id="cartItems" class="max-h-96 overflow-y-auto mb-4"> | |
| <!-- Cart items will be added here dynamically --> | |
| <p id="emptyCartMsg" class="text-gray-400 text-center py-4">העגלה ריקה</p> | |
| </div> | |
| <div class="border-t border-gray-700 pt-4"> | |
| <div class="flex justify-between mb-4"> | |
| <span class="text-gray-300">סה"כ:</span> | |
| <span id="cartTotal" class="text-xl gold-text">₪0</span> | |
| </div> | |
| <button id="checkoutBtn" class="btn-primary w-full text-white font-bold py-2 px-4 rounded neon-glow"> | |
| המשך להזמנה | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Success Modal --> | |
| <div id="successModal" class="fixed inset-0 z-50 flex items-center justify-center modal-overlay hidden"> | |
| <div class="bg-gray-900 rounded-lg p-6 w-full max-w-md mx-4 text-center border border-green-500"> | |
| <div class="text-green-500 text-5xl mb-4"> | |
| <i class="fas fa-check-circle"></i> | |
| </div> | |
| <h3 class="text-xl latin-font gold-text mb-2">ההזמנה נשלחה בהצלחה!</h3> | |
| <p class="text-gray-300 mb-4">ניצור איתך קשר בהקדם דרך הערוץ שבחרת.</p> | |
| <p id="contactLink" class="text-blue-400 mb-4"></p> | |
| <button id="closeSuccessModal" class="bg-gray-800 hover:bg-gray-700 text-white py-2 px-6 rounded border border-blue-400 neon-glow"> | |
| ס סגור | |
| </button> | |
| </div> | |
| </div> | |
| <script> | |
| // Cart functionality | |
| let cart = []; | |
| // DOM Elements | |
| const startOrderBtn = document.getElementById('startOrderBtn'); | |
| const productCategories = document.getElementById('productCategories'); | |
| const orderForm = document.getElementById('orderForm'); | |
| const cartBtn = document.getElementById('cartBtn'); | |
| const cartCount = document.getElementById('cartCount'); | |
| const cartModal = document.getElementById('cartModal'); | |
| const closeCartBtn = document.getElementById('closeCartBtn'); | |
| const cartItems = document.getElementById('cartItems'); | |
| const emptyCartMsg = document.getElementById('emptyCartMsg'); | |
| const cartTotal = document.getElementById('cartTotal'); | |
| const checkoutBtn = document.getElementById('checkoutBtn'); | |
| const checkoutForm = document.getElementById('checkoutForm'); | |
| const successModal = document.getElementById('successModal'); | |
| const closeSuccessModal = document.getElementById('closeSuccessModal'); | |
| const contactLink = document.getElementById('contactLink'); | |
| // Product buttons | |
| const productBtns = document.querySelectorAll('.product-btn'); | |
| // Event Listeners | |
| startOrderBtn.addEventListener('click', () => { | |
| productCategories.classList.remove('hidden'); | |
| startOrderBtn.classList.add('hidden'); | |
| cartBtn.classList.remove('hidden'); | |
| }); | |
| cartBtn.addEventListener('click', () => { | |
| cartModal.classList.remove('hidden'); | |
| updateCartModal(); | |
| }); | |
| closeCartBtn.addEventListener('click', () => { | |
| cartModal.classList.add('hidden'); | |
| }); | |
| checkoutBtn.addEventListener('click', () => { | |
| cartModal.classList.add('hidden'); | |
| productCategories.classList.add('hidden'); | |
| orderForm.classList.remove('hidden'); | |
| }); | |
| closeSuccessModal.addEventListener('click', () => { | |
| successModal.classList.add('hidden'); | |
| // Reset the flow | |
| orderForm.classList.add('hidden'); | |
| productCategories.classList.add('hidden'); | |
| startOrderBtn.classList.remove('hidden'); | |
| cart = []; | |
| updateCart(); | |
| }); | |
| // Add products to cart | |
| productBtns.forEach(btn => { | |
| btn.addEventListener('click', () => { | |
| const product = btn.dataset.product; | |
| const amount = btn.dataset.amount; | |
| const price = parseInt(btn.dataset.price); | |
| // Check if product already exists in cart | |
| const existingItem = cart.find(item => | |
| item.product === product && item.amount === amount | |
| ); | |
| if (existingItem) { | |
| existingItem.quantity += 1; | |
| } else { | |
| cart.push({ | |
| product, | |
| amount, | |
| price, | |
| quantity: 1 | |
| }); | |
| } | |
| updateCart(); | |
| // Show cart modal when adding first item | |
| if (cart.length === 1) { | |
| cartModal.classList.remove('hidden'); | |
| updateCartModal(); | |
| } | |
| }); | |
| }); | |
| // Form submission | |
| checkoutForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| const fullName = document.getElementById('fullName').value; | |
| const phone = document.getElementById('phone').value; | |
| const address = document.getElementById('address').value; | |
| const communication = document.querySelector('input[name="communication"]:checked').value; | |
| // Validate phone number (simple Israeli format check) | |
| if (!/^05\d-?\d{7}$/.test(phone)) { | |
| alert('מספר הטלפון אינו תקין. אנ אנא הזן מספר ישראלי תקין (לדוגמה: 052-1234567)'); | |
| return; | |
| } | |
| // Format phone for links | |
| const formattedPhone = phone.replace(/-/g, ''); | |
| const internationalPhone = `972${formattedPhone.substring(1)}`; | |
| // Generate order message | |
| let orderMessage = `📥 הזמנה חדשה\n\n`; | |
| orderMessage += `שם: ${fullName}\n`; | |
| orderMessage += `טללפון: ${phone}\n`; | |
| orderMessage += `כתוובת: ${address}\n\n`; | |
| orderMessage += `🧾 מו מוצרים:\n`; | |
| cart.forEach(item => { | |
| orderMessage += `- ${item.product} ${item.amount} – ₪${item.price * item.quantity}\n`; | |
| }); | |
| const total = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0); | |
| orderMessage += `\nסה"כ לת לתשלום: ₪${total}\n`; | |
| orderMessage += `ההעדפה: ${communication === 'telegram' ? 'טלגרם' : 'וואטסאפ'}\n`; | |
| // Generate contact link based on preference | |
| let link; | |
| if (communication === 'telegram') { | |
| link = `https://t.me/+${internationalPhone}`; | |
| orderMessage += `קישור: ${link}`; | |
| } else { | |
| link = `https://wa.me/${internationalPhone}`; | |
| orderMessage += `קישור: ${link}`; | |
| } | |
| // Send order to Telegram bot | |
| const botToken = '7843978096:AAEUFbN50jDn0k1IJErqYmZ9hM22L8J3woc'; | |
| const chatId = '4943695366'; // Your chat ID | |
| const telegramUrl = `https://api.telegram.org/bot${botToken}/sendMessage`; | |
| fetch(telegramUrl, { | |
| method: 'POST', | |
| headers: { | |
| 'Content-Type': 'application/json', | |
| }, | |
| body: JSON.stringify({ | |
| chat_id: chatId, | |
| text: orderMessage | |
| }) | |
| }) | |
| .then(response => response.json()) | |
| .then(data => { | |
| console.log('Message sent to Telegram:', data); | |
| }) | |
| .catch(error => { | |
| console.error('Error sending to Telegram:', error); | |
| }); | |
| // Show success message with appropriate contact link | |
| contactLink.innerHTML = communication === 'telegram' | |
| ? `ללחץ <a href="${link}" target="_blank" class="underline">ככאן</a> כדי ל לפתוח את הטלגרם` | |
| : `לחץ <a href="${link}" target="_blank" class="underline">ככאן</a> כדי ל לפתוח את הוואואטסאפ`; | |
| orderForm.classList.add('hidden'); | |
| successModal.classList.remove('hidden'); | |
| }); | |
| // Update cart count | |
| function updateCart() { | |
| const totalItems = cart.reduce((sum, item) => sum + item.quantity, 0); | |
| cartCount.textContent = totalItems; | |
| if (totalItems > 0) { | |
| cartBtn.classList.remove('hidden'); | |
| } else { | |
| cartBtn.classList.add('hidden'); | |
| } | |
| } | |
| // Update cart modal content | |
| function updateCartModal() { | |
| if (cart.length === 0) { | |
| emptyCartMsg.classList.remove('hidden'); | |
| cartItems.innerHTML = ''; | |
| cartTotal.textContent = '₪0'; | |
| checkoutBtn.disabled = true; | |
| return; | |
| } | |
| emptyCartMsg.classList.add('hidden'); | |
| checkoutBtn.disabled = false; | |
| let itemsHTML = ''; | |
| let total = 0; | |
| cart.forEach((item, index) => { | |
| const itemTotal = item.price * item.quantity; | |
| total += itemTotal; | |
| itemsHTML += ` | |
| <div class="flex justify-between items-center py-3 border-b border-gray-800"> | |
| <div> | |
| <h4 class="text-gray-200">${item.product} ${item.amount}</h4> | |
| <p class="text-gray-400 text-sm">₪${item.price} ליחידה</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <button class="decrease-btn text-gray-400 hover:text-white px-2" data-index="${index}"> | |
| <i class="fas fa-minus"></i> | |
| </button> | |
| <span class="mx-2 text-gray-200">${item.quantity}</span> | |
| <button class="increase-btn text-gray-400 hover:text-white px-2" data-index="${index}"> | |
| <i class="fas fa-plus"></i> | |
| </button> | |
| <span class="ml-4 text-gray-200 w-16 text-right">₪${itemTotal}</span> | |
| <button class="remove-btn text-red-400 hover:text-red-300 ml-2" data-index="${index}"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| `; | |
| }); | |
| cartItems.innerHTML = itemsHTML; | |
| cartTotal.textContent = `₪${total}`; | |
| // Add event listeners to the new buttons | |
| document.querySelectorAll('.decrease-btn').forEach(btn => { | |
| btn.addEventListener('click', (e) => { | |
| const index = parseInt(e.target.closest('button').dataset.index); | |
| if (cart[index].quantity > 1) { | |
| cart[index].quantity -= 1; | |
| } else { | |
| cart.splice(index, 1); | |
| } | |
| updateCart(); | |
| updateCartModal(); | |
| }); | |
| }); | |
| document.querySelectorAll('.increase-btn').forEach(btn => { | |
| btn.addEventListener('click', (e) => { | |
| const index = parseInt(e.target.closest('button').dataset.index); | |
| cart[index].quantity += 1; | |
| updateCart(); | |
| updateCartModal(); | |
| }); | |
| }); | |
| document.querySelectorAll('.remove-btn').forEach(btn => { | |
| btn.addEventListener('click', (e) => { | |
| const index = parseInt(e.target.closest('button').dataset.index); | |
| cart.splice(index, 1); | |
| updateCart(); | |
| updateCartModal(); | |
| }); | |
| }); | |
| } | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=dr770/ddddd" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |