audrey06100 commited on
Commit
b33a07e
·
1 Parent(s): f3b8b5d
Files changed (1) hide show
  1. app.py +8 -8
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 dot_rule = `
130
  ${selector}::before {
131
  content: "";
132
  position: absolute;
@@ -138,7 +138,7 @@ init_js = """
138
  background-color: red;
139
  }
140
  `;
141
- const txt_rule = `
142
  ${selector}::after {
143
  content: "${name}";
144
  position: absolute;
@@ -158,8 +158,8 @@ init_js = """
158
  i--;
159
  }
160
  }
161
- styleSheet.insertRule(dot_rule, styleSheet.cssRules.length);
162
- styleSheet.insertRule(txt_rule, styleSheet.cssRules.length);
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 dot_rule = `
196
  ${selector}::before {
197
  content: "";
198
  position: absolute;
@@ -204,7 +204,7 @@ update_js = """
204
  background-color: red;
205
  }
206
  `;
207
- const txt_rule = `
208
  ${selector}::after {
209
  content: "${name}";
210
  position: absolute;
@@ -225,8 +225,8 @@ update_js = """
225
  i--;
226
  }
227
  }
228
- styleSheet.insertRule(dot_rule, styleSheet.cssRules.length);
229
- styleSheet.insertRule(txt_rule, styleSheet.cssRules.length);
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