annyang
annyang copied to clipboard
Uncaught ReferenceError: annyang is not defined
Good day,
I currently working in AnnyangJS. But when i link the cdn of annyang and used this syntax, `
// Add our commands to annyang annyang.addCommands(commands);
// Start listening. annyang.start(); }} `
It produces an error Uncaught ReferenceError: annyang is not defined
,
But i was tried in your website demo, it works.
Hello @einnar82 ,
I guess you have copied the code example from the demo. Have a look at the "src" attribute of the annyang script. It is
<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script>
You have to change it to
<script src="https://cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script>
I hope this will help you in your project!
...or source the file locally ;-)