diff --git a/.gitignore b/.gitignore index 32ee89f..65c6f32 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ **/*.xml **/*.pyc **/*.swp +NOTES.md \ No newline at end of file diff --git a/app/static/css/style.css b/app/static/css/style.css index e3dc7e9..71b3591 100755 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -127,4 +127,23 @@ input[type=text]{ color: var(--accent-color); font-weight: bold; cursor: pointer; -} \ No newline at end of file +} + +.animate { animation: disappear 1s linear; } +.copyAlert { + background: var(--dark-accent-color); + color: var(--header-text); + border-radius: inherit; + line-height: 3vw; + position: absolute; + height: 100%; + width: 100%; + opacity: 0; + left: 0; + top: 0; +} +@keyframes disappear { + 0% { opacity: 0; } + 5% { opacity: 1; } + 100% { opacity: 0; } +} diff --git a/app/static/js/table.js b/app/static/js/table.js index d6344ac..552dca3 100644 --- a/app/static/js/table.js +++ b/app/static/js/table.js @@ -20,4 +20,10 @@ document.querySelector(".result-count").addEventListener("click", function() { addresses.push( element.querySelector("td:nth-child(3)").innerText ); }); navigator.clipboard.writeText(addresses.join('\n')); + // Play the Copy animation + var copyDiv = document.querySelector('.copyAlert:not(.animate)') + if(copyDiv) { + copyDiv.classList.add('animate'); + copyDiv.addEventListener('animationend', () => copyDiv.classList.remove('animate') ); + } }); diff --git a/app/templates/home.html b/app/templates/home.html index a5141f9..bed61a3 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -30,5 +30,5 @@ -
{{targets|count}}
+
{{targets|count}}✓
{% endblock %}