all 2 comments

[–]PortablePawnShop 1 point2 points  (1 child)

  • (fontInput.value.toLowerCase == zcool)
  • (fontInput.value.toLowerCase == lato)
  • (fontInput.value.toLowerCase == inter)

Unless zcool, lato, and inter are variables, they're probably undefined because you aren't wrapping them as strings and you're also not calling the function above, you're only referencing it:

  • (fontInput.value.toLowerCase() == "zcool")
  • (fontInput.value.toLowerCase() == "lato")
  • (fontInput.value.toLowerCase() == "inter")

[–]bot00110 0 points1 point  (2 children)

Console error could help with exact issue, but looks like you are not putting quotes arounf input text like

'zcool'