GeezerVison is showing github.com — changes :broken_heart: · firmanJS/fullstack-javascript@1245998
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: 02-weather/index.html +4-14Lines changed: 4 additions & 14 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | } |
11 | 11 | </style> |
12 | 12 | <script> |
13 | | - |
14 | | - //Kazan: 551487 |
15 | | - //SF: 5391959 |
16 | | - |
17 | 13 | var openWeatherAppId = '2de143494c0b295cca9337e1e96b00e0', |
18 | 14 | openWeatherUrl = 'http://api.openweathermap.org/data/2.5/forecast' |
19 | | - /* |
20 | | - Rapid Prototyping with JS is a JavaScript and Node.js book that will teach you how to build mobile and web apps fast. — Read more at |
21 | | - http://rapidprototypingwithjs.com. |
22 | | - */ |
| 15 | + |
23 | 16 | var prepareData = function(units) { |
24 | | - //replace loading image |
| 17 | + // Replace loading image |
25 | 18 | var cityName = $('#city-name').val() |
26 | | - //make ajax call, callback |
| 19 | + // Make ajax call, callback |
27 | 20 | if (cityName && cityName != ''){ |
28 | 21 | cityName = cityName.trim() |
29 | 22 | getData(openWeatherUrl, cityName, openWeatherAppId, units) |
@@ -83,10 +76,7 @@ <h2>Weather App</h2> |
83 | 76 | <div class="row"> |
84 | 77 | <div class="span6 offset1"><input type="button" class="btn-primary btn btn-metric" value="Get forecast in metric"/> |
85 | 78 | <div class="span6 offset1"><input type="button" class="btn-danger btn btn-imperial" value="Get forecast in imperial"/> |
86 | | - </div> |
87 | | - <div class="span3"> |
88 | | - <p id="info"></p> |
89 | | - </div> |
| 79 | + </div> |
90 | 80 | </div> |
91 | 81 |
|
92 | 82 | <div class="row"> |
|