-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (35 loc) · 1.61 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<link href="css/styles.css" rel="stylesheet">
<title>Weather App</title>
</head>
<body>
<div data-weather-app class="wrapper">
<header class="header">
<h1>Сводка погоды по г.Черкассы за прошедшу неделю</h1>
</header>
<div data-table class="content">
<img src="img/ajax-loader.gif">
Loading...
</div>
<div class="content"><h2>Изменение температуры в °С</h2><div data-temperature=""></div></div>
<div class="content"><h2>Изменение влажности в %</h2><div data-humidity ></div></div>
<div class="content"><h2>Изменение количества осадков в мм</h2><div data-precipitations></div></div>
<footer class="footer"></footer>
</div>
<script type="text/template" data-table-template>
<table>
<tr><th>Дата:</th><% _.each(weather, function(day) { %><td><%= day.date %></td><% }); %></tr>
<tr><th>Температура, °С:</th><% _.each(weather, function(day) { %><td><%= day.temperature %></td><% }); %></tr>
<tr><th>Влажность, %:</th><% _.each(weather, function(day) { %><td><%= day.humidity %></td><% }); %></tr>
<tr><th>Осадки, мм:</th><% _.each(weather, function(day) { %><td><%= day.precipitations %></td><% }); %></tr>
</table>
</script>
<script type="text/template" data-canvas-template>
<canvas width="800" height="600"></canvas>
</script>
<script data-main="js/init.js" src="js/libs/requirejs/require.js"></script>
</body>
</html>