Download index.html from GemRise/test: direct link, hf CLI and curl.
- Browser
- Download file 29.1 kB
-
https://huggingface.co/spaces/GemRise/test/resolve/main/index.html
- Command line
-
hf download hf://spaces/GemRise/test/index.html
-
curl -L -o index.html https://huggingface.co/spaces/GemRise/test/resolve/main/index.html
29.1 kB
| <html lang="ru"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>R2 Silver Exchange | Торговля серебром в R2 Online</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"> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| .dark { | |
| --bg-primary: #1e293b; | |
| --bg-secondary: #0f172a; | |
| --text-primary: #f8fafc; | |
| --text-secondary: #94a3b8; | |
| --accent: #3b82f6; | |
| --border: #334155; | |
| } | |
| .light { | |
| --bg-primary: #ffffff; | |
| --bg-secondary: #f1f5f9; | |
| --text-primary: #1e293b; | |
| --text-secondary: #64748b; | |
| --accent: #2563eb; | |
| --border: #e2e8f0; | |
| } | |
| body { | |
| background-color: var(--bg-primary); | |
| color: var(--text-primary); | |
| transition: all 0.3s ease; | |
| } | |
| .bg-primary { | |
| background-color: var(--bg-primary); | |
| } | |
| .bg-secondary { | |
| background-color: var(--bg-secondary); | |
| } | |
| .text-primary { | |
| color: var(--text-primary); | |
| } | |
| .text-secondary { | |
| color: var(--text-secondary); | |
| } | |
| .border-primary { | |
| border-color: var(--border); | |
| } | |
| .accent { | |
| color: var(--accent); | |
| } | |
| .order-book .bid-row:hover { | |
| background-color: rgba(22, 163, 74, 0.1); | |
| } | |
| .order-book .ask-row:hover { | |
| background-color: rgba(220, 38, 38, 0.1); | |
| } | |
| .buy-btn { | |
| background-color: #16a34a; | |
| } | |
| .buy-btn:hover { | |
| background-color: #15803d; | |
| } | |
| .sell-btn { | |
| background-color: #dc2626; | |
| } | |
| .sell-btn:hover { | |
| background-color: #b91c1c; | |
| } | |
| .tab-active { | |
| border-bottom: 2px solid var(--accent); | |
| color: var(--accent); | |
| } | |
| @media (max-width: 768px) { | |
| .mobile-hidden { | |
| display: none; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="dark"> | |
| <!-- Header --> | |
| <header class="bg-secondary border-b border-primary sticky top-0 z-50"> | |
| <div class="container mx-auto px-4 py-3 flex justify-between items-center"> | |
| <div class="flex items-center space-x-8"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-coins text-yellow-400 text-2xl mr-2"></i> | |
| <h1 class="text-xl font-bold">R2 Silver Exchange</h1> | |
| </div> | |
| <nav class="hidden md:flex space-x-6"> | |
| <a href="#" class="hover:text-blue-400">Торговля</a> | |
| <a href="#" class="hover:text-blue-400">Рынок</a> | |
| <a href="#" class="hover:text-blue-400">Кошелек</a> | |
| <a href="#" class="hover:text-blue-400">История</a> | |
| <a href="#" class="hover:text-blue-400">Поддержка</a> | |
| </nav> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-700"> | |
| <i class="fas fa-moon"></i> | |
| </button> | |
| <div class="hidden md:flex items-center space-x-2"> | |
| <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center"> | |
| <span class="text-white">U</span> | |
| </div> | |
| <span>User123</span> | |
| </div> | |
| <button class="md:hidden"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 py-6"> | |
| <div class="flex flex-col lg:flex-row gap-6"> | |
| <!-- Left Column --> | |
| <div class="lg:w-3/4"> | |
| <!-- Market Info --> | |
| <div class="bg-secondary rounded-lg p-4 mb-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <div> | |
| <h2 class="text-xl font-bold">R2 Серебро / RUB</h2> | |
| <p class="text-secondary">Объем: 1,245,000 серебра</p> | |
| </div> | |
| <div class="text-right"> | |
| <p class="text-2xl font-bold">0.85 ₽</p> | |
| <p class="text-green-500">+2.4%</p> | |
| </div> | |
| </div> | |
| <!-- Chart --> | |
| <div class="h-64"> | |
| <canvas id="priceChart"></canvas> | |
| </div> | |
| <!-- Tabs --> | |
| <div class="flex border-b border-primary mt-4"> | |
| <button class="tab-btn px-4 py-2 font-medium tab-active" data-tab="trade">Торговля</button> | |
| <button class="tab-btn px-4 py-2 font-medium" data-tab="orders">Мои ордера</button> | |
| <button class="tab-btn px-4 py-2 font-medium" data-tab="history">История</button> | |
| </div> | |
| <!-- Trade Form --> | |
| <div id="trade-tab" class="tab-content mt-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> | |
| <!-- Buy Form --> | |
| <div class="bg-secondary rounded-lg p-4 border border-green-500"> | |
| <h3 class="font-bold mb-4 text-green-500">Купить серебро</h3> | |
| <div class="mb-4"> | |
| <label class="block text-secondary mb-2">Цена (₽)</label> | |
| <input type="number" class="w-full bg-primary border border-primary rounded p-2" placeholder="0.00"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-secondary mb-2">Количество</label> | |
| <input type="number" class="w-full bg-primary border border-primary rounded p-2" placeholder="0"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-secondary mb-2">Итого (₽)</label> | |
| <input type="number" class="w-full bg-primary border border-primary rounded p-2" placeholder="0.00" readonly> | |
| </div> | |
| <button class="buy-btn w-full py-2 rounded text-white font-bold">Купить R2 серебро</button> | |
| </div> | |
| <!-- Sell Form --> | |
| <div class="bg-secondary rounded-lg p-4 border border-red-500"> | |
| <h3 class="font-bold mb-4 text-red-500">Продать серебро</h3> | |
| <div class="mb-4"> | |
| <label class="block text-secondary mb-2">Цена (₽)</label> | |
| <input type="number" class="w-full bg-primary border border-primary rounded p-2" placeholder="0.00"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-secondary mb-2">Количество</label> | |
| <input type="number" class="w-full bg-primary border border-primary rounded p-2" placeholder="0"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-secondary mb-2">Итого (₽)</label> | |
| <input type="number" class="w-full bg-primary border border-primary rounded p-2" placeholder="0.00" readonly> | |
| </div> | |
| <button class="sell-btn w-full py-2 rounded text-white font-bold">Продать R2 серебро</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Orders Tab --> | |
| <div id="orders-tab" class="tab-content mt-4 hidden"> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead> | |
| <tr class="border-b border-primary"> | |
| <th class="text-left py-2">Дата</th> | |
| <th class="text-left py-2">Пара</th> | |
| <th class="text-left py-2">Тип</th> | |
| <th class="text-left py-2">Цена</th> | |
| <th class="text-left py-2">Количество</th> | |
| <th class="text-left py-2">Итого</th> | |
| <th class="text-left py-2">Статус</th> | |
| <th class="text-left py-2">Действие</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr class="border-b border-primary"> | |
| <td class="py-2">12.05.2023</td> | |
| <td class="py-2">R2S/RUB</td> | |
| <td class="text-green-500 py-2">Покупка</td> | |
| <td class="py-2">0.82 ₽</td> | |
| <td class="py-2">10,000</td> | |
| <td class="py-2">8,200 ₽</td> | |
| <td class="py-2">Исполнено</td> | |
| <td class="py-2"><button class="text-blue-400 hover:underline">Детали</button></td> | |
| </tr> | |
| <tr class="border-b border-primary"> | |
| <td class="py-2">10.05.2023</td> | |
| <td class="py-2">R2S/RUB</td> | |
| <td class="text-red-500 py-2">Продажа</td> | |
| <td class="py-2">0.88 ₽</td> | |
| <td class="py-2">5,000</td> | |
| <td class="py-2">4,400 ₽</td> | |
| <td class="py-2">Исполнено</td> | |
| <td class="py-2"><button class="text-blue-400 hover:underline">Детали</button></td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <!-- History Tab --> | |
| <div id="history-tab" class="tab-content mt-4 hidden"> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead> | |
| <tr class="border-b border-primary"> | |
| <th class="text-left py-2">Дата</th> | |
| <th class="text-left py-2">Пара</th> | |
| <th class="text-left py-2">Тип</th> | |
| <th class="text-left py-2">Цена</th> | |
| <th class="text-left py-2">Количество</th> | |
| <th class="text-left py-2">Итого</th> | |
| <th class="text-left py-2">Комиссия</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr class="border-b border-primary"> | |
| <td class="py-2">12.05.2023</td> | |
| <td class="py-2">R2S/RUB</td> | |
| <td class="text-green-500 py-2">Покупка</td> | |
| <td class="py-2">0.82 ₽</td> | |
| <td class="py-2">10,000</td> | |
| <td class="py-2">8,200 ₽</td> | |
| <td class="py-2">8.20 ₽</td> | |
| </tr> | |
| <tr class="border-b border-primary"> | |
| <td class="py-2">10.05.2023</td> | |
| <td class="py-2">R2S/RUB</td> | |
| <td class="text-red-500 py-2">Продажа</td> | |
| <td class="py-2">0.88 ₽</td> | |
| <td class="py-2">5,000</td> | |
| <td class="py-2">4,400 ₽</td> | |
| <td class="py-2">4.40 ₽</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Trades --> | |
| <div class="bg-secondary rounded-lg p-4 mb-6"> | |
| <h3 class="font-bold mb-4">Последние сделки</h3> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead> | |
| <tr class="border-b border-primary"> | |
| <th class="text-left py-2">Цена (₽)</th> | |
| <th class="text-left py-2">Количество</th> | |
| <th class="text-left py-2">Время</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr class="border-b border-primary"> | |
| <td class="text-green-500 py-2">0.85</td> | |
| <td class="py-2">1,200</td> | |
| <td class="py-2">12:45:23</td> | |
| </tr> | |
| <tr class="border-b border-primary"> | |
| <td class="text-red-500 py-2">0.84</td> | |
| <td class="py-2">800</td> | |
| <td class="py-2">12:44:56</td> | |
| </tr> | |
| <tr class="border-b border-primary"> | |
| <td class="text-green-500 py-2">0.85</td> | |
| <td class="py-2">3,500</td> | |
| <td class="py-2">12:43:12</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Right Column --> | |
| <div class="lg:w-1/4"> | |
| <!-- Order Book --> | |
| <div class="bg-secondary rounded-lg p-4 mb-6"> | |
| <h3 class="font-bold mb-4">Книга ордеров</h3> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-secondary">Цена (₽)</span> | |
| <span class="text-secondary">Количество</span> | |
| <span class="text-secondary mobile-hidden">Итого</span> | |
| </div> | |
| <div class="order-book"> | |
| <!-- Asks (Sell Orders) --> | |
| <div class="ask-row py-1 hover:bg-opacity-10 hover:bg-red-500 cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="text-red-500">0.86</span> | |
| <span>1,500</span> | |
| <span class="mobile-hidden">1,290</span> | |
| </div> | |
| </div> | |
| <div class="ask-row py-1 hover:bg-opacity-10 hover:bg-red-500 cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="text-red-500">0.855</span> | |
| <span>2,300</span> | |
| <span class="mobile-hidden">1,966.5</span> | |
| </div> | |
| </div> | |
| <div class="ask-row py-1 hover:bg-opacity-10 hover:bg-red-500 cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="text-red-500">0.85</span> | |
| <span>5,000</span> | |
| <span class="mobile-hidden">4,250</span> | |
| </div> | |
| </div> | |
| <!-- Market Price --> | |
| <div class="text-center py-2 my-2 border-t border-b border-primary"> | |
| <span class="font-bold">0.85 ₽</span> | |
| <span class="text-secondary text-sm ml-2">$0.011</span> | |
| </div> | |
| <!-- Bids (Buy Orders) --> | |
| <div class="bid-row py-1 hover:bg-opacity-10 hover:bg-green-500 cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="text-green-500">0.845</span> | |
| <span>3,200</span> | |
| <span class="mobile-hidden">2,704</span> | |
| </div> | |
| </div> | |
| <div class="bid-row py-1 hover:bg-opacity-10 hover:bg-green-500 cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="text-green-500">0.84</span> | |
| <span>4,500</span> | |
| <span class="mobile-hidden">3,780</span> | |
| </div> | |
| </div> | |
| <div class="bid-row py-1 hover:bg-opacity-10 hover:bg-green-500 cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="text-green-500">0.835</span> | |
| <span>6,000</span> | |
| <span class="mobile-hidden">5,010</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Balance --> | |
| <div class="bg-secondary rounded-lg p-4 mb-6"> | |
| <h3 class="font-bold mb-4">Баланс</h3> | |
| <div class="mb-4"> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-secondary">R2 Серебро</span> | |
| <span>15,000</span> | |
| </div> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-secondary">RUB</span> | |
| <span>2,450.50 ₽</span> | |
| </div> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="bg-blue-500 text-white px-4 py-2 rounded flex-1">Пополнить</button> | |
| <button class="bg-blue-500 text-white px-4 py-2 rounded flex-1">Вывести</button> | |
| </div> | |
| </div> | |
| <!-- Market Stats --> | |
| <div class="bg-secondary rounded-lg p-4"> | |
| <h3 class="font-bold mb-4">Статистика рынка</h3> | |
| <div class="space-y-3"> | |
| <div class="flex justify-between"> | |
| <span class="text-secondary">24h Изменение</span> | |
| <span class="text-green-500">+2.4%</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-secondary">24h Высокий</span> | |
| <span>0.87 ₽</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-secondary">24h Низкий</span> | |
| <span>0.82 ₽</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-secondary">24h Объем</span> | |
| <span>1,245,000 R2S</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-secondary border-t border-primary py-6"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col md:flex-row justify-between"> | |
| <div class="mb-6 md:mb-0"> | |
| <h3 class="font-bold mb-4">R2 Silver Exchange</h3> | |
| <p class="text-secondary">Безопасная биржа для торговли серебром в R2 Online</p> | |
| </div> | |
| <div class="grid grid-cols-2 md:grid-cols-3 gap-8"> | |
| <div> | |
| <h4 class="font-bold mb-3">Торговля</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">Рынок</a></li> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">Торговые пары</a></li> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">API</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-bold mb-3">Информация</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">О нас</a></li> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">Правила</a></li> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">Комиссии</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-bold mb-3">Поддержка</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">FAQ</a></li> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">Контакты</a></li> | |
| <li><a href="#" class="text-secondary hover:text-blue-400">Безопасность</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-primary mt-8 pt-6 flex flex-col md:flex-row justify-between items-center"> | |
| <p class="text-secondary mb-4 md:mb-0">© 2023 R2 Silver Exchange. Все права защищены.</p> | |
| <div class="flex space-x-4"> | |
| <a href="#"><i class="fab fa-telegram text-xl"></i></a> | |
| <a href="#"><i class="fab fa-discord text-xl"></i></a> | |
| <a href="#"><i class="fab fa-twitter text-xl"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Theme Toggle | |
| const themeToggle = document.getElementById('theme-toggle'); | |
| const body = document.body; | |
| themeToggle.addEventListener('click', () => { | |
| body.classList.toggle('dark'); | |
| body.classList.toggle('light'); | |
| if (body.classList.contains('dark')) { | |
| themeToggle.innerHTML = '<i class="fas fa-moon"></i>'; | |
| } else { | |
| themeToggle.innerHTML = '<i class="fas fa-sun"></i>'; | |
| } | |
| }); | |
| // Tab Switching | |
| const tabButtons = document.querySelectorAll('.tab-btn'); | |
| const tabContents = document.querySelectorAll('.tab-content'); | |
| tabButtons.forEach(button => { | |
| button.addEventListener('click', () => { | |
| // Remove active class from all buttons | |
| tabButtons.forEach(btn => btn.classList.remove('tab-active')); | |
| // Add active class to clicked button | |
| button.classList.add('tab-active'); | |
| // Hide all tab contents | |
| tabContents.forEach(content => content.classList.add('hidden')); | |
| // Show the selected tab content | |
| const tabId = button.getAttribute('data-tab') + '-tab'; | |
| document.getElementById(tabId).classList.remove('hidden'); | |
| }); | |
| }); | |
| // Price Chart | |
| const ctx = document.getElementById('priceChart').getContext('2d'); | |
| const priceChart = new Chart(ctx, { | |
| type: 'line', | |
| data: { | |
| labels: ['00:00', '04:00', '08:00', '12:00', '16:00', '20:00', 'Сейчас'], | |
| datasets: [{ | |
| label: 'Цена R2 серебра (₽)', | |
| data: [0.82, 0.83, 0.84, 0.85, 0.84, 0.845, 0.85], | |
| borderColor: '#3b82f6', | |
| backgroundColor: 'rgba(59, 130, 246, 0.1)', | |
| borderWidth: 2, | |
| fill: true, | |
| tension: 0.4 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: false, | |
| grid: { | |
| color: 'rgba(255, 255, 255, 0.1)' | |
| }, | |
| ticks: { | |
| color: 'rgba(255, 255, 255, 0.7)' | |
| } | |
| }, | |
| x: { | |
| grid: { | |
| color: 'rgba(255, 255, 255, 0.1)' | |
| }, | |
| ticks: { | |
| color: 'rgba(255, 255, 255, 0.7)' | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Calculate total when price or amount changes | |
| const priceInputs = document.querySelectorAll('input[type="number"]'); | |
| priceInputs.forEach(input => { | |
| input.addEventListener('input', function() { | |
| const form = this.closest('div'); | |
| const price = parseFloat(form.querySelector('input:nth-child(2)').value) || 0; | |
| const amount = parseFloat(form.querySelector('input:nth-child(4)').value) || 0; | |
| const total = form.querySelector('input:nth-child(6)'); | |
| total.value = (price * amount).toFixed(2); | |
| }); | |
| }); | |
| </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=GemRise/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |