font-family: "Reverb"; | font-family: "Reverb"; | ||||
font-size: 2em; | font-size: 2em; | ||||
font-style: italic; | font-style: italic; | ||||
} | |||||
} | |||||
.passwordbox { | |||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); | |||||
float: left; | |||||
margin-right: 20px; | |||||
margin-top: 10px; | |||||
padding: 5px; | |||||
} | |||||
.passwordhead { | |||||
font-family: "Reverb Bold"; | |||||
font-size: 1.4em; | |||||
} |
pw = self.generate_key() | pw = self.generate_key() | ||||
if html: | if html: | ||||
out = ( | out = ( | ||||
f"<div id='password'>" | |||||
f"<span>Permalink to this campaign:</span><br>" | |||||
f"<div id='passwordbox'>" | |||||
f"<span class='paswordhead'>Permalink to this campaign:</span><br>" | |||||
f"<span><a href='http://node.noelle.codes/kobold?pw={pw.replace(' ', '')}'>{pw}</a></span>" | f"<span><a href='http://node.noelle.codes/kobold?pw={pw.replace(' ', '')}'>{pw}</a></span>" | ||||
f"</div>" | f"</div>" | ||||
) | ) |