Commit b2547395 authored by Raphaël Bastide's avatar Raphaël Bastide

Minor JS

parent 8de74b98
Pipeline #2793855 skipped
......@@ -28,13 +28,11 @@ $('.charlist').each(function(){
var btns = document.querySelectorAll('.charlist span');
var clipboard = new Clipboard(btns);
function anim(elm){
console.log(elm);
elm.classList.remove('success');
}
clipboard.on('success', function(e) {
var trigger = e.trigger;
trigger.classList.add('success');
//setTimeout("anim("+trigger+")", 2000);
setTimeout(function() {
anim(trigger);
}, 700)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment