You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
435 B

7 years ago
7 years ago
  1. # class2context
  2. javascript library, to add context menu functionallity to html page
  3. Demo: class2context_DEMO.html
  4. ### Usage
  5. First, include the files
  6. ```html
  7. <link rel='StyleSheet' type='text/css' href='class2context.css'>
  8. <script src='class2context.js'></script>
  9. ```
  10. Then, for each class, call the function
  11. ```js
  12. class2context('className', "title for contextmenu", [["option 1", "function1()"], ["option 2","function2()"]]);
  13. ```