diff --git a/atcheck-websocket/server.js b/atcheck-websocket/server.js
index a39afbf..52ce1b7 100644
--- a/atcheck-websocket/server.js
+++ b/atcheck-websocket/server.js
@@ -12,15 +12,16 @@ wss.on('connection', function connection(ws) {
});
var server = http.createServer(function (request, response) {
-
response.writeHead(200, {"Content-Type": "text\plain"});
request.setEncoding('utf8');
if (request.method === "POST") {
var body = '';
+
request.on('data', function (chunk) {
body += chunk;
});
+
request.on('end', function () {
body = JSON.parse(body);
console.log(body);
diff --git a/lsscanner/new_ubuntu/classcode.html b/lsscanner/new_ubuntu/classcode.html
index 1953821..f6c56e0 100755
--- a/lsscanner/new_ubuntu/classcode.html
+++ b/lsscanner/new_ubuntu/classcode.html
@@ -2,45 +2,44 @@
-
-
-
+
+
+
- Add classes
+ Weryfikacja kodu zajęć
-
-
+
diff --git a/lsscanner/new_ubuntu/main.js b/lsscanner/new_ubuntu/main.js
index c6e2d1f..73a39f8 100755
--- a/lsscanner/new_ubuntu/main.js
+++ b/lsscanner/new_ubuntu/main.js
@@ -297,7 +297,7 @@ function printStudent(item) {
});
-axios.post('http://127.0.0.1:8889', JSON.stringify({
+axios.post('https://150.254.78.197:8889', JSON.stringify({
classes_code: class_code,
student_index: item[2],
student_name: item[0],
@@ -336,39 +336,7 @@ ipcMain.on("set:classcode", function (e,classcode) {
})
//Menu template
-const mainMenuTemplate = [{
- label: "Student",
- submenu: [{
- label: "Add student",
- accelerator: process.platfrom == "darwin" ? "Command+E" : "Ctrl+E",
- click() {
- createAddWindow();
- }
- },
- {
- label: "Quit program",
- accelerator: process.platfrom == "darwin" ? "Command+Q" : "Ctrl+Q",
- click() {
- app.quit();
- }
- }
- ]
-}, {
- label: "Classes",
- submenu: [{
- label: "Add classes",
- click() {
- createAddClassesWindow();
- }
- },
- {
- label: "Pick classes",
- click() {
- createSelectClassesWindow();
- }
- }
- ]
-}];
+const mainMenuTemplate = [];
//If mac psuh empty obj to Menu
if (process.platfrom == "darwin") {
diff --git a/resources/views/map/start_map.blade.php b/resources/views/map/start_map.blade.php
index 340a7d8..3c5c4c8 100644
--- a/resources/views/map/start_map.blade.php
+++ b/resources/views/map/start_map.blade.php
@@ -46,7 +46,7 @@