MCPcopy Index your code
hub / github.com/egoist/corner-notie

github.com/egoist/corner-notie @v1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.1 ↗ · + Follow
11 symbols 25 edges 3 files 0 documented · 0% updated 4y ago★ 90
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

corner-notie

NPM version NPM download

A corner tip utility.

Install

Hot-link the IIFE version in your web page directly, CSS is automatically included.

or via NPM:

npm i -S corner-notie

Usage

// if you are using webpack/browserify
import notie from 'corner-notie'

notie('hello world')

// default options
notie('', {
  type: 'info', // info | warning | success | danger
  autoHide: true,
  timeout: 3000,
  position: 'top-right',
  width: 240
})

Positions

top-right | top-left | top-center

bottom-right | bottom-left | bottom-center

Click to hide notie

When autoHide is set to be false, you can click on the notie to hide it. In this way you may not want to hide notie when clicking on a href. Set attribute notie-prevent on that element to prevent from being hidden by clicking there.

notie('hello <a notie-prevent href="https://github.com/egoist/corner-notie/raw/v1.2.1/u/egoist">egoist</a>', {
  type: 'success',
  autoHide: false
})

Development

# build for webpack and browser
# run this each time you want to make new release
npm run build
# run gulp for development
npm run dev

License

MIT.

Core symbols most depended-on inside this repo

startTimeout
called by 2
src/notie.js
removeNotie
called by 2
src/notie.js
domEach
called by 1
src/notie.js
init
called by 1
src/notie.js
notify
called by 1
src/notie.js
registerEvents
called by 1
src/notie.js
postcss
called by 0
webpack.config.js
constructor
called by 0
src/notie.js

Shape

Method 6
Function 3
Class 2

Languages

TypeScript100%

Modules by API surface

src/notie.js10 symbols
webpack.config.js1 symbols

For agents

$ claude mcp add corner-notie \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page