Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
smogonet
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dominik Rosiek
smogonet
Commits
0f9575ae
Commit
0f9575ae
authored
Jan 03, 2017
by
Antek Grzanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Klaudia's widget design.
parent
c1249436
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
46 deletions
+48
-46
index.html
index.html
+45
-46
measurement_viewer.py
measurement_viewer.py
+3
-0
No files found.
index.html
View file @
0f9575ae
...
@@ -3,38 +3,38 @@
...
@@ -3,38 +3,38 @@
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<style>
<style>
body
{
body
{
background
:
#FFFFFF
;
background
:
#FFFFFF
;
font-size
:
1rem
;
font-size
:
0.75rem
;
font-family
:
"Open Sans"
,
"Arial"
,
"sans-serif"
;
font-family
:
"Open Sans"
,
"Arial"
,
"sans-serif"
;
color
:
#003f65
;
color
:
#003f65
;
width
:
370px
;
font-weight
:
bold
;
padding
:
1px
;
width
:
350px
;
}
padding
:
1px
;
}
#main-box
{
height
:
100%
;
width
:
100%
;
padding
:
1px
;
}
#left-side
{
#main-box
{
width
:
100%
;
height
:
100%
;
height
:
70%
;
width
:
100%
;
float
:
left
;
padding
:
1px
;
padding
:
1px
;
}
}
#right-side
{
#left-side
{
width
:
100%
;
width
:
100%
;
height
:
30%
;
height
:
70%
;
float
:
right
;
float
:
left
;
padding
:
1px
;
padding
:
1px
;
}
}
</style>
<body>
#right-side
{
width
:
100%
;
height
:
30%
;
float
:
right
;
padding
:
1px
;
}
</style>
</head>
<body>
<div
id=
"main-box"
>
<div
id=
"main-box"
>
</div>
</div>
...
@@ -43,27 +43,26 @@
...
@@ -43,27 +43,26 @@
Aktualny stan powietrza:
Aktualny stan powietrza:
</div>
</div>
<div
id=
"right-side"
>
<div
id=
"right-side"
>
<img
src=
"http://www.free-icons-download.net/images/building-icons-68722.png"
width=
"10%"
height=
"10%"
>
<img
src=
"http://www.free-icons-download.net/images/building-icons-68722.png"
width=
"10%"
height=
"10%"
>
<select
id=
"select-station"
style=
"float: right; display: center; font-weight: normal;"
>
<option
value=
"1"
>
ul. Bujaka
</option>
<option
value=
"2"
>
ul. Bulwarowa
</option>
<option
value=
"3"
>
ul. Złoty Róg
</option>
<option
value=
"4"
>
Al. Krasińskiego
</option>
<option
value=
"5"
>
os. Piastów
</option>
<option
value=
"6"
>
ul. Dietla
</option>
</select>
<div
id=
"value-id"
style=
"padding: center;font-size: 0.7rem"
>
<select
id=
"select-station"
style=
"float: right; display: center; font-weight: bold;"
>
µg/m³
<option
value=
"1"
>
ul. Bujaka
</option>
</div>
<option
value=
"2"
>
ul. Bulwarowa
</option>
<option
value=
"3"
>
ul. Złoty Róg
</option>
<option
value=
"4"
>
Al. Krasińskiego
</option>
<option
value=
"5"
>
os. Piastów
</option>
<option
value=
"6"
>
ul. Dietla
</option>
</select>
</div>
<div
id=
"value-id"
style=
"padding: center;font-size: 0.7rem; text-indent: 6rem;"
>
µg/m³
</div>
</div>
</body>
</body>
</html>
</html>
<script>
<script>
...
...
measurement_viewer.py
View file @
0f9575ae
...
@@ -63,6 +63,9 @@ def make_app():
...
@@ -63,6 +63,9 @@ def make_app():
(
r"/view"
,
MainHandler
),
(
r"/view"
,
MainHandler
),
(
r'/()'
,
tornado
.
web
.
StaticFileHandler
,
{
'path'
:
'/home/smok/smogonet/index.html'
})
(
r'/()'
,
tornado
.
web
.
StaticFileHandler
,
{
'path'
:
'/home/smok/smogonet/index.html'
})
#(r'/()', tornado.web.StaticFileHandler, {'path': 'index.html'})
#(r'/()', tornado.web.StaticFileHandler, {'path': 'index.html'})
# Odkomentuj linijke z index.html a zakomentuj te z home/smok jesli chcesz zeby dzialalo lokalnie :)
# Ale nie commituj tej zmiany nigdy!
])
])
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment