/* class2context.js creator: Arnau July 2016 version: v0.1 usage: class2context( 'className', "title", [["option1", "functionoption1()"], ["option 2","functionoption2()"]] ); */ //creates the div where the context menus will place document.body.innerHTML+="
"; // function class2context(classgiv, title, options){ classgiv=JSON.parse(JSON.stringify(classgiv)); if(document.getElementById("context"+classgiv)) { //toastr.success("alreadyExist"); }else{ var aux=""; aux+="