|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>Templater</title> |
| 7 | + </head> |
| 8 | + <body> |
| 9 | + <section id="#forecast"> |
| 10 | + <div id="#search-div" class="search-div"> |
| 11 | + <label>Мой город</label> |
| 12 | + <input type="checkbox" id="#cbxId" class="cbx" /> |
| 13 | + <input type="text" id="#edtId" class="edt" /> |
| 14 | + <input type="button" value="Поиск" id="#btnId" class="btn" /> |
| 15 | + </div> |
| 16 | + |
| 17 | + <div id="#forecast-div-id" class="flex-div"> |
| 18 | + {{for list as listItem}} {{if index == First}} |
| 19 | + <div class="now-div"> |
| 20 | + <p class="bold-p">Сейчас:</p> |
| 21 | + <p>{{listItem.weather.0.description}}</p> |
| 22 | + <div class="txt-div"> |
| 23 | + <p>Температура: {{listItem.main.temp}} ℃</p> |
| 24 | + <p>Влажность: {{listItem.main.humidity}} %</p> |
| 25 | + <p>Скорость ветра: {{listItem.wind.speed}} м/с</p> |
| 26 | + </div> |
| 27 | + {{and listItem.weather.0.icon}} |
| 28 | + <div class="inline-img"> |
| 29 | + <img |
| 30 | + src="http://openweathermap.org/img/wn/{{listItem.weather.0.icon}}@2x.png" |
| 31 | + /> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + <div class="big-border-div"></div> |
| 35 | + {{endif}} {{if index != 1}} {{and {Part}listItem.dt_txt == 00:00:00}} |
| 36 | + <div class="small-border-div"></div> |
| 37 | + {{endif}} {{if index != First}} |
| 38 | + <div class="forecast-el"> |
| 39 | + <p>{{listItem.dt_txt}}</p> |
| 40 | + <img |
| 41 | + src="http://openweathermap.org/img/wn/{{listItem.weather.0.icon}}@2x.png" |
| 42 | + /> |
| 43 | + <p>{{listItem.main.temp}} ℃</p> |
| 44 | + </div> |
| 45 | + {{endif}} {{endfor}} |
| 46 | + </div> |
| 47 | + <div id="#world-map" class="map-div"> |
| 48 | + <iframe |
| 49 | + src="https://www.openstreetmap.org/export/embed.html?bbox={{lonS}}%2C{{latS}}%2C{{lonE}}%2C{{latE}}&layer=mapnik" |
| 50 | + ></iframe> |
| 51 | + </div> |
| 52 | + <div id="#history-div" class="hist-div"> |
| 53 | + <p>История</p> |
| 54 | + {{for cities as city}} |
| 55 | + <a href="#" class="aClass">{{city}}</a> |
| 56 | + {{endfor}} |
| 57 | + </div> |
| 58 | + </section> |
| 59 | + </body> |
| 60 | + <script src="src/bundle.ts"></script> |
| 61 | +</html> |
0 commit comments