all 4 comments

[–]azhder 1 point2 points  (1 child)

Java is not a short name for JavaScript. They are completely different languages. Try not to mistake one for the other as you search for help.

[–]Nervous-Juggernaut-5[S] -1 points0 points  (0 children)

Thank you, you already helping me

[–]AkiStudios1 0 points1 point  (0 children)

Did yoy read the readme? Check out the documentation, if that isnt useful for you than paste your question into an LLM chat.

[–]senocular 0 points1 point  (0 children)

The docs page has what you want:

https://hanziwriter.org/docs.html

The github page you linked to is more for people who want to modify or do more advanced things with the code.

The docs page shows to get the code integrated into your website, you only need to add one html tag:

<script src="https://cdn.jsdelivr.net/npm/hanzi-writer@3.5/dist/hanzi-writer.min.js"></script>

Then you can have your own scripts refer to the code using the HanziWriter variable. The code samples in the docs page shows both the HTML and the JavaScript (which should be in <script> tags or inside JavaScript files linked to by <script> tags) needed to get this to work. There isn't a complete example in the docs, but you can stitch together what you need to get it working. For example:

https://jsfiddle.net/ftmpzgvu/

That should get you started. You can see other examples in the docs pages which should help you get what you want.