Miscellaneous

Clipboard

Context Menu

To create a basic context menu use $.contextMenu() and add your target with selector: "#myId" items:{ name : "item 1" }

Idle Timer

The idle timer is built on jQuery and provides two events: idle.idleTimer and active.idleTimer, which fire when the user's idle state has changed. When you move your mouse over the page or start typing, you're considered "active".

Document second timeout
Element second timeout

Numeral.js

Numbers can be formatted to look like currency, percentages, times, or even plain old numbers with decimal places, thousands, and abbreviations. for information click here.

Input Value
numeral(974)
numeral(1230974).format('0.0a')
numeral(1000.234).format('$0,0.00')
numeral(3467479682787).format('0.000 ib')
numeral(0.974878234).format('0.000%')
numeral(63846).format('00:00:00')
numeral(1123456789).format('0,0e+0')