Closed ajhalls closed 8 years ago
Please submit a pull request if you're adding code changes.
Also, instead of injecting css through javascript like this
$('#pokeNew-' + pokeNewID).css("backgroundColor", "#DDD1AD");
Try something like:
$('#pokeNew-' + pokeNewID).addClass('iv-over-80');
And then define the styles in the CSS where they belong.
It would also, be consistent and not clashing with the UI if instead of adding that background color just change the thumbnails border color in a fashion las the bootstrap framework that was used handles different contextual colors for components.
Overall it's a cool idea, please submit a pull request with the code.
Sorry, I am not a Github master and don't plan on getting my own fork going. You have done a great job, I just wanted to share what I did last night.
I wanted to make the interface more helpful for browsing what I had in inventory, and what had recently been caught.
This will color code anything above 80 IV as tan, 90 as green and put a red star on anything with over 95 for current inventory. For new items, I color coded the "New" badge to be tan and green. It was just a couple minor edits to the file:
/app/scripts/modules/pokebank.module.js