-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (58 loc) · 1.17 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>Prognoza pogody</title>
<style>
body
{
background-image:url('http://c.wrzuta.pl/wi18843/5cb8f92b000bd2954e607684/tapeta_na_telefon_240_x_400');
background-repeat:no-repeat;
}
p
{
color: white ;
text-align: center;
font-size:45px;
text-decoration:overline;
text-decoration:underline;
font-weight: 900;
margin-top:1px;
}
button
{
display: inline-block;
margin: 0 auto;
}
.but
{
text-align: center;
margin-top:160px;
}
</style>
</head>
<body id="bd">
<script>
var x=screen.availWidth;
var y=screen.availHeight;
document.getElementById("bd").style.backgroundSize = x + "px " + y + "px";
</script>
<script>
function goWeather()
{
var x;
var city=prompt("Podaj swoje miasto","Gdansk");
if (city!=null)
{
//x="Hello " + city + "! How are you today?";
//document.getElementById("demo").innerHTML=x;
x="http://m.meteo.pl/" + city + "/60"
window.location.assign(x);
}
}
</script>
<p id="tytul">Prognoza pogody</p>
<div class="but">
<button id="przycisk" type="button" onclick="goWeather()"> <img src="buton.jpg" alt="Smiley face" width="42" height="42"></button>
</div>
</body>
</html>