Daily Dispatch 32 - WebComponents are fun
See here at a Ghost Publication we can embed HTML into our posts.
That means I can embed games here. Check out this memory game:
Don't worry if it takes a long time to load the game, the images are heavy, according to the documentation.
This is it, I'll speak more on WebComponents and how they allowed me to put a game inside a post.
But the gist of it is that web components export advanced javascript CSS and HTML as a simple HTML Tag which you can then use.
Check out the code I wrote to get the game on this post:
<div style="width:100%;height:100%">
<mini-memory matrix="2x2"></mini-memory>
</div>
<script src="//unpkg.com/mini-memory@latest/public/mini-memory.min.js"></script>
That was it, pretty cool hm?