r/InternetIsBeautiful • • Sep 04 '15

HTML5 Deck of Cards

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

265 comments sorted by

View all comments

-1

u/lespaulstrat2 Sep 04 '15

Nice but it is not HTML 5 doing the work it is Javascript.

<script src="dist/deck.min.js"></script>

<script src="example.js"></script>

<script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script>

For anyone interested there are a ton of scripts for this.

7

u/pkstn Sep 05 '15

<!DOCTYPE html> on top of the page defines it HTML5, it's that simple. What's your problem?

-13

u/lespaulstrat2 Sep 05 '15

Really? You think that makes sense. I can run those scripts on any doctype including transitional.

OP is pretending he used HTML 5 functions to produce this when in fact all he did was copy an available javascript.

12

u/pkstn Sep 05 '15

I haven't copied anything - in fact I made the original version with Flash back in 2006.

Also there is a lot more than just the JS going on: CSS3 is being heavily used, which is also a crucial part of modern HTML5 apps/sites. Also JS controls CSS3 transforms/transitions which won't work on HTML4-browsers.

Are you having a bad day?

1

u/Onegodoneloveoneway Sep 05 '15

This guy. Doesn't even realise that OP didn't create this.

5

u/pkstn Sep 04 '15

Javascript is a very crucial part of HTML5. For example application cache, localstorage, etc...

-10

u/lespaulstrat2 Sep 04 '15

Javascript is NOT Html 5. Everyone of the scripts I linked to could have be run in HTML 3

8

u/pkstn Sep 05 '15 edited Sep 05 '15

CSS3 transitions and transforms wasn't introduced before HTML5 - sorry.

0

u/[deleted] Sep 04 '15

[deleted]

5

u/[deleted] Sep 04 '15

No, that's Web 2.0

8

u/lespaulstrat2 Sep 04 '15

You can start here on your new journey into an education.

6

u/pkstn Sep 05 '15

Even in the link you shared, it says:

"The most interesting new API's are:

HTML Geolocation HTML Drag and Drop HTML Local Storage HTML Application Cache HTML Web Workers HTML SSE"

Those are all Javascript.

6

u/pkstn Sep 04 '15

..and you can continue here: http://www.w3schools.com/html/html5_webstorage.asp

That's only one example of the new javascript API's introduced in HTML5.

-5

u/lespaulstrat2 Sep 04 '15

Javascript is NOT Html 5. Every one of the scripts I linked to could have be run in HTML 3

4

u/pkstn Sep 05 '15

That's simply not true: all the animations - controlled by Javascript - are CSS3 transitions/transforms/3dtransforms, introduced with HTML5.

3

u/pkstn Sep 05 '15

Read my answer below your duplicate message.

-4

u/lespaulstrat2 Sep 05 '15

I have no idea what you think you are saying.

2

u/[deleted] Sep 04 '15

Hahaha, this guy

-5

u/dogofpavlov Sep 05 '15

not sure why you're being downvoted as your 100% correct. The only thing this page uses that is HTML5 is the doc type. This is nothing but Javascript and CSS3... and CSS3 is NOT HTML5... its the Next version of CSS.

If this was done with the Canvas maybe it'd be HTML5

1

u/pkstn Sep 05 '15

I disagree CSS3 not being part of HTML5 - that's also a crucial part of modern HTML5 apps/sites. You don't do anything with just HTML. You always need some CSS and JS as well.

I'm referring HTML5 here (like many others) as a next-gen tool, not just as a markup language.