Skip to content

Offer a tutorial to users through the browser's console

Notifications You must be signed in to change notification settings

cloudinary/console-cool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

console-cool

Offer a tutorial to users through the browser's console

To setup the scripts, create a message list:

const messages = {
  1: {
    content: "One liner",
    code: "console.log('oneliner')"
  },
  someStep: {
    content: [
      "A multiline line",
      "content"
    ],
    code: [
      "console.log('I am multiline')",
      "console.log('too!')"
    ]
  },
  formatted: {
    content: [
      ["%cSome old %csomething blue...", "color: grey", "color: blue"]
    ]
  }
}

About

Offer a tutorial to users through the browser's console

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published