Remove display:none from mark and flag, and preset hidden attribute instead

This commit is contained in:
Henrik Giesel 2021-04-13 01:00:09 +02:00
parent 74a9d0b0a1
commit c9fcf955f4
2 changed files with 3 additions and 5 deletions

View File

@ -27,7 +27,6 @@ img {
right: 10px;
top: 0;
font-size: 30px;
display: none;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: black;
}
@ -38,7 +37,6 @@ img {
top: 0;
font-size: 30px;
color: yellow;
display: none;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: black;
}

View File

@ -183,10 +183,10 @@ class Reviewer:
if self.mw.pm.video_driver() == VideoDriver.Software:
fade = "<script>qFade=0;</script>"
return f"""
<div id=_mark>&#x2605;</div>
<div id=_flag>&#x2691;</div>
<div id="_mark" hidden>&#x2605;</div>
<div id="_flag" hidden>&#x2691;</div>
{fade}
<div id=qa></div>
<div id="qa"></div>
{extra}
"""