Skip to content

Commit bc51e5d

Browse files
committed
Beta release
- Code refactoring - New background - Better colors - UX improvements - Better tooltips - Fixed the builder script
1 parent c60994c commit bc51e5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def read_text(path):
1010

1111
def compile_assets(html, css, js):
1212
compilation_time = datetime.datetime.now().astimezone(pytz.timezone('Europe/Warsaw')).strftime("%Y-%m-%d_%H:%M")
13-
img_background = f' background: url("data:image/jpeg;base64,{base64.b64encode(open("background.jpg", "rb").read()).decode()}");'
14-
css = css.replace(f" background: url('background.jpg');", img_background)
13+
img_background = f'url("data:image/jpeg;base64,{base64.b64encode(open("background.jpg", "rb").read()).decode()}");'
14+
css = css.replace(f"url('background.jpg');", img_background)
1515
html = html.replace(f'<span id="tool-version"></span>', f'<span id="tool-version"> <strong>v.{compilation_time}</strong></span>')
1616
html = html.replace(f'<link rel="stylesheet" href="style.css">', f'')
1717
html = html.replace(f'</head>', f'<style>\n{css}\n</style>\n</head>')

0 commit comments

Comments
 (0)