eliminate need for javascript on page load

This commit is contained in:
iou1name 2019-10-21 16:00:36 -04:00
parent 249cf396d5
commit d1359518f6

View File

@ -7,14 +7,13 @@
<script>
const set_session_url = '{{ url_for("set_session") }}';
</script>
<script>window.onload = load;</script>
</head>
<body>
<div>
Style sheet:
<select id="styleSheetSelector" onChange="swapStyleSheet()">
<option name="ss.css" value="ss.css">Light</option>
<option name="ss-dark.css" value="ss-dark.css">Dark</option>
<option name="ss.css" value="ss.css"{% if style_sheet == 'ss.css' %} selected{% endif %}>Light</option>
<option name="ss-dark.css" value="ss-dark.css"{% if style_sheet == 'dark-ss.css' %} selected{% endif %}>Dark</option>
</select>
</div>
<div id="globalContainer">