-
Notifications
You must be signed in to change notification settings - Fork 0
/
weather.html
48 lines (44 loc) · 1.04 KB
/
weather.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Weather</title>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0">
<style>
.w-wrapper {
float:left;
overflow:hidden;
background:silver;
}
.w-wrapper img {
display:block;
margin:0 auto;
max-width: 100%;
}
p {
clear:both;
}
</style>
</head>
<body>
<div id="doweather1" class="w-wrapper">
<img src="background.jpg"/>
</div>
<div id="doweather2" class="w-wrapper">
<img src="background.jpg"/>
</div>
<p><a href="http://magdeleine.co/photo-jay-mantri-n-222/">Image credit</a></p>
<script src="weatherPlugin.min.js"></script>
<script>
var options = {
speed: 1,
dropDensity: 10,
wind: 0,
dropColor: [255,255,255],
dropHeight: 1
};
new weatherObj(document.getElementById('doweather1'),{});
new weatherObj(document.getElementById('doweather2'),options);
</script>
</body>
</html>