JSFiddle - React, Tailwind, and code Playground

by tuga

HTML

<div id="status"></div>

JavaScript

var newresp = "success";

if(newresp == "success")
{
var newmsg="<img src='images/myimg.png'><span style='color:#00CCFF;font-size:25px;margin-top:2px'> validated!</span>";
var newmsg1="redirecting ......";

    $( "#status" ).hide().fadeIn( 500 ).html(newmsg).delay( 2000 ).fadeOut( 500 );

    setTimeout(function() {
        $( "#status" ).hide().fadeIn(500 ).html(newmsg1).delay( 2000 ).fadeOut( 500 );
    }, 3000);
    
        setTimeout(function() {
            window.location='http://google.com';
    }, 6000);



};