-
Notifications
You must be signed in to change notification settings - Fork 0
/
weather_ins.html
100 lines (83 loc) · 3.63 KB
/
weather_ins.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My Weather Channel</title>
<!-- TELLS PHONES NOT TO LIE ABOUT THEIR WIDTH & stops the font from enlarging when a phone is turned sideways-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- *************** LOAD A GOOGLE FONT ****************** -->
<link href="https://fonts.googleapis.com/css?family=Lato:100,400,700" rel="stylesheet">
<!-- STYLE SHEETS -->
<link href="css/wstyles.css" rel="stylesheet">
<!-- removes the browser interface -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Weather">
<!-- <link rel="shortcut icon" sizes="16x16" href="phoneIcon/icon-16x16.png"> -->
<link href="icon/i120.png" rel="apple-touch-icon" />
<link href="icon/i152.png" rel="apple-touch-icon" sizes="152x152" />
<link href="icon/i167.png" rel="apple-touch-icon" sizes="167x167" />
<link href="icon/i180.png" rel="apple-touch-icon" sizes="180x180" />
<link href="icon/a192.png" rel="icon" sizes="192x192" />
<link href="icon/a128.png" rel="icon" sizes="128x128" />
</head>
<body>
<div id="wrapper">
<header>
<figure class="wu"><img src="images/weatherLogo.png" alt="weather logo banner"></figure>
<h1>My Weather Channel</h1>
<h2>JSON data via OpenWeatherMap.org API</h2>
</header>
<nav>
<input type="text" maxlength="5" id="zip" value="">
<button onclick="loadWeather()">Check this Zipcode</button>
</nav>
<!-- page content here -->
<main>
<section id="left">
<div id="location">City HSV</div>
<div id="weathccondicon">
<img src="/images/WeatherConditionPlaceholder-spinner1.png" alt="current weather" id="wcicon">
</div>
<div id="weather">Current Conditions</div>
<div style="text-align: center;"><span id="temperature">?</span> °F</div>
<div id="speed">wind speed: <span id="windspeed">?</span> MPH</div>
<div id="desc">desc of conditions</div>
</section>
<section id="right">
<div>
<span id="r1c1"></span>
<span> <img id="r1c2" alt="weather img"></span>
<span id="r1c3"></span>
<span id="r1c4"></span>
</div>
<div>
<span id="r2c1"></span>
<span> <img id="r2c2" alt="weather img"></span>
<span id="r2c3"></span>
<span id="r2c4"></span>
</div>
<div>
<span id="r3c1"></span>
<span> <img id="r3c2" alt="weather img"></span>
<span id="r3c3"></span>
<span id="r3c4"></span>
</div>
<!-- weather map img -->
<!-- <div style="border: none;"><img id="radar" style="border: 1px solid gray; margin: 10px auto 0 auto; width: auto; border-radius: 4px;"></div> -->
</section>
<section style="float: left; margin-top: 10px; margin-left: 20px;">
</section>
<br>
<div style="clear: both; padding: 10px; text-align: center;"> <!-- widget from OpenWeatherMap site, outer wrapper neeeded for centering -->
<div id="openweathermap-widget-15" style="display: inline-block; padding: 10px;"></div>
</div>
<script>window.myWidgetParam ? window.myWidgetParam : window.myWidgetParam = []; window.myWidgetParam.push({id: 15,cityid: '4068590',appid: '8c6405207db6b6fe115ac161f770cd31',units: 'imperial',containerid: 'openweathermap-widget-15', }); (function() {let script = document.createElement('script');script.async = true;script.charset = "utf-8"; script.src = "//openweathermap.org/themes/openweathermap/assets/vendor/owm/js/weather-widget-generator.js";let s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(script, s); })();</script>
</main><!-- end content -->
<footer>
<p>• Justin Hammack • API+JavaScript and widget</p>
</footer>
</div> <!-- end wrapper -->
<script src="js/wmain.js"></script>
</body>
</html>