Skip to content

Commit

Permalink
Updated the gif path and html comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus2281 committed Jan 11, 2023
1 parent dd1f3cf commit 415df20
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![npm](https://img.shields.io/npm/v/joystick-controller)
![GitHub](https://img.shields.io/github/license/cyrus2281/joystick-controller)

![joystick-controller](https://github.com/cyrus2281/joystick-controller/tree/main/example/joystick-controller.gif)
![joystick-controller](https://raw.githubusercontent.com/cyrus2281/joystick-controller/main/example/joystick-controller.gif)

A fully customizable JavaScript virtual joystick controller for both desktop and mobile devices supporting multi instances.
[Live Demo](https://joystick-controller.netlify.app)
Expand Down
4 changes: 2 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
<p>Angle: <span id="angle2"></span></p>
</div>
</div>
<!-- <script src="https://cdn.statically.io/gh/cyrus2281/joystick-controller/main/dist/umd/joystick-controller.min.js"></script> -->
<script src="https://cdn.statically.io/gh/cyrus2281/joystick-controller/main/dist/umd/joystick-controller.min.js"></script>
<script type="module">
// uncomment for dev. (the CDN uses the global import, no need for module import)
import JoystickController from '../src/joystick-controller.js';
// import JoystickController from '../src/joystick-controller.js';

const x = document.querySelector("#x");
const y = document.querySelector("#y");
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joystick-controller",
"version": "1.0.7",
"version": "1.0.8",
"description": "A JavaScript virtual joystick controller for both desktop and mobile devices.",
"scripts": {
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --extensions \".js,.ts,.tsx\" --out-dir dist/lib",
Expand Down

0 comments on commit 415df20

Please sign in to comment.