1.0.2 • Published 5 years ago

komojs v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Komo

Komo is a simple and lightweight utility for creating a Spotlight style popup on your website.

Example Usage:

const params = {
  dark: false, // (Boolean) Dark Mode
  openKey: 75, // (Integer) Key Code (https://keycode.info/)
  openKeyModifier: "META||CTRL", // (String) Modifier Key: "CTRL", "SHIFT", "META", "META||CTRL", ""
};

function callback(command) {
  console.log(command);
}

Komo(params, callback);

CDN:

CSS:

https://cdn.jsdelivr.net/gh/jskull/komo@1.x/src/komo.css

JS:

https://cdn.jsdelivr.net/gh/jskull/komo@1.x/src/komo.min.js

(The default key to open Komo is CMD/CTRL + K)

Feel free to fork and contribute to this project! I will gladly accept your pull requests if they fit this utility.

If you have any ideas of what can be added to komo, send me an email j@rokita.group I will gladly hear you out!

Example of Komo: komo.js.org