Copy to clipboard function
Fix flash position on window resize