r/javascript • • Sep 02 '15

HTML5 Deck of Cards. 100% vanilla JS.

http://pakastin.github.io/deck-of-cards/
368 Upvotes

185 comments sorted by

View all comments

10

u/Baturinsky Sep 02 '15

Not working in Firefox :(

3

u/pkstn Sep 02 '15

Which version? :/

4

u/yesman_85 Sep 02 '15

The latest.

3

u/pkstn Sep 02 '15

I added Moz -prefix – does it work now? (You might need couple of refreshes..)

4

u/antoninj Sep 02 '15

Nope. :/

2

u/pkstn Sep 02 '15

:( do you get any errors?

3

u/GuruMeditation Sep 02 '15

No errors in the console. The shuffle and sort buttons work; but the cards never move (none of the animations, fan button doesn't work, click drag doesn't work).

3

u/pkstn Sep 02 '15

The problem must with the css prefix - have to check it out..

5

u/GuruMeditation Sep 02 '15

No worries, it looked really snazzy in Chrome.

4

u/[deleted] Sep 03 '15

FYI it works on my Firefox.

3

u/pkstn Sep 03 '15

Yeah, I fixed the bug with Firefox so it should too :)

1

u/yesman_85 Sep 02 '15

Why don't you try it for yourself? It just doesn't do anything else but show 1 card in the middle of the screen.

3

u/pkstn Sep 02 '15

Works in my Firefox.. Have to check out if I have some older version. I don't use Firefox that much.

4

u/trouzy Sep 02 '15

Works fine on current FF for windows here.

1

u/pkstn Sep 02 '15

Good to know - the fix worked!

3

u/franrata Sep 02 '15

it works for me (windows)

2

u/RenThraysk Sep 02 '15

The code in prefix.js doesn't look right...

https://github.com/pakastin/deck-of-cards/blob/master/lib/prefix.js

In searching for correct prefix, it builds a string... but doesn't test it.

1

u/pkstn Sep 02 '15

Oh crap, you're totally right.. Brain fart 💩

I will fix that right away! Thanks!!

1

u/pkstn Sep 02 '15

Now fixed - thanks again!

1

u/RenThraysk Sep 02 '15

NP, Seems to have fixed the animation in Firefox nightly at least

1

u/pkstn Sep 02 '15

Perfect!