mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
example
This commit is contained in:
parent
56eea42c07
commit
999930f433
@ -12,7 +12,7 @@ testsavejs = False
|
|||||||
# example
|
# example
|
||||||
def extrastyle(rootdivid):
|
def extrastyle(rootdivid):
|
||||||
with open(
|
with open(
|
||||||
r"C:\Users\11737\Pictures\asutoraea\yande.re 289904 astralair_no_shiroki_towa favorite game_cg miko shida_kazuhiro yuuki_(astralair_no_shiroki_towa).png",
|
r"example.png",
|
||||||
"rb",
|
"rb",
|
||||||
) as ff:
|
) as ff:
|
||||||
b64 = base64.b64encode(ff.read()).decode("utf-8")
|
b64 = base64.b64encode(ff.read()).decode("utf-8")
|
||||||
@ -20,6 +20,7 @@ def extrastyle(rootdivid):
|
|||||||
extra = f"""#{rootdivid}::before
|
extra = f"""#{rootdivid}::before
|
||||||
{{
|
{{
|
||||||
background-image: url('data:image/jpeg;base64,{b64}') ;
|
background-image: url('data:image/jpeg;base64,{b64}') ;
|
||||||
|
background-size: 100% auto;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user