第7章 3222222222222222(1 / 1)

<!DOCTYPE html> <html lang\u003d\"en\"> <head> <meta charset\u003d\"UTF-8\"> <title>Code</title> <style> body{ margin: 0; overflow: hidden; } </style> </head> <body> <canvas id\u003d\"myCanvas\"></canvas> <script> const width \u003d document.getElementById(\"myCanvas\").width \u003d screen.availWidth; const height \u003d document.getElementById(\"myCanvas\").height \u003d screen.availHeight; const ctx \u003d document.getElementById(\"myCanvas\").getContext(\"2d\"); const arr \u003d Array(Math.ceil(width / 10)).fill(0); const str \u003d \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\".split(\"\"); function rain() { ctx.fillStyle \u003d \"rgba(0,0,0,0.05)\"; ctx.fillRect(0, 0, width, height); ctx.fillStyle \u003d \"#0f0\"; arr.forEach(function (value, index) { ctx.fillText(str[Math.floor(Math.random() * str.length)], index * 10, value + 10); arr[index] \u003d value >\u003d height || value > 8888 * Math.random() ? 0 : value + 10; }); } setInterval(rain, 30); </script> </body> </html>

\"files.encoding\": \"utf8\",

\"terminal.integrated.profiles.windows\": {<!-- -->

\"Command Prompt\": {<!-- -->

\"path\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",

\"args\": [\"-NoExit\", \"/K\", \"chcp 65001\"]

},

\"PowerShell\": {<!-- -->

\"path\": \"C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe\",

\"args\": [\"-NoExit\", \"/C\", \"chcp 65001\"]