Spaces:
Running
Running
lalashechka
commited on
Commit
•
72d2602
1
Parent(s):
34f6c22
Update index.html
Browse files- index.html +176 -9
index.html
CHANGED
@@ -4,16 +4,183 @@
|
|
4 |
<meta charset="utf-8" />
|
5 |
<meta name="viewport" content="width=device-width" />
|
6 |
<title>My static Space</title>
|
7 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
-
<
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
</body>
|
19 |
</html>
|
|
|
4 |
<meta charset="utf-8" />
|
5 |
<meta name="viewport" content="width=device-width" />
|
6 |
<title>My static Space</title>
|
7 |
+
<style>
|
8 |
+
div#component-1 {
|
9 |
+
display: none;
|
10 |
+
}
|
11 |
+
div#component-13 {
|
12 |
+
display: none;
|
13 |
+
}
|
14 |
+
div#component-11 {
|
15 |
+
display: none;
|
16 |
+
}
|
17 |
+
div#component-12 {
|
18 |
+
display: none;
|
19 |
+
}
|
20 |
+
button#component-6 {
|
21 |
+
margin-bottom: 20px;
|
22 |
+
border-radius: 10px;
|
23 |
+
background: #e253dd;
|
24 |
+
color: white;
|
25 |
+
box-shadow: none;
|
26 |
+
border: none !important;
|
27 |
+
}
|
28 |
+
</style>
|
29 |
</head>
|
30 |
<body>
|
31 |
+
<script
|
32 |
+
type="module"
|
33 |
+
src="https://gradio.s3-us-west-2.amazonaws.com/4.37.2/gradio.js"
|
34 |
+
></script>
|
35 |
+
|
36 |
+
<gradio-app id='ga33' src="https://ssboost-tile-upscaler.hf.space"></gradio-app>
|
37 |
+
|
38 |
+
<script>
|
39 |
+
const targetNode8 = document.body; // или другой родительский элемент
|
40 |
+
const config8 = { childList: true, subtree: true };
|
41 |
+
const callback8 = function(mutationsList, observer) {
|
42 |
+
for(let mutation of mutationsList) {
|
43 |
+
if (mutation.type === 'childList') {
|
44 |
+
const grApp8 = document.getElementById('ga33');
|
45 |
+
const targetDiv8 = grApp8.querySelector('#component-6');
|
46 |
+
targetDiv8.textContent = "Улучшить фото";
|
47 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
48 |
+
}
|
49 |
+
}
|
50 |
+
};
|
51 |
+
const observer8 = new MutationObserver(callback8);
|
52 |
+
observer8.observe(targetNode8, config8);
|
53 |
+
</script>
|
54 |
+
|
55 |
+
<script>
|
56 |
+
const targetNode5 = document.body; // или другой родительский элемент
|
57 |
+
const config5 = { childList: true, subtree: true };
|
58 |
+
const callback5 = function(mutationsList, observer) {
|
59 |
+
for(let mutation of mutationsList) {
|
60 |
+
if (mutation.type === 'childList') {
|
61 |
+
const grApp2 = document.getElementById('ga33');
|
62 |
+
const targetDiv5 = grApp2.querySelector('#component-4');
|
63 |
+
const targetSpan5 = targetDiv5.querySelector('label[data-testid="block-label"]');
|
64 |
+
targetSpan5.textContent = "Исходное фото:";
|
65 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
66 |
+
}
|
67 |
+
}
|
68 |
+
};
|
69 |
+
const observer5 = new MutationObserver(callback5);
|
70 |
+
observer5.observe(targetNode5, config5);
|
71 |
+
</script>
|
72 |
+
|
73 |
+
<script>
|
74 |
+
const targetNode4135 = document.body; // или другой родительский элемент
|
75 |
+
const config4135 = { childList: true, subtree: true };
|
76 |
+
const callback4135 = function(mutationsList, observer) {
|
77 |
+
for(let mutation of mutationsList) {
|
78 |
+
if (mutation.type === 'childList') {
|
79 |
+
const grApp4132 = document.getElementById('ga33');
|
80 |
+
const targetDiv4135 = grApp4132.querySelector('#component-10');
|
81 |
+
const targetSpan4135 = targetDiv4135.querySelector('label[data-testid="block-label"]');
|
82 |
+
targetSpan4135.textContent = "Результат №2:";
|
83 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
84 |
+
}
|
85 |
+
}
|
86 |
+
};
|
87 |
+
const observer4135 = new MutationObserver(callback4135);
|
88 |
+
observer4135.observe(targetNode4135, config4135);
|
89 |
+
</script>
|
90 |
+
|
91 |
+
<script>
|
92 |
+
const targetNode135 = document.body; // или другой родительский элемент
|
93 |
+
const config135 = { childList: true, subtree: true };
|
94 |
+
const callback135 = function(mutationsList, observer) {
|
95 |
+
for(let mutation of mutationsList) {
|
96 |
+
if (mutation.type === 'childList') {
|
97 |
+
const grApp132 = document.getElementById('ga33');
|
98 |
+
const targetDiv135 = grApp132.querySelector('#component-9');
|
99 |
+
const targetSpan135 = targetDiv135.querySelector('label[data-testid="block-label"]');
|
100 |
+
targetSpan135.textContent = "Результат №1:";
|
101 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
102 |
+
}
|
103 |
+
}
|
104 |
+
};
|
105 |
+
const observer135 = new MutationObserver(callback135);
|
106 |
+
observer135.observe(targetNode135, config135);
|
107 |
+
</script>
|
108 |
+
|
109 |
+
|
110 |
+
<script>
|
111 |
+
const targetNode113324 = document.body; // или другой родительский элемент
|
112 |
+
const config113324 = { childList: true, subtree: true };
|
113 |
+
const callback113324 = function(mutationsList, observer) {
|
114 |
+
for(let mutation of mutationsList) {
|
115 |
+
if (mutation.type === 'childList') {
|
116 |
+
const grApp113324 = document.getElementById('ga33');
|
117 |
+
|
118 |
+
const targetDiv113324 = grApp113324.querySelector('#component-5');
|
119 |
+
const targetSpan113324 = Array.from(targetDiv113324.querySelectorAll('span')).find(span => span.textContent.includes('상'));
|
120 |
+
targetSpan113324.textContent = "Сильный";
|
121 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
122 |
+
}
|
123 |
+
}
|
124 |
+
};
|
125 |
+
const observer113324 = new MutationObserver(callback113324);
|
126 |
+
observer113324.observe(targetNode113324, config113324);
|
127 |
+
</script>
|
128 |
+
|
129 |
+
<script>
|
130 |
+
const targetNode32113324 = document.body; // или другой родительский элемент
|
131 |
+
const config32113324 = { childList: true, subtree: true };
|
132 |
+
const callback32113324 = function(mutationsList, observer) {
|
133 |
+
for(let mutation of mutationsList) {
|
134 |
+
if (mutation.type === 'childList') {
|
135 |
+
const grApp32113324 = document.getElementById('ga33');
|
136 |
+
|
137 |
+
const targetDiv32113324 = grApp32113324.querySelector('#component-5');
|
138 |
+
const targetSpan32113324 = Array.from(targetDiv32113324.querySelectorAll('span')).find(span => span.textContent.includes('중'));
|
139 |
+
targetSpan32113324.textContent = "Средний";
|
140 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
141 |
+
}
|
142 |
+
}
|
143 |
+
};
|
144 |
+
const observer32113324 = new MutationObserver(callback32113324);
|
145 |
+
observer32113324.observe(targetNode32113324, config32113324);
|
146 |
+
</script>
|
147 |
+
|
148 |
+
<script>
|
149 |
+
const targetNode2113324 = document.body; // или другой родительский элемент
|
150 |
+
const config2113324 = { childList: true, subtree: true };
|
151 |
+
const callback2113324 = function(mutationsList, observer) {
|
152 |
+
for(let mutation of mutationsList) {
|
153 |
+
if (mutation.type === 'childList') {
|
154 |
+
const grApp2113324 = document.getElementById('ga33');
|
155 |
+
|
156 |
+
const targetDiv2113324 = grApp2113324.querySelector('#component-5');
|
157 |
+
const targetSpan2113324 = Array.from(targetDiv2113324.querySelectorAll('span')).find(span => span.textContent.includes('하'));
|
158 |
+
targetSpan2113324.textContent = "Слабый";
|
159 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
160 |
+
}
|
161 |
+
}
|
162 |
+
};
|
163 |
+
const observer2113324 = new MutationObserver(callback2113324);
|
164 |
+
observer2113324.observe(targetNode2113324, config2113324);
|
165 |
+
</script>
|
166 |
+
|
167 |
+
<script>
|
168 |
+
const targetNode141 = document.body; // или другой родительский элемент
|
169 |
+
const config141 = { childList: true, subtree: true };
|
170 |
+
const callback141 = function(mutationsList, observer) {
|
171 |
+
for(let mutation of mutationsList) {
|
172 |
+
if (mutation.type === 'childList') {
|
173 |
+
const grApp141 = document.getElementById('ga33');
|
174 |
+
const targetDiv141 = grApp141.querySelector('#component-5');
|
175 |
+
const targetSpan141 = targetDiv141.querySelector('span[data-testid="block-info"]');
|
176 |
+
targetSpan141.textContent = "Эффект улучшения:";
|
177 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
178 |
+
}
|
179 |
+
}
|
180 |
+
};
|
181 |
+
const observer141 = new MutationObserver(callback141);
|
182 |
+
observer141.observe(targetNode141, config141);
|
183 |
+
</script>
|
184 |
+
|
185 |
</body>
|
186 |
</html>
|