Skip to content

Commit eb9e7ba

Browse files
save file
1 parent 303bf9e commit eb9e7ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

merry-christmas/2025/merry-christmas-2025.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ <h3>
298298
img.src='https://javascript-2020.github.io/storage/images/snowflake1.png';
299299
img.style.cssText = 'position:absolute;bottom:50px;right:50px;z-index:99';
300300
img.tabIndex=0;
301-
img.onclick = e=>e.stopPropagation();
302-
img.onkeydown = e=>e.key=='m' && show();
301+
img.onclick = show;
303302

304303
document.body.append(img);
305304

306305

307-
function show(){
306+
function show(e){
308307

308+
e.stopPropagation();
309309
window.open('https://javascript-2020.github.io/images/image-1.jpg');
310310

311311
}//click

0 commit comments

Comments
 (0)