I am currently using Intro.js for my website and the code works is here
<h2 data-step="1" data-intro="Welcome message!">Welcome back</h2>
I wanted to put this audio playback button within the data-intro tag, how do I do it?
<a onclick="this.firstChild.play()" ><audio src="Audio/WelcomeBack.wav"></audio>▸ </a>
I've tried things like
<h2 data-step="1" data-intro="Welcome message! <a onclick="this.firstChild.play()" ><audio src="Audio/WelcomeBack.wav"></audio>▸ </a>">Welcome back</h2>
But it doesn't read the tag.
Sorry, I am still a newbie and need help here :)
In order to do this job, you have to use programmatic defining using JSON.
For instance:
See this example for more information: http://usablica.github.io/intro.js/example/html-tooltip/index.html