summaryrefslogtreecommitdiff
path: root/jfr_playoff/template.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-07-06 01:14:41 +0200
committeremkael <emkael@tlen.pl>2018-07-06 01:23:22 +0200
commit00bb8ac06a45fd0cb960a7161a1f9cb713429a02 (patch)
treea7e79dc7e4ab954a1f84c18b707d27e5ba4fe750 /jfr_playoff/template.py
parent5dc528cbd21dbc6a372dbc021e3466e802148827 (diff)
Drawing starting position boxes
Diffstat (limited to 'jfr_playoff/template.py')
-rw-r--r--jfr_playoff/template.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py
index 70c179b..3473530 100644
--- a/jfr_playoff/template.py
+++ b/jfr_playoff/template.py
@@ -51,6 +51,7 @@ class PlayoffTemplateStrings(object):
<div style="position: relative; width: %dpx; height: %dpx; margin: 10px">
<canvas width="%d" height="%d" id="playoff_canvas" %s></canvas>
%s
+ %s
<script src="sklady/playoff.js" type="text/javascript"></script>
</div>
'''
@@ -77,6 +78,19 @@ class PlayoffTemplateStrings(object):
<img src="images/A.gif" />
'''
+ STARTING_POSITION_BOX = '''
+ <div style="position: absolute; left: %dpx; top: %dpx" class="playoff_matchbox" data-id="place-%d">
+ <table border="0" cellspacing="0">
+ <tr>
+ <td class="bdcc1" style="opacity: 0">&nbsp;</td>
+ </tr>
+ <tr>
+ <td class="bdc12" width="20">%d</td>
+ </tr>
+ </table>
+ </div>
+ '''
+
MATCH_BOX = '''
<div style="text-align: center; position: absolute; left: %dpx; top: %dpx" data-id="%d" data-winner="%s" data-loser="%s" class="playoff_matchbox">
%s