Merge pull request #7 from Tucan444/Development

Development
This commit is contained in:
Tucan444 2021-05-12 09:28:42 +02:00 committed by GitHub
commit d6486298c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
33 changed files with 0 additions and 4352 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

@ -1,22 +0,0 @@
// fetch("http://192.168.1.105:8000/0/sensors")
// .then(function(response1){
// return response1.json();
// })
// .then(function(data1){
// appendData(data1);
// })
// .catch(function(err1){
// console.log(err1);
// });
// function appendData(data1){
// console.log(data1);
// var senzory = JSON.stringify(data1[1]["teplota"]);
// var mainContainer3 = document.getElementById("fuckthisshit");
// var div3 = document.createElement("div");
// div3.setAttribute("id", "endme");
// div3.innerHTML = data3[1].teplota
// mainContainer3.appendChild(div3);
// }

@ -1,5 +0,0 @@
var lmao = document.getElementById("fuckme")
function klol(){
if (lmao) lmao.className = " ";
lmao.style.color = "yellow";
}

@ -1,11 +0,0 @@
.circle{
width: 300px;
height: 300px;
background-color: magenta;
transition: background-color 1s 1s;
}
.circle:hover{
background-color: cyan;
border-radius: 50%;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

@ -1,22 +0,0 @@
{
"ID": "0",
"location": "izba",
"description": {
"title": "legionrpi",
"description_s": "krátky popis, ktorý bude zobrazený iba v náhladovom okne",
"description_l": "dlhší popis zariadenia, ktorý bude zobrazený po otvorení",
"photo_s": "mala_fotka.png",
"photo_b": "velka fotka.png"
},
"files": [
{
"name": "test",
"format": ".jpg",
"description": "toto je jpg test file"
}, {
"name": "test2",
"format": ".txt",
"description": "toto je txt test file"
}
]
}

@ -1,7 +0,0 @@
[
{
"id": "1",
"location": "izba",
"desc": "hey"
}
]

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

@ -1,48 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Race Register Form</title>
</head>
<body>
<h1>Race Registration!</h1>
<form action="reg">
<div>
<label for="first">First Name</label>
<input type="text" name="first" id="first">
<label for="last">Last Name</label>
<input type="text" name="last" id="last">
</div>
<p>Select a Race:</p>
<div>
<input type="radio" name="run" id="5k">
<label for="5k">Fun Run 5k</label>
</div>
<div>
<input type="radio" name="run" id="half">
<label for="half">Half Marathon</label>
</div>
<div>
<input type="radio" name="run" id="full">
<label for="full">Full Marathon</label>
</div>
<div>
<label for="mail">Email</label>
<input type="email" name="mail" id="mail">
<label for="pass">Password</label>
<input type="password" name="pass" id="pass">
</div>
<div>
<label for="age">Select Age Group</label>
<select name="age" id="age">
<option value="<18">under 18</option>
<option value="18-30">18-30</option>
<option value="30-50">30-50</option>
<option value="50+">50+</option>
</select>
</div>
<div>
<button>Register!</button>
</div>
</form>
</body>
</html>

@ -1,5 +0,0 @@
const object = { name: "John Smith" };
const json = JSON.stringify(object); // {"name":"John Smith"}
console.log(json);
const unquoted = json.replace(/"([^"]+)":/g, '$1:');
console.log(unquoted); // {name:"John Smith"}

@ -1,12 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="navigacia.css">
<title>Navigácia</title>
</head>
<body>
</body>
</html>

@ -1,24 +0,0 @@
[
{
"id": "1",
"firstName": "John",
"lastName": "Doe"
},
{
"id": "2",
"firstName": "Mary",
"lastName": "Peterson"
},
{
"id": "3",
"firstName": "George",
"lastName": "Hansen"
}
]
var mainContainer = document.getElementById("myData");
var div = document.createElement("div");
div.innerHTML = escape(data[1]["description"]["description_s"] + "<br>");
Kql = unescape(data[1]["description"]["description_s"]);
mainContainer.appendChild(div);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 KiB

@ -1,13 +0,0 @@
fetch("http://192.168.1.105:8000/docs#/default/update_sensors_update_sensor_post")
.then(function(response1){
return response.json();
})
.then(function(data1){
appendData(data1);
})
.catch(function(err1){
});
function appendChild(data1){
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

@ -1 +0,0 @@
Lorem ipsum dolor sit amet consectetur adipisicing elit. Error placeat optio facere nobis, ex tempore aut illo ipsum modi deserunt doloremque, harum ad ipsa perferendis assumenda cum magni perspiciatis delectus.

@ -1,26 +0,0 @@
fetch("http://192.168.1.105:8000/devices_list")
.then(function(response){
return response.json();
})
.then(function(data){
appendData(data);
})
.catch(function(err){
});
function appendData(data){
console.log(data);
console.log(data[1]["files"][0]);
var myJson1 = JSON.stringify(data[1]["description"]["title"]);
var uJson1 = myJson1.replace(/\"/g, "");
var str1 = (uJson1);
var str_esc1 = escape(str1);
console.log(str_esc1 + "<br>");
console.log(unescape(str_esc1));
var mainContainer = document.getElementById("myTitle");
var div1 = document.createElement("p");
div.setAttribute("id", "titleData")
div.innerHTML = unescape(str_esc1);
mainContainer.appendChild(div1);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB