This commit is contained in:
JustSteel 2021-05-10 22:29:01 +02:00
parent 526315d65c
commit 9c1f8a973d
38 changed files with 4397 additions and 21 deletions

15
website/.vscode/launch.json vendored Normal file

@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}

BIN
website/BUTTON-d-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -30,8 +30,8 @@
</header>
<body>
<div id="downloadHolder">
<div id="download">SŤIAHNUŤ &#9660</div>
<a href=""><img src="samsung1.png" alt="" id="phoneImg"></a>
<a href=""></a><div id="appDownload">SŤIAHNUŤ &#9660</div></a>
<img src="wikispotphone.png" alt="" id="phoneImg">
</div>
</body>
</html>

@ -91,19 +91,20 @@ body {
/* ---------- Hlavná stránka ---------- */
#downloadHolder {
margin-top: 5%;
margin-left: 25%;
margin-left: 35%;
display: flex;
justify-content: space-between;
width: 550px;
align-items: center;
}
#download {
#appDownload {
cursor: pointer;
background-color: none;
color: white;
border: 4px white solid;
border-radius: 50px;
margin-right: -100px;
width: auto;
height: 20px;
padding: 10px;
@ -116,7 +117,8 @@ body {
color: rgb(47, 40, 150) ;
}
#phoneImg {
width: 350px;
width: 250px;
height: auto;
}
#conHolder {
width: 500px;

@ -222,12 +222,6 @@ body {
flex-direction: column;
}
.imgBig {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
.text_small {
grid-area: description;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
@ -303,6 +297,18 @@ body {
.appear {
display: flex;
}
.imgBig {
margin-left: 25px;
margin-top: 25px;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
.wsImg {
width: 500px;
height: 350px;
}
/* ---------- Responzívnosť (media tag) ---------- */
@media (max-width: 1550px) {
.obrazok_big {
@ -372,13 +378,13 @@ body {
font-size: 15px;
}
.list_item_holder {
margin-right: 0px;
margin-right: 20px;
}
#arrow0 {
margin-top: 32px;
font-size: 30px;
width: 30px;
height: 30px;
margin-top: 30px;
font-size: 40px;
width: 40px;
height: 40px;
}
.expand {
margin-left: 0px;

BIN
website/article1img.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

22
website/click1.js Normal file

@ -0,0 +1,22 @@
// 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);
// }

5
website/click1a.js Normal file

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

11
website/colt.css Normal file

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

0
website/colt.js Normal file

@ -1,6 +1,6 @@
$(document).ready(function() {
let base_url = "http://lohost:8000/";
let base_url = "http://192.168.1.105:8000/";
let ids_list = [];
$.get("ip.txt", function(data) {
@ -32,7 +32,7 @@ $(document).ready(function() {
</div>
<!-- Veľké zobrazenie -->
<div id="big${id}" class="big">
<div class="imgBig"><img class="obrazok_big" src="${image_urls[1]}" alt="#"></div>
<div class="imgBig"><img class="wsImg" src="${image_urls[1]}" alt="#"></div>
<div class="text_big">${descriptions[1]}</div>
<div class="sensors_big">
</div>
@ -109,6 +109,4 @@ $(document).ready(function() {
})
}
init_wesite();
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

22
website/filesystem.json Normal file

@ -0,0 +1,22 @@
{
"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"
}
]
}

7
website/fuckme.json Normal file

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

4152
website/hover.css Normal file

File diff suppressed because it is too large Load Diff

BIN
website/img1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

@ -1 +1 @@
localhost
192.168.1.105

0
website/k.json Normal file

BIN
website/logo.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
website/map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
website/mapr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

48
website/marathon.html Normal file

@ -0,0 +1,48 @@
<!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>

5
website/navbarclick.js Normal file

@ -0,0 +1,5 @@
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"}

0
website/navigacia.css Normal file

12
website/navigacia.html Normal file

@ -0,0 +1,12 @@
<!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>

24
website/people.json Normal file

@ -0,0 +1,24 @@
[
{
"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.

13
website/sensors.js Normal file

@ -0,0 +1,13 @@
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){
}

BIN
website/stiahnuť (1).jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
website/stiahnuť.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

8
website/test.txt Normal file

@ -0,0 +1,8 @@
sf
fsd
f
sdf
sd
fsd
f
sd

26
website/title.js Normal file

@ -0,0 +1,26 @@
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);
}

BIN
website/travelly.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
website/unknown.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
website/wikispot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
website/wikispotphone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 KiB