task and web box
This commit is contained in:
+24
-5
@@ -25,14 +25,14 @@ Once my slime is well-integrated with the new refactor, I'll release a quick sna
|
||||
<b>demo tasks</b> (I'll make the HTML tags work later;;) <br>
|
||||
<br>
|
||||
<table>
|
||||
% for i in range(math.ceil(len(words) / limit)):
|
||||
% for i in range(math.ceil(len(game_words) / limit)):
|
||||
<tr>
|
||||
% for j in range(limit):
|
||||
% if j + i * limit < len(words):
|
||||
<th>{{words[j + i * limit]}}</th>
|
||||
% if j + i * limit < len(game_words):
|
||||
<th>{{game_words[j + i * limit]}}</th>
|
||||
% end
|
||||
% if i >= ((math.ceil(len(words) / limit)) - 1) and j >= limit - 1:
|
||||
% for k in range(limit - (len(words) % limit)):
|
||||
% if i >= ((math.ceil(len(game_words) / limit)) - 1) and j >= limit - 1:
|
||||
% for k in range(limit - (len(game_words) % limit)):
|
||||
<th> </th>
|
||||
% end
|
||||
% end
|
||||
@@ -42,4 +42,23 @@ Once my slime is well-integrated with the new refactor, I'll release a quick sna
|
||||
% end
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<table>
|
||||
% for l in range(math.ceil(len(web_words) / limit)):
|
||||
<tr>
|
||||
% for m in range(limit):
|
||||
% if m + l * limit < len(web_words):
|
||||
<th>{{web_words[m + l * limit]}}</th>
|
||||
% end
|
||||
% if l >= ((math.ceil(len(web_words) / limit)) - 1) and m >= limit - 1:
|
||||
% for n in range(limit - (len(web_words) % limit)):
|
||||
<th> </th>
|
||||
% #end
|
||||
% end
|
||||
% end
|
||||
% end
|
||||
</tr>
|
||||
% end
|
||||
</table>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user