-
-
Upload a file
@@ -280,7 +271,6 @@
>
-
diff --git a/javascript/filesHandling.js b/javascript/filesHandling.js
index 1eb52e2..ba60148 100644
--- a/javascript/filesHandling.js
+++ b/javascript/filesHandling.js
@@ -99,14 +99,14 @@ document.addEventListener("DOMContentLoaded", function () {
return textFile;
};
- var download = document.getElementById("downloadFirstEditor");
- var download2 = document.getElementById("downloadSpecifications");
+ var downloadEditorText = document.getElementById("downloadFirstEditor");
+ var downloadSpecifications = document.getElementById("downloadSpecifications");
var input1 = editor;
var input2 = editor2;
// Add an event listener to the button for the click event
- download.addEventListener("click", function () {
+ downloadEditorText.addEventListener("click", function () {
// Check if the editor is empty
if (!editor.getValue()) {
Toastify({
@@ -137,7 +137,7 @@ document.addEventListener("DOMContentLoaded", function () {
}
});
- download2.addEventListener("click", function () {
+ downloadSpecifications.addEventListener("click", function () {
if (!editor2.getValue()) {
Toastify({
text: "Specifications field empty",
diff --git a/javascript/index.js b/javascript/index.js
index def584b..dde1e16 100644
--- a/javascript/index.js
+++ b/javascript/index.js
@@ -15,13 +15,7 @@ var editor2 = CodeMirror.fromTextArea(input2, {
lineNumbers: true,
});
document.addEventListener("DOMContentLoaded", function () {
- // var input = document.createElement("input");
- // input.type = "file";
- // input.classList.add("customInput", "col-3");
- // input.setAttribute("id", "fileInputEditor");
- // const position = { line: 1, ch: 2 };
-
- // editor.addWidget(position, input, false);
+
//Run function
document.getElementById("runBtn").addEventListener("click", function () {
@@ -69,6 +63,8 @@ function graphFunction(svg) {
graph = svg;
}
+
+
function getActiveTabContent() {
var activeTabId = document.querySelector(".rightNav.active").id;
switch (activeTabId) {
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
index a6e59e9..5dc7729 100644
--- a/node_modules/.package-lock.json
+++ b/node_modules/.package-lock.json
@@ -1,5 +1,5 @@
{
- "name": "Internship",
+ "name": "testingwasm_new",
"lockfileVersion": 3,
"requires": true,
"packages": {
diff --git a/package-lock.json b/package-lock.json
index 4068fde..5c6eb91 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,5 +1,5 @@
{
- "name": "Internship",
+ "name": "testingwasm_new",
"lockfileVersion": 3,
"requires": true,
"packages": {