]> git.ardis.lu - sleepy-operators/commitdiff
Add random "z"s to ASCII art
authorArdis Lu <ardisglu@gmail.com>
Wed, 28 Aug 2024 05:12:02 +0000 (22:12 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 28 Aug 2024 05:12:02 +0000 (22:12 -0700)
script.js

index f1181be7c5241405184ca60cb676b584b701ef55..8b5c6ae6ee531f04ada28b4cea2d0634405b3c03 100644 (file)
--- a/script.js
+++ b/script.js
@@ -3,23 +3,24 @@ import * as sleepy from '/sleepy-operators.js';
 globalThis.sleepy = sleepy;
 
 const ascii =
-`    _
-    | |
- ___| | ___  ___  _____  _   _
-| __| || _ || _ ||  _  || | | |_____
-|_  | || __|| __|| |_| || |_| |_____|
-|___|_||___||___||  ___||___  |
-                 | |      __| |
-                 |_|     |____|
+`    _                                            
+    | |                                           
+ ___| | ___  ___  _____  _   _                    
+| __| || _ || _ ||  _  || | | |_____              
+|_  | || __|| __|| |_| || |_| |_____|             
+|___|_||___||___||  ___||___  |                   
+                 | |      __| |                   
+                 |_|     |____|                   
  _____ _____ ___  ___  ____ | |_  _____  ____ ___
 |  _  |  _  | _ ||  _|/ _  ||  _||  _  ||  __/ __|
 | |_| | |_| | __|| | | |_| || |__| |_| || |  |__ |
 |_____|  ___|___||_| |_____||____|_____||_|  |___|
-      | |
-      |_|`;
+      | |                                         
+      |_|                                         `;
 
 globalThis.help = function help() {
-  console.log(`%c ${ascii}`, 'font-weight: bold');
+  const asciiReplaced = [...ascii].map(c => c === ' ' && Math.random() < 0.1 ? 'z' : c).join('');
+  console.log(`%c ${asciiReplaced}`, 'font-weight: bold');
   console.log('🥱 Hello! Type functions() to display all the sleepy-operators.');
 }
 help();
This page took 0.051011 seconds and 4 git commands to generate.