Browse Source

readme added

master
nau 7 years ago
parent
commit
a75cd09fac
2 changed files with 17 additions and 0 deletions
  1. +17
    -0
      README.md
  2. BIN
      demoScreen.png

+ 17
- 0
README.md

@ -1,2 +1,19 @@
# class2context
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

Before After
Width: 850  |  Height: 386  |  Size: 87 KiB

Loading…
Cancel
Save