3 ms·
In making a card game site (http://www.goodloesolitaire.com/ http://www.goodloesolitaire.com/), I got bit by ad.png; the "ad" was referring to ace of diamonds.
by jostylr 9y ago
In making a card game site (http://www.goodloesolitaire.com/ http://www.goodloesolitaire.com/), I got bit by ad.png; the "ad" was referring to ace of diamonds. Fixed it by using a single image for the whole deck and changing the position of the image to show the card that was picked. But man, tracking down that bug was a head scratcher for awhile. That was in the early days of adblockers.
- sksksk 9y ago>Fixed it by using a single image for the whole deck and changing the position of the image to show the card that was picked Couldn't you have renamed the file?
- buckbova 9y agoGood excuse to refactor I'm sure.
- jostylr 9y agoProbably did do that at first (10ish years ago makes it a bit of a haze), but it was being served up by a PHP script that was creating the card name dynamically. I wanted to move it off being tied to a server anyway and since anyone playing this would probably see a lot of cards, it made since to just download it all as one file rather than 52. At the time, it was all the rage to do such things.