Skip to content

kurybr/secret-code.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secret Code

Generate a secret code to your project
Gere um código secreto para seu projeto

🚨 ATTENTION 🚨 This code don't work in Internet Explorer 💩💩
🚨 ATENÇÃO 🚨 Esse código não funciona no Internet Explorer 💩💩

Description

Create your secret code and add easter egg on your projects

Dependences

  • Nothing

How Use

let options = { 
	enableMobile: Boolean, // Trigger Secretcode on mobile using touch event
	taps: Number // Set touch  quantity  on page to trigger event, default is 5
}


const foo = new Secretcode("foo", options)
foo.listen((data) => { 
	// ... When entering the correct code trigger callback
	// ... Ao digitar o código correto dispara o callback
})

let secret = ['up', 'up', 'up', 'up', 'up']
const bar = new Secretcode(secret, options)
bar.listen((data) => { 

})

// Default secret code is Konami Code
// O Código secreto padrão é o Konami Code
new Secretcode().listen((data) => { })

About

Generate a secret code to your project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published