function timer() {
    var a;
    a = document.getElementById("timer");
    a.innerHTML = "&#xf254;"+"<br><br> 6 ";
    setTimeout(function () {
        a.innerHTML = "&#xf251;"+"<br><br> 5 ";
      }, 1000);
    setTimeout(function () {
        a.innerHTML = "&#xf252;"+"<br><br>  4 ";
      }, 2000);
    setTimeout(function () {
        a.innerHTML = "&#xf253;"+"<br><br> 3 ";
      }, 3000);
    setTimeout(function () {
        a.innerHTML = "&#xf250;"+"<br><br> 2 ";
      }, 4000);
    setTimeout(function () {
      a.innerHTML = "&#xf250;"+"<br><br> 1 ";
    }, 5000);
    setTimeout(function () {
      a.innerHTML = "&#xf250;"+"<br><br>  0 ";
    }, 6000);    
    setTimeout(function () {
      a.innerHTML = "<br><br> Click mic and speak again";
    }, 7000);
  }
// timer start/end function after mic is clicked
timer start/end function after mic is clicked
timer start / end function after mic is clicked
function timer() {
    var a;
    a = document.getElementById("timer");
    a.innerHTML = "&#xf254;"+"<br><br> 6 ";
    setTimeout(function () {
        a.innerHTML = "&#xf251;"+"<br><br> 5 ";
      }, 1000);
    setTimeout(function () {
        a.innerHTML = "&#xf252;"+"<br><br>  4 ";
      }, 2000);
    setTimeout(function () {
        a.innerHTML = "&#xf253;"+"<br><br> 3 ";
      }, 3000);
    setTimeout(function () {
        a.innerHTML = "&#xf250;"+"<br><br> 2 ";
      }, 4000);
    setTimeout(function () {
      a.innerHTML = "&#xf250;"+"<br><br> 1 ";
    }, 5000);
    setTimeout(function () {
      a.innerHTML = "&#xf250;"+"<br><br>  0 ";
    }, 6000);    
    setTimeout(function () {
      a.innerHTML = "<br><br> Click mic and speak again";
    }, 7000);
  }
function timer ( ) { var a ; a = document . getElementById ( "timer" ) ; a . innerHTML = "&#xf254;" + "<br><br> 6 " ; setTimeout ( function ( ) { a . innerHTML = "&#xf251;" + "<br><br> 5 " ; } , 1000 ) ; setTimeout ( function ( ) { a . innerHTML = "&#xf252;" + "<br><br>  4 " ; } , 2000 ) ; setTimeout ( function ( ) { a . innerHTML = "&#xf253;" + "<br><br> 3 " ; } , 3000 ) ; setTimeout ( function ( ) { a . innerHTML = "&#xf250;" + "<br><br> 2 " ; } , 4000 ) ; setTimeout ( function ( ) { a . innerHTML = "&#xf250;" + "<br><br> 1 " ; } , 5000 ) ; setTimeout ( function ( ) { a . innerHTML = "&#xf250;" + "<br><br>  0 " ; } , 6000 ) ; setTimeout ( function ( ) { a . innerHTML = "<br><br> Click mic and speak again" ; } , 7000 ) ; }
timer start/end function after mic is clicked
timer start / end function after mic is clicked