Spaces:
Sleeping
Sleeping
Commit
·
b33a07e
1
Parent(s):
f3b8b5d
update
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ init_js = """
|
|
126 |
name = stage1_info.emptyTemplate[0];
|
127 |
left = channel_info.templateDict[name].css_position[0];
|
128 |
bottom = channel_info.templateDict[name].css_position[1];
|
129 |
-
const
|
130 |
${selector}::before {
|
131 |
content: "";
|
132 |
position: absolute;
|
@@ -138,7 +138,7 @@ init_js = """
|
|
138 |
background-color: red;
|
139 |
}
|
140 |
`;
|
141 |
-
const
|
142 |
${selector}::after {
|
143 |
content: "${name}";
|
144 |
position: absolute;
|
@@ -158,8 +158,8 @@ init_js = """
|
|
158 |
i--;
|
159 |
}
|
160 |
}
|
161 |
-
styleSheet.insertRule(
|
162 |
-
styleSheet.insertRule(
|
163 |
}
|
164 |
"""
|
165 |
|
@@ -192,7 +192,7 @@ update_js = """
|
|
192 |
name = stage1_info.emptyTemplate[cnt-1];
|
193 |
left = channel_info.templateDict[name].css_position[0];
|
194 |
bottom = channel_info.templateDict[name].css_position[1];
|
195 |
-
const
|
196 |
${selector}::before {
|
197 |
content: "";
|
198 |
position: absolute;
|
@@ -204,7 +204,7 @@ update_js = """
|
|
204 |
background-color: red;
|
205 |
}
|
206 |
`;
|
207 |
-
const
|
208 |
${selector}::after {
|
209 |
content: "${name}";
|
210 |
position: absolute;
|
@@ -225,8 +225,8 @@ update_js = """
|
|
225 |
i--;
|
226 |
}
|
227 |
}
|
228 |
-
styleSheet.insertRule(
|
229 |
-
styleSheet.insertRule(
|
230 |
}
|
231 |
"""
|
232 |
|
|
|
126 |
name = stage1_info.emptyTemplate[0];
|
127 |
left = channel_info.templateDict[name].css_position[0];
|
128 |
bottom = channel_info.templateDict[name].css_position[1];
|
129 |
+
const dotRule = `
|
130 |
${selector}::before {
|
131 |
content: "";
|
132 |
position: absolute;
|
|
|
138 |
background-color: red;
|
139 |
}
|
140 |
`;
|
141 |
+
const textRule = `
|
142 |
${selector}::after {
|
143 |
content: "${name}";
|
144 |
position: absolute;
|
|
|
158 |
i--;
|
159 |
}
|
160 |
}
|
161 |
+
styleSheet.insertRule(dotRule, styleSheet.cssRules.length);
|
162 |
+
styleSheet.insertRule(textRule, styleSheet.cssRules.length);
|
163 |
}
|
164 |
"""
|
165 |
|
|
|
192 |
name = stage1_info.emptyTemplate[cnt-1];
|
193 |
left = channel_info.templateDict[name].css_position[0];
|
194 |
bottom = channel_info.templateDict[name].css_position[1];
|
195 |
+
const dotRule = `
|
196 |
${selector}::before {
|
197 |
content: "";
|
198 |
position: absolute;
|
|
|
204 |
background-color: red;
|
205 |
}
|
206 |
`;
|
207 |
+
const textRule = `
|
208 |
${selector}::after {
|
209 |
content: "${name}";
|
210 |
position: absolute;
|
|
|
225 |
i--;
|
226 |
}
|
227 |
}
|
228 |
+
styleSheet.insertRule(dotRule, styleSheet.cssRules.length);
|
229 |
+
styleSheet.insertRule(textRule, styleSheet.cssRules.length);
|
230 |
}
|
231 |
"""
|
232 |
|