myEvents.js 628 B

12345678910111213141516171819202122232425262728293031
  1. $(document).ready(function(){
  2. function newElementaddressSpace(){
  3. var $tr = $('<tr>');
  4. $tr.append('<td><img src='+'graphics/Gauge.svg'+' height='+"100"+' width='+"100"+'></img></td></tr>');
  5. $('#tree').append($tr);
  6. console.log("this funct");
  7. }
  8. function parseAll(){
  9. var fs = require('fs');
  10. var files = fs.readdirSync('.');
  11. console.log('OK: ' + files);
  12. }
  13. $(".nodeRoot").click(function () {
  14. console.log("Here");
  15. $(this).css("border","5px solid green");
  16. })
  17. $("#load_nodeset").click(function(){
  18. newElementaddressSpace();
  19. parseAll();
  20. console.log("Button1 clicked")
  21. })
  22. });