From 98ea6d0a94df342d5de3908df33601db7d6b31c2 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 24 Mar 2019 14:51:29 +0100 Subject: committing untracked files --- frontend/index.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'frontend') diff --git a/frontend/index.html b/frontend/index.html index 741f2fc..e4fdece 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -11,7 +11,7 @@ Galaxy Simulator - + @@ -20,7 +20,7 @@ function newTree() { var w = document.getElementById("w").value; - var url = "http://localhost:8081/newTree"; + var url = "http://localhost:8080/newTree"; var params = "w=" + w; console.log(params) var xhr = new XMLHttpRequest(); @@ -29,7 +29,7 @@ xhr.send(params); } function deleteAllStars() { - var url = "http://localhost:8081/deleteStars"; + var url = "http://localhost:8080/deleteStars"; var params = ""; var xhr = new XMLHttpRequest(); xhr.open("POST", url, true); @@ -37,7 +37,7 @@ xhr.send(params); } function deleteAllNodes() { - var url = "http://localhost:8081/deleteNodes"; + var url = "http://localhost:8080/deleteNodes"; var params = ""; var xhr = new XMLHttpRequest(); xhr.open("POST", url, true); @@ -45,7 +45,7 @@ xhr.send(params); } function updateTotalMass() { - var url = "http://localhost:8081/updateTotalMass"; + var url = "http://localhost:8080/updateTotalMass"; var params = "index=1"; var xhr = new XMLHttpRequest(); xhr.open("POST", url, true); @@ -53,7 +53,7 @@ xhr.send(params); } function updateCenterOfMass() { - var url = "http://localhost:8081/updateCenterOfMass"; + var url = "http://localhost:8080/updateCenterOfMass"; var params = "index=1"; var xhr = new XMLHttpRequest(); xhr.open("POST", url, true); @@ -61,7 +61,7 @@ xhr.send(params); } function generateForest() { - var url = "http://localhost:8081/genForestTree"; + var url = "http://localhost:8080/genForestTree"; var params = ""; var xhr = new XMLHttpRequest(); xhr.open("GET", url, true); @@ -76,7 +76,7 @@ var m = document.getElementById("m").value; var index = document.getElementById("index").value; - var url = "http://localhost:8081/insertStar"; + var url = "http://localhost:8080/insertStar"; var params = "x=" + x + "&y=" + y + "&vx=" + vx + "&vy=" + vy + "&m=" + m + "&index=" + index; console.log(params) var xhr = new XMLHttpRequest(); @@ -85,7 +85,7 @@ xhr.send(params); } function insertList() { - var url = "http://localhost:8081/insertList"; + var url = "http://localhost:8080/insertList"; var params = ""; var xhr = new XMLHttpRequest(); xhr.open("GET", url, true); @@ -129,7 +129,7 @@
-
+

New tree

Create a new tree

@@ -220,7 +220,7 @@
- +

Insert star

Insert a single star into the tree

-- cgit 1.4.1