Fix font update without javascript

    Add an "update" button
parent a71ff674
Pipeline #1477 passed with stage
in 40 seconds
......@@ -74,36 +74,10 @@ html(lang=locale)
h2
=_('Choisissez votre police')
.fontpicker
input(type="radio" name="font" value="bilbo-inc")#radio-font-1
label(for="radio-font-1" style="font-family: bilbo-inc")
| Bilbo inc
input(type="radio" name="font" value="bluu-next")#radio-font-2
label(for="radio-font-2" style="font-family: bluu-next")
| Bluu Next
input(type="radio" name="font" value="combat")#radio-font-3
label(for="radio-font-3" style="font-family: combat")
| Combat
input(type="radio" name="font" value="gulax")#radio-font-4
label(for="radio-font-4" style="font-family: gulax")
| Gulax
input(type="radio" name="font" value="lineal" checked)#radio-font-5
label(for="radio-font-5" style="font-family: lineal")
| Lineal
input(type="radio" name="font" value="resistance")#radio-font-6
label(for="radio-font-6" style="font-family: resistance")
| Resistance
input(type="radio" name="font" value="savate")#radio-font-7
label(for="radio-font-7" style="font-family: savate")
| Savate
input(type="radio" name="font" value="solid-mirage")#radio-font-8
label(for="radio-font-8" style="font-family: solid-mirage")
| Solid Mirage
input(type="radio" name="font" value="steps-mono")#radio-font-9
label(for="radio-font-9" style="font-family: steps-mono")
| Steps-Mono
input(type="radio" name="font" value="terminal")#radio-font-10
label(for="radio-font-10" style="font-family: terminal")
| Terminal
each display, name in {"bilbo-inc": "Bilbo inc", "bluu-next": "Bluu Next", "combat": "Combat", "gulax": "Gulax", "lineal": "Lineal", "resistance": "Resistance", "savate": "Savate", "solid-mirage": "Solid Mirage", "steps-mono": "Steps-mono", "terminal": "Terminal"}
input(type="radio" name="font" value=name id="font-" + name checked=(params.font === name))
label(for="font-" + name style="font-family: " + name)
= display
.navButtons
a(href="#step2").white-button
| ‹
......@@ -145,6 +119,11 @@ html(lang=locale)
noscript
img(src=protocol + "://" + host + "/generate.png" + subdir + "?" + imageParams alt="preview" width="600" height="413")
canvas(width="600" height="413")#output
noscript
button(type="submit" formtarget="_self" formaction="" style="float: left").white-button
span.text
=_('Actualiser') + ' '
span.fa.fa-refresh
button(type="submit" name="target" value="randomize").randomize.white-button
span.fa.fa-random
button(type="submit" name="target" value="twitter")#tweet-button.blue-button
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment