nau ae1ba1b47f | 8 years ago | |
---|---|---|
bootstrap | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago | |
class2context.css | 8 years ago | |
class2context.js | 8 years ago | |
class2context.png | 8 years ago | |
class2context_DEMO.html | 8 years ago | |
demoScreen.png | 8 years ago |
javascript library, to add context menu functionallity to html page
Demo: class2context_DEMO.html
First, include the files
<link rel='StyleSheet' type='text/css' href='class2context.css'>
<script src='class2context.js'></script>
Then, for each class, call the function
class2context('className', "title for contextmenu", [["option 1", "function1()"], ["option 2","function2()"]]);