Skip to content

Commit

Permalink
Merge pull request #3 from kisielewski/devel-plan
Browse files Browse the repository at this point in the history
Version with plan
  • Loading branch information
kisielewski authored Apr 26, 2019
2 parents 8da9bd7 + 25e3aea commit 6c6fd52
Show file tree
Hide file tree
Showing 4 changed files with 417 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SmartHome-Server/HttpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ private void NewRequest(object _context)
if(request.Url.AbsolutePath == "/")
{
path += "index.html";
} else if(request.Url.AbsolutePath == "/plan")
{
path += ".html";
}

switch (request.Url.AbsolutePath)
Expand Down
6 changes: 6 additions & 0 deletions SmartHome-Server/SmartHome-Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
<Content Include="files\main.css">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="files\plan.html">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="files\plan.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="files\script.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
279 changes: 279 additions & 0 deletions SmartHome-Server/files/plan.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<title>Smart Home</title>
<link href="main.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="Shortcut icon" href="smart_home.ico">
<script src="plan.js"></script>
</head>
<body style="background-color: #BBB; overflow: hidden; width: 100vw; height: 100vh;">
<div style="width: 100vw; height: 100vh; background-color: #BBB;">
<button id="fullScreen" style="position: fixed; top: 0; left: 0;">Fullscreen</button><br>
<h1 style="margin: 0; color: #12008A; text-align: center;">SmartHome</h1>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg8"
version="1.1"
height="100%"
width="100%"
viewBox="0 0 130 200">
<defs
id="defs2" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="display:inline"
transform="translate(0,-114.43749)"
id="layer1">
<rect
y="116.02499"
x="1.5874996"
height="79.375"
width="47.625"
id="L3"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="116.02499"
x="49.212502"
height="47.625"
width="79.375"
id="L5"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="163.64999"
x="80.962502"
height="84.666664"
width="47.625"
id="L1"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="163.64999"
x="49.212502"
height="84.666664"
width="31.75"
id="L4"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="195.39999"
x="1.5874996"
height="52.916672"
width="47.625"
id="L2"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="248.31667"
x="1.5874996"
height="47.625"
width="127"
id="rect895"
style="opacity:1;fill:#006aff;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="243.02499"
x="6.8791661"
height="10.583333"
width="15.875"
id="S11"
style="opacity:1;fill:#c90000;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="243.02499"
x="28.045834"
height="10.583333"
width="15.875"
id="S12"
style="opacity:1;fill:#c90000;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="243.02499"
x="54.504166"
height="10.583333"
width="21.166666"
id="S2"
style="opacity:1;fill:#c90000;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="243.02499"
x="86.254166"
height="10.583333"
width="15.875003"
id="S13"
style="opacity:1;fill:#c90000;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="243.02499"
x="107.42081"
height="10.583333"
width="15.875"
id="S14"
style="opacity:1;fill:#c90000;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
rx="0"
ry="0"
y="168.94167"
x="86.254166"
height="10.58333"
width="37.04166"
id="R"
style="opacity:1;fill:#c90000;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
y="280.06662"
x="49.212502"
height="10.583333"
width="31.75"
id="S3"
style="opacity:1;fill:#c90000;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<ellipse
ry="5.2916665"
rx="5.291667"
cy="264.19165"
cx="17.462502"
id="L61"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<ellipse
ry="5.2916665"
rx="5.291667"
cy="264.19165"
cx="38.629169"
id="L62"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<ellipse
ry="5.2916665"
rx="5.291667"
cy="264.19165"
cx="91.545837"
id="L63"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<ellipse
ry="5.2916665"
rx="5.2916703"
cy="264.19165"
cx="112.71249"
id="L64"
style="opacity:1;fill:#1fb800;fill-opacity:1;stroke:#12008a;stroke-width:1.60000002;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="17.261984"
y="71.038475"
id="L3label"><tspan
sodipodi:role="line"
id="tspan3828"
x="17.261984"
y="71.038475"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">SYPIALNIA</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="82.123322"
y="41.627705"
id="L5label"><tspan
sodipodi:role="line"
id="tspan3828-1"
x="82.123322"
y="41.627705"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">ŁAZIENKA</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:2.82222219px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332;"
x="96.891594"
y="61.017372"
id="Rlabel"><tspan
sodipodi:role="line"
id="tspan3828-1-7"
x="96.891594"
y="61.017372"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222219px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">TELEWIZOR</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="99.927155"
y="119.81628"
id="L1label"><tspan
sodipodi:role="line"
id="tspan3828-1-1"
x="99.927155"
y="119.81628"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">SALON</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="19.245167"
y="119.81628"
id="L2label"><tspan
sodipodi:role="line"
id="tspan3828-1-0"
x="19.245167"
y="119.81628"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">KUCHNIA</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="57.908611"
y="119.81628"
id="L4label"><tspan
sodipodi:role="line"
id="tspan3828-1-4"
x="57.908611"
y="119.81628"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">KORYTARZ</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="31.866705"
y="134.89754"
id="S1label"><tspan
sodipodi:role="line"
id="tspan3828-1-6"
x="31.866705"
y="134.89754"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">OKNA</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="60.464874"
y="134.9375"
id="S2label"><tspan
sodipodi:role="line"
id="tspan3828-1-76"
x="60.464874"
y="134.9375"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">DRZWI</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="33.304604"
y="151.28534"
id="L6label"><tspan
sodipodi:role="line"
id="tspan3828-1-3"
x="33.304604"
y="151.28534"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">OGRÓD</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.52777767px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="60.944172"
y="171.89519"
id="S3label"><tspan
sodipodi:role="line"
id="tspan3828-1-71"
x="60.944172"
y="171.89519"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#ffffff;stroke-width:0.26458332">BRAMA</tspan></text>
</svg>
</div>
</body>
</html>
Loading

0 comments on commit 6c6fd52

Please sign in to comment.