Ishadijcks / Ishadijcks.github.io

PokéClicker
15 stars 32 forks source link

Disable shard upgrade buttons if player doesn't have enough shards #162

Closed yuhasem closed 7 years ago

yuhasem commented 7 years ago

A simple solution to the request posed in the reddit thread: https://www.reddit.com/r/PokeClicker/comments/5v0prn/suggestion_make_the_upgrade_buttons_in_the_shards/

This simply adds the disabled attribute to the button, since we're using the default buttons, I though keeping browser style would be the simplest and best way to solve it.

Also cleaned up some strange html artifacts in the same function.