enable copy button again

This commit is contained in:
Daniela Arcese 2017-06-20 15:36:43 -04:00
parent 9e228417b4
commit 4e040eece0

View file

@ -28,7 +28,10 @@ $(document).ready(function() {
//disable button for 3s //disable button for 3s
$copyBtn.attr('disabled', true) $copyBtn.attr('disabled', true)
$copyBtn.html('Copied!'); $copyBtn.html('Copied!');
window.setTimeout(()=>{
$copyBtn.attr('disabled', false);
$copyBtn.html('Copy');
}, 3000);
}); });
// link back to home page // link back to home page