Cybersecurity in the New Norm
listenButton2.onclick = function(){
if( responsiveVoice.isPlaying() ){
document.getElementById( "PlayPause" ).innerHTML = "
Read Article";
document.getElementById("soundTrackImg").innerHTML = "
";
responsiveVoice.cancel();
} else {
document.getElementById("soundTrackImg").innerHTML = "
";
document.getElementById("PlayPause").innerHTML = "
Stop";
responsiveVoice.speak("Cybersecurity in the New Norm.", "UK English Female");
}
};
window.setInterval(function(){
if( !responsiveVoice.isPlaying() ){
if ( document.getElementById("PlayPause").innerText.trim() !== "Read Article" ) {
document.getElementById( "PlayPause" ).innerHTML = "
Read Article";
document.getElementById("soundTrackImg").innerHTML = "
";
responsiveVoice.cancel();
}
}
}, 1000);
Advertisement