mirror of
https://github.com/arnaucube/class2context.git
synced 2026-02-07 03:06:43 +01:00
readme added
This commit is contained in:
17
README.md
17
README.md
@@ -1,2 +1,19 @@
|
|||||||
# class2context
|
# class2context
|
||||||
javascript library, to add context menu functionallity to html page
|
javascript library, to add context menu functionallity to html page
|
||||||
|
|
||||||
|
Demo: class2context_DEMO.html
|
||||||
|
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
First, include the files
|
||||||
|
```html
|
||||||
|
<link rel='StyleSheet' type='text/css' href='class2context.css'>
|
||||||
|
<script src='class2context.js'></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, for each class, call the function
|
||||||
|
```js
|
||||||
|
class2context('className', "title for contextmenu", [["option 1", "function1()"], ["option 2","function2()"]]);
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
demoScreen.png
Normal file
BIN
demoScreen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
Reference in New Issue
Block a user