Pranav M
2022-07-18 1f3da4b8292a7c2ef7eafe9b3a00ef40eb30edac
feat: edit the clipboard button to change border colour on success (#162)

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
1 files modified
5 ■■■■ changed files
assets/js/clipboard.js 5 ●●●● patch | view | raw | blame | history
assets/js/clipboard.js
@@ -25,7 +25,10 @@
                () => {
                    button.blur();
                    button.innerHTML = svgCheck;
                    setTimeout(() => (button.innerHTML = svgCopy), 2000);
                    setTimeout(() => {
                        button.innerHTML = svgCopy
                        button.style.borderColor = ""
                    }, 2000);
                },
                (error) => (button.innerHTML = "Error")
            );