arnaucube
arnaucube/class2contextPublic Self-hosted repository
class2context/README.md
README.mdRaw
 1# class2context
 2javascript library, to add context menu functionallity to html page
 3
 4Demo: class2context_DEMO.html
 5
 6
 7![Alt text](https://raw.githubusercontent.com/idoctnef/class2context/master/demoScreen.png "downlad and open the demo to test it")
 8
 9
10
11### Usage
12First, include the files
13```html
14<link rel='StyleSheet' type='text/css' href='class2context.css'>
15<script src='class2context.js'></script>
16```
17
18Then, for each class, call the function
19```js
20class2context('className', "title for contextmenu", [["option 1", "function1()"], ["option 2","function2()"]]);
21```
22
23