Browse Source

copied parseAll into myEvents.js

DS 2 years ago
parent
commit
f5a0f55bf2
1 changed files with 6 additions and 3 deletions
  1. 6 3
      js/myEvents.js

+ 6 - 3
js/myEvents.js

@@ -7,6 +7,11 @@ $(document).ready(function(){
 		console.log("this funct");
 	}
 	
+	function parseAll(){
+		var fs = require('fs');
+		var files = fs.readdirSync('.');
+		console.log('OK: ' + files);
+	}
 	
 	$(".nodeRoot").click(function () {
 		console.log("Here");
@@ -16,9 +21,7 @@ $(document).ready(function(){
 	$("#load_nodeset").click(function(){
 		
 		newElementaddressSpace();
-		$.getScript('js/executeNodeSetParser.js', function(jd) {
-		let lt = parseAll()
-		})
+		parseAll();
 		
 		console.log("Button1 clicked")
 	})