Spaces:
Running
Running
lalashechka
commited on
Commit
•
70075df
1
Parent(s):
72d2602
Update index.html
Browse files- index.html +20 -106
index.html
CHANGED
@@ -5,19 +5,26 @@
|
|
5 |
<meta name="viewport" content="width=device-width" />
|
6 |
<title>My static Space</title>
|
7 |
<style>
|
8 |
-
div#component-
|
9 |
display: none;
|
10 |
}
|
11 |
-
div#component-
|
12 |
display: none;
|
13 |
}
|
14 |
div#component-11 {
|
15 |
display: none;
|
16 |
}
|
17 |
-
|
18 |
display: none;
|
19 |
}
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
margin-bottom: 20px;
|
22 |
border-radius: 10px;
|
23 |
background: #e253dd;
|
@@ -28,12 +35,13 @@
|
|
28 |
</style>
|
29 |
</head>
|
30 |
<body>
|
31 |
-
|
|
|
32 |
type="module"
|
33 |
-
src="https://gradio.s3-us-west-2.amazonaws.com/4.
|
34 |
></script>
|
35 |
|
36 |
-
<gradio-app id='ga33' src="https://
|
37 |
|
38 |
<script>
|
39 |
const targetNode8 = document.body; // или другой родительский элемент
|
@@ -42,8 +50,8 @@
|
|
42 |
for(let mutation of mutationsList) {
|
43 |
if (mutation.type === 'childList') {
|
44 |
const grApp8 = document.getElementById('ga33');
|
45 |
-
const targetDiv8 = grApp8.querySelector('#component-
|
46 |
-
targetDiv8.textContent = "
|
47 |
observer.disconnect(); // Останавливаем наблюдение после изменения
|
48 |
}
|
49 |
}
|
@@ -59,7 +67,7 @@
|
|
59 |
for(let mutation of mutationsList) {
|
60 |
if (mutation.type === 'childList') {
|
61 |
const grApp2 = document.getElementById('ga33');
|
62 |
-
const targetDiv5 = grApp2.querySelector('#component-
|
63 |
const targetSpan5 = targetDiv5.querySelector('label[data-testid="block-label"]');
|
64 |
targetSpan5.textContent = "Исходное фото:";
|
65 |
observer.disconnect(); // Останавливаем наблюдение после изменения
|
@@ -77,9 +85,9 @@
|
|
77 |
for(let mutation of mutationsList) {
|
78 |
if (mutation.type === 'childList') {
|
79 |
const grApp4132 = document.getElementById('ga33');
|
80 |
-
const targetDiv4135 = grApp4132.querySelector('#component-
|
81 |
const targetSpan4135 = targetDiv4135.querySelector('label[data-testid="block-label"]');
|
82 |
-
targetSpan4135.textContent = "
|
83 |
observer.disconnect(); // Останавливаем наблюдение после изменения
|
84 |
}
|
85 |
}
|
@@ -87,100 +95,6 @@
|
|
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>
|
|
|
5 |
<meta name="viewport" content="width=device-width" />
|
6 |
<title>My static Space</title>
|
7 |
<style>
|
8 |
+
div#component-38 {
|
9 |
display: none;
|
10 |
}
|
11 |
+
div#component-15 {
|
12 |
display: none;
|
13 |
}
|
14 |
div#component-11 {
|
15 |
display: none;
|
16 |
}
|
17 |
+
button#component-40-button {
|
18 |
display: none;
|
19 |
}
|
20 |
+
button#component-41-button {
|
21 |
+
display: none;
|
22 |
+
}
|
23 |
+
button#component-42-button {
|
24 |
+
display: none;
|
25 |
+
}
|
26 |
+
|
27 |
+
button#component-12 {
|
28 |
margin-bottom: 20px;
|
29 |
border-radius: 10px;
|
30 |
background: #e253dd;
|
|
|
35 |
</style>
|
36 |
</head>
|
37 |
<body>
|
38 |
+
|
39 |
+
<script
|
40 |
type="module"
|
41 |
+
src="https://gradio.s3-us-west-2.amazonaws.com/4.42.0/gradio.js"
|
42 |
></script>
|
43 |
|
44 |
+
<gradio-app id='ga33' src="https://not-lain-background-removal.hf.space"></gradio-app>
|
45 |
|
46 |
<script>
|
47 |
const targetNode8 = document.body; // или другой родительский элемент
|
|
|
50 |
for(let mutation of mutationsList) {
|
51 |
if (mutation.type === 'childList') {
|
52 |
const grApp8 = document.getElementById('ga33');
|
53 |
+
const targetDiv8 = grApp8.querySelector('#component-12');
|
54 |
+
targetDiv8.textContent = "Удалить фон";
|
55 |
observer.disconnect(); // Останавливаем наблюдение после изменения
|
56 |
}
|
57 |
}
|
|
|
67 |
for(let mutation of mutationsList) {
|
68 |
if (mutation.type === 'childList') {
|
69 |
const grApp2 = document.getElementById('ga33');
|
70 |
+
const targetDiv5 = grApp2.querySelector('#component-2');
|
71 |
const targetSpan5 = targetDiv5.querySelector('label[data-testid="block-label"]');
|
72 |
targetSpan5.textContent = "Исходное фото:";
|
73 |
observer.disconnect(); // Останавливаем наблюдение после изменения
|
|
|
85 |
for(let mutation of mutationsList) {
|
86 |
if (mutation.type === 'childList') {
|
87 |
const grApp4132 = document.getElementById('ga33');
|
88 |
+
const targetDiv4135 = grApp4132.querySelector('#component-0');
|
89 |
const targetSpan4135 = targetDiv4135.querySelector('label[data-testid="block-label"]');
|
90 |
+
targetSpan4135.textContent = "Результат:";
|
91 |
observer.disconnect(); // Останавливаем наблюдение после изменения
|
92 |
}
|
93 |
}
|
|
|
95 |
const observer4135 = new MutationObserver(callback4135);
|
96 |
observer4135.observe(targetNode4135, config4135);
|
97 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
</body>
|
100 |
</html>
|