Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title></title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <style>
- img { width:100%;height:100px;display:block; }
- body { margin:0; }
- </style>
- </head>
- <body >
- <img id='app' src='https://neanderthal-emergen.000webhostapp.com/image.png' title='car'>
- <script>
- setTimeout(function(){
- app.style.display='none';
- },5000);
- document.body.addEventListener('keydown', function(event){
- var x = event.keyCode;
- if (x == 72) {
- app.style.display='block';
- }else if(x != 72){
- app.style.display='none';
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement