enotkrutoy commited on
Commit
8906bad
·
verified ·
1 Parent(s): e0d2ed9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +150 -49
index.html CHANGED
@@ -1,57 +1,158 @@
1
- <main class="flex flex-1 flex-col">
2
- <section class="spinner-overlay" id="mainSpinner">
3
- <svg class="animate-spin h-5 w-5 text-gray-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
4
- <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
5
- <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
6
- </svg>
7
- </section>
8
-
9
- <aside class="error-message" id="errorMessage">Failed to load application</aside>
10
-
11
- <article class="space-iframe-container">
12
- <iframe
13
- src="https://qwen-qwen2-5-coder-demo.hf.space/?__theme=system"
14
- aria-label="Space app"
15
- class="space-iframe outline-hidden grow overflow-hidden bg-white p-0"
16
- allow="accelerometer; ambient-light-sensor; autoplay; battery; camera; clipboard-read; clipboard-write; display-capture; document-domain; encrypted-media; fullscreen; geolocation; gyroscope; layout-animations; legacy-image-formats; magnetometer; microphone; midi; oversized-images; payment; picture-in-picture; publickey-credentials-get; sync-xhr; usb; vr ; wake-lock; xr-spatial-tracking"
17
- sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-storage-access-by-user-activation"
18
- scrolling="no"
19
- onload="handleIframeLoad()"
20
- onerror="handleIframeError()"
21
- ></iframe>
22
- </article>
23
- </main>
24
-
25
- <script>
26
- document.querySelectorAll('.SVELTE_HYDRATER').forEach(node => {
27
- const target = node.getAttribute('data-target');
28
- const props = JSON.parse(node.getAttribute('data-props') || '{}');
29
- console.log(`Initializing ${target} with props:`, props);
30
- // Actual Svelte component registration would go here
31
- });
32
-
33
- function handleIframeLoad() {
34
- document.getElementById('mainSpinner').style.display = 'none';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
- function handleIframeError() {
38
- document.getElementById('mainSpinner').style.display = 'none';
39
- document.getElementById('errorMessage').style.display = 'block';
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
 
 
 
 
 
 
 
 
 
 
 
41
 
42
- // Initial spinner visibility
43
- document.getElementById('mainSpinner').style.display = 'flex';
44
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  <script>
47
- import("/front/build/kube-e5d4d76/index.js");
48
- window.moonSha = "kube-e5d4d76/";
49
- window.__hf_deferred = {};
 
 
 
 
50
 
51
- if (["hf.co", "huggingface.co"].includes(window.location.hostname)) {
52
- const script = document.createElement("script");
53
- script.src = "https://js.stripe.com/v3/";
54
- script.async = true;
55
- document.head.appendChild(script);
 
 
56
  }
57
- </script>
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ru">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>CyberSearch v1.3.37</title>
7
+ <style>
8
+ body {
9
+ background-color: #0a0a0a;
10
+ color: #00ff00;
11
+ font-family: 'Courier New', monospace;
12
+ margin: 0;
13
+ padding: 20px;
14
+ overflow-x: hidden;
15
+ }
16
+ /* Анимация для глитч-эффекта */
17
+ .glitch {
18
+ text-align: center;
19
+ animation: glitch 1s infinite;
20
+ text-shadow: 2px 2px #ff00ff;
21
+ }
22
+ /* Стили для консольных блоков */
23
+ .console {
24
+ border: 3px solid #00ff00;
25
+ padding: 20px;
26
+ margin: 20px auto;
27
+ max-width: 800px;
28
+ border-radius: 5px;
29
+ box-shadow: 0 0 15px #00ff0080;
30
+ }
31
+ /* Стили для input-элементов */
32
+ input {
33
+ background: #000;
34
+ border: 2px solid #00ff00;
35
+ color: #00ff00;
36
+ padding: 10px;
37
+ width: 70%;
38
+ margin: 10px;
39
+ font-size: 16px;
40
+ text-transform: uppercase;
41
+ }
42
+ input:focus {
43
+ outline: none;
44
+ box-shadow: 0 0 10px #00ff00;
45
+ }
46
+ /* Стили для кнопок */
47
+ button {
48
+ background: #000;
49
+ border: 2px solid #00ff00;
50
+ color: #00ff00;
51
+ padding: 10px 30px;
52
+ cursor: pointer;
53
+ transition: all 0.3s;
54
+ position: relative;
55
+ overflow: hidden;
56
+ }
57
+ button:hover {
58
+ background: #00ff00;
59
+ color: #000;
60
+ text-shadow: 0 0 5px #000;
61
+ }
62
+ /* Стили для селектов */
63
+ select {
64
+ background: #000;
65
+ border: 2px solid #00ff00;
66
+ color: #00ff00;
67
+ padding: 10px;
68
+ margin: 10px;
69
+ font-size: 16px;
70
  }
71
+ /* Стили для сканирующей линии */
72
+ .scan-line {
73
+ position: fixed;
74
+ width: 100%;
75
+ height: 2px;
76
+ background: linear-gradient(
77
+ to bottom,
78
+ transparent 0%,
79
+ #00ff0080 50%,
80
+ transparent 100%
81
+ );
82
+ animation: scan 4s linear infinite;
83
+ pointer-events: none;
84
+ }
85
 
86
+ /* Стили для оверлея загрузки */
87
+ .spinner-overlay {
88
+ position: fixed;
89
+ top: 0;
90
+ left: 0;
91
+ width: 100%;
92
+ height: 100%;
93
+ background-color: rgba(128, 128, 128, 0.8);
94
+ color: white;
95
+ display: flex;
96
+ justify-content: center;
97
+ align-items: center;
98
+ z-index: 1000;
99
+ opacity: 0;
100
+ pointer-events: none;
101
+ transition: opacity 0.3s ease;
102
  }
103
+ .spinner-overlay.visible {
104
+ opacity: 1;
105
+ pointer-events: auto;
106
+ }
107
+ .space-iframe {
108
+ width: 100%;
109
+ height: 100%;
110
+ border: none;
111
+ }
112
+ </style>
113
+ </head>
114
 
115
+ <body>
116
+
117
+ <header>
118
+ <h1 class="glitch">CyberSearch</h1>
119
+ </header>
120
+
121
+ <main>
122
+ <section class="console">
123
+ <label for="inputField">Enter Command:</label>
124
+ <input id="inputField" type="text" placeholder="Enter text here">
125
+ <button onclick="executeCommand()">Execute</button>
126
+ </section>
127
+
128
+ <section class="spinner-overlay" id="loadingOverlay">
129
+ <div class="spinner">Loading...</div>
130
+ </section>
131
+ </main>
132
+
133
+ <footer>
134
+ <p>&copy; 2025 CyberSearch</p>
135
+ </footer>
136
 
137
  <script>
138
+ // Функция для выполнения команды
139
+ function executeCommand() {
140
+ const inputField = document.getElementById('inputField');
141
+ const command = inputField.value;
142
+ console.log("Command executed: " + command);
143
+ // Логика обработки команды
144
+ }
145
 
146
+ // Пример функции для отображения оверлея загрузки
147
+ function toggleLoadingOverlay(show) {
148
+ const overlay = document.getElementById('loadingOverlay');
149
+ if (show) {
150
+ overlay.classList.add('visible');
151
+ } else {
152
+ overlay.classList.remove('visible');
153
  }
154
+ }
155
+ </script>
156
+
157
+ </body>
158
+ </html>