JSFiddle - React, Tailwind, and code Playground

by karim79

HTML

<a id="stopPiracy" href="#">Stop Piracy</a>

CSS

#stopPiracy {
   font-weight: bold;
   font-size: 15px; 
}

JavaScript

$("#stopPiracy").on("click", function () {
    var that = this;
    $(this).text("Stopping piracy...");
    setTimeout(function () {
        $(that).text("Oh noes, they worked around our measure. Please try again.");
        setTimeout(function () {
            $(that).text("Stop Piracy");
        }, 2000);            
    }, 3000);        
    
});