bobboteck / JoyStick

A simple JoyStick that use HTML5, Canvas and Vanilla JavaScript, for touch and mouse interfaces (no JQuery required), preview at:
https://bobboteck.github.io/joy/joy.html
MIT License
365 stars 98 forks source link

Hosting on GitHub Pages would be helpful #35

Open williamsokol opened 2 years ago

williamsokol commented 2 years ago

I wanted to use this library without adding joy.js to my website (it is kind of a pain)

If this repo was hosted on GitHub pages it would easy to use by just saying: <script src="https://bobboteck.github.io/JoyStick/joy.js"></script>

For now I forked the repo and am using: <script src="https://williamsokol.github.io/JoyStick/joy.js"></script> But it'd be nice for new people if they did not have to fork it.

bobboteck commented 2 years ago

I @williamsokol you can use a reference to the file in the github release of the repository

https://github.com/bobboteck/JoyStick/releases/download/v2.0.0/joy.min.js

You think is a good solution?

williamsokol commented 2 years ago

So what I ended up doing was use the joy.js from the example: https://bobboteck.github.io/joy/joy.js so that works! It might be nice to say we can do that in the readme though.