-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
111 lines (89 loc) · 2.44 KB
/
Copy pathindex.php
File metadata and controls
111 lines (89 loc) · 2.44 KB
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
101
102
103
104
105
106
107
108
109
110
111
<?php
echo "<body bgcolor>";
echo '
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
//yandex weather
function refresh(){
$.ajax({
type: "POST",
url: "yandexpogoda.php",
success: function(data) {
$("#yandexpogoda").html(data).hide().fadeToggle( "slow", "linear" );
}
});
//gismeteo weather
$.ajax({
type: "POST",
url: "gismeteo.php",
success: function(data) {
$("#gismeteo").html(data).hide().fadeToggle( "slow", "linear" );
}
});
//ngs weather
$.ajax({
type: "POST",
url: "ngs.php",
success: function(data) {
$("#ngs").html(data).hide().fadeToggle( "slow", "linear" );
}
});
//yandex oil
$.ajax({
type: "POST",
url: "yandexoil.php",
success: function(data) {
$("#yandexoil").html(data).hide().fadeToggle( "slow", "linear" );
}
});
//yandex mmvb
$.ajax({
type: "POST",
url: "yandexmmvb.php",
success: function(data) {
$("#yandexmmvb").html(data).hide().fadeToggle( "slow", "linear" );
}
});
//forex_cb
$.ajax({
type: "POST",
url: "forex_cb.php",
success: function(data) {
$("#forex_cb").html(data).hide().fadeToggle( "slow", "linear" );
}
});
//forex_torg
$.ajax({
type: "POST",
url: "forex_torg.php",
success: function(data) {
$("#forex_torg").html(data).hide().fadeToggle( "slow", "linear" );
}
});
}
refresh();
var refreshInterval = setInterval(refresh, 30000);
</script>
<style>
body {
background-color: #efefef; /* Цвет фона */
}
</style>';
echo "</br>Погода в Новосибирске:</br></br>";
echo "<table><tr><td>";
echo "yandex:</td><td><div id='yandexpogoda'><b>Загрузка..</b></div></td></tr><tr><td>";
echo "gismeteo:</td><td><div id='gismeteo'><b>Загрузка..</b></div></td></tr><tr><td>";
echo "ngs:</td><td><div id='ngs'><b>Загрузка..</b></div></td></tr><tr><td>";
echo "</table>";
echo "</br></br>Курс доллара:</br></br>";
echo "<table><tr id=forex_cb><td><b>Загрузка..</b></td></tr>";
echo "<tr id=forex_torg><td><b>Загрузка..</b></td></tr>";
echo "<tr id=yandexmmvb><td><b>Загрузка..</b></td></tr>";
echo "</table>";
echo "</br></br>Нефть:</br></br>";
echo "<table><tr><td><div id=yandexoil>";
echo " <b>Загрузка...</b>";
echo "<div></td></tr>";
echo "</table>";
echo "</body>";
?>