crop_rotate
Run
<!DOCTYPE html> <html> <head> <style> ul { border:0.1px solid black; list-style:none; padding:0; margin:0; display:none; } li { border:0.1px solid black; padding:5px; } .btn { padding:10px; background-color:#007bff; border:none; color:white; } </style> </head> <body> <h1>JavaScript on mouse leave</h1> <p id="paragraph">this text will be hidden after mouse enter</p> <button class="btn" id="btn">Enter mouse pointer</button> <script> let paragraph = document.getElementById('paragraph'); let btn = document.getElementById('btn'); btn.onmouseleave = function(){ paragraph.style.visibility = "hidden"; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KdWwNCnsNCiAgYm9yZGVyOjAuMXB4IHNvbGlkIGJsYWNrOw0KICBsaXN0LXN0eWxlOm5vbmU7DQogIHBhZGRpbmc6MDsNCiAgbWFyZ2luOjA7DQogIGRpc3BsYXk6bm9uZTsNCn0NCmxpDQp7DQogIGJvcmRlcjowLjFweCBzb2xpZCBibGFjazsNCiAgcGFkZGluZzo1cHg7DQp9DQogLmJ0bg0KIHsNCiAgIHBhZGRpbmc6MTBweDsNCiAgIGJhY2tncm91bmQtY29sb3I6IzAwN2JmZjsNCiAgIGJvcmRlcjpub25lOw0KICAgY29sb3I6d2hpdGU7DQogfQ0KPC9zdHlsZT4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+IDo6LXdlYmtpdC1zY3JvbGxiYXJ7d2lkdGg6N3B4O2hlaWdodDo3cHg7fTo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2t7YmFja2dyb3VuZDojZmZmO306Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1ie2JvcmRlci1yYWRpdXM6NXB4O2JhY2tncm91bmQ6IzJmNDVmZjt9PC9zdHlsZT48L2hlYWQ+DQo8Ym9keT4NCjxoMT5KYXZhU2NyaXB0IG9uIG1vdXNlIGxlYXZlPC9oMT4NCjxwIGlkPSJwYXJhZ3JhcGgiPnRoaXMgdGV4dCB3aWxsIGJlIGhpZGRlbiB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