-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathindex.html
214 lines (178 loc) · 5.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Zdrava Prehrana</title>
<!-- Bootstrap -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="myJQuery.js"></script>
<script src="myScript.js"></script>
<!--dodatek za d3js-->
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style>
.bar {
fill: steelblue;
}
.bar:hover {
fill: brown;
}
.axis {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.x.axis path {
display: none;
}
</style>
<!--//d3js-->
<style>
body { padding-left: 10px; }
.row { margin-top: 10px; }
</style>
</head>
<body>
<div class="page-header">
<h1>Zdrava Prehrana</h1>
</div>
<!--poravnanost levo, desno-->
<div class="col-md-6">
<!--prijava-->
<!--<div class="col-md-6">-->
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Prijava</h3>
</div>
<div class="panel-body">
<div class="row">
<label class="col-md-3">Ime in priimek</label>
<label id="prijavljen" class="col-md-3"></label>
<input class="col-md-4" id="prijava" type="text" placeholder="ime in priimek">
</div>
<div class="row">
<div class="col-md-12">
<label id="labelEHRID">EHR: </button>
</div>
</div>
<div class="row">
<div class="col-md-2">
<button class="btn btn-primary" onclick="nameToEHR()">Prijava</button>
</div>
<div class="col-md-2">
<button class="btn btn-danger" onclick="odjava()">Odjava</button>
</div>
<div class="col-md-2">
<button class="btn" id="newUsrBtn">Novi uporabnik</button>
</div>
</div>
</div>
</div><!--panbody-->
<!--nov uporabnik - toggle-->
<div class="panel panel-default" id="newUsrDiv">
<div class="panel-heading">
<h3 class="panel-title">Novi uporabnik</h3>
</div>
<div class="panel-body">
<!--<div class="col-md-6">-->
<div class="row">
<label class="col-md-3">Ime</label>
<input class="col-md-3" id="newIme" type="text" placeholder="ime">
</div>
<div class="row">
<label class="col-md-3">Priimek</label>
<input class="col-md-3" id="newPriimek" type="text" placeholder="priimek">
</div>
<div class="row">
<label class="col-md-3">Datum rojstva</label>
<input class="col-md-3" id="newDatum" type="text" placeholder="leto-mesec-dan">
</div>
<div class="row">
<div class="col-md-3">
<button id="newPotrdi" class="btn btn-primary" onclick="dodajNovegaPacienta()">Potrdi</button>
</div>
<div class="col-md-3">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Pripravljeni<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" onclick="randomPacient('Randall Flagg')">Randall Flagg</a></li>
<li><a href="#" onclick="randomPacient('Arktos Snežak')">Arktos Snežak</a></li>
<li><a href="#" onclick="randomPacient('Meghan Trainor')">Meghan Trainor</a></li>
</ul>
</div>
</div>
</div>
</div><!--panbody-->
</div><!--pan-->
<!--vnos meritev-->
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Vnos meritev</h3>
</div>
<div class="panel-body">
<div class="row">
<label class="col-md-3">masa</label>
<input class="col-md-3" id="vnosMasa" type="text" placeholder="masa">
<label class="col-md-4">[kg]</label>
</div>
<div class="row">
<label class="col-md-3">višina</label>
<input class="col-md-3" id="vnosVisina" type="text" placeholder="višina">
<label class="col-md-4">[cm]</label>
</div>
<div class="row">
<label class="col-md-3">datum</label>
<input class="col-md-3" id="vnosDatum" type="text" placeholder="datum">
<label class="col-md-4">[leto-mesec-dan]</label>
</div>
<div class="row">
<div class="col-md-2">
<button id="btnVnesiMer" class="btn btn-primary" onclick="vnesiMeritve()">Vnesi</button>
</div>
</div>
</div>
</div><!--pan-->
<div class="col-md-2">
<button type="button" class="btn btn-success" onclick="getBMI()">Izpis rezultatov</button>
</div>
<div class="row"></div>
<div class="row"></div>
</div>
<div class="col-md-6">
<div class="panel panel-success" id="rezultati">
<div class="panel-heading">
<h3 class="panel-title">Rezultati</h3>
</div>
<div class="panel-body" id="rezBody">
<p id="rez1"></p>
<p id="rez2"></p>
<div id="rez3"></div>
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Vzpodbuda</h3>
</div>
<div class="panel-body">
<div id=d3jsGraph>
<!--d3js-->
<p>Tabela deležev (%) prekomerno težkih moških iz različnih držav (BMI > 25):</p>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>drawGraph()</script>
<!--//d3js-->
</div>
<div>
<p>Gre za globalen pojav, in sicer prekomerna teža se povečuje. V Sloveniji imamo velik delež prekomerno težkih otrok. Zdravo življenje lahko začnete pri sebi in svoji družini.
</p>
</div>
</div>
</div>
</div>
</body>
</html>