-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
114 lines (110 loc) · 2.87 KB
/
index.php
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
112
113
114
<?php
$dateTime = new DateTime();
$dateTime->setTimeZone(new DateTimeZone('America/New_York'));
$ny = $dateTime->format('m/d/Y H:i:s');
$dateTime->setTimeZone(new DateTimeZone('Europe/Kiev'));
$kyiv = $dateTime->format('m/d/Y H:i:s');
$dateTime->setTimeZone(new DateTimeZone('Europe/London'));
$london = $dateTime->format('m/d/Y H:i:s');
$dateTime->setTimeZone(new DateTimeZone('Europe/Paris'));
$paris = $dateTime->format('m/d/Y H:i:s');
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>jqClock</title>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="https://raw.github.com/4031651/jqClock/master/js/jqClock.js"></script>
<link rel="stylesheet" href="css/jqClock.css"/>
<style>
ul {
list-style: none outside none;
margin: 0;
padding: 0;
}
ul li {
float: left;
height: 250px;
margin: 5px;
width: 250px;
}
#clock .jqc-clock-face {
background-color: #66f;
}
#local .jqc-clock-face{
background: url("img/local.png") no-repeat scroll 0 0 transparent;
}
#kyiv .jqc-clock-face{
background: url("img/kyiv.png") no-repeat scroll 0 0 transparent;
}
#ny .jqc-clock-face{
background: url("img/ny.png") no-repeat scroll 0 0 transparent;
}
#london .jqc-clock-face{
background: url("img/london.png") no-repeat scroll 0 0 transparent;
}
#paris .jqc-clock-face{
background: url("img/paris.png") no-repeat scroll 0 0 transparent;
}
.jqc-clock-sec span {
background: url("img/seconds.png") no-repeat scroll 0 0 transparent;
box-shadow: 0 0;
height: 106px;
margin-top: 36px;
width: 4px;
}
.jqc-clock-min span {
background: url("img/minutes.png") no-repeat scroll 0 0 transparent;
box-shadow: 0 0;
height: 106px;
margin-top: 51px;
width: 6px;
}
.jqc-clock-hour span {
background: url("img/hours.png") no-repeat scroll 0 0 transparent;
box-shadow: 0 0;
height: 106px;
margin-top: 69px;
width: 10px;
}
</style>
<script>
jQuery(function () {
jQuery('#local').clock({
graduations: 0,
size: 250
});
jQuery('#kyiv').clock({
graduations: 0,
size: 250,
date: new Date('<?php echo $kyiv; ?>')
});
jQuery('#ny').clock({
graduations: 0,
size: 250,
date: new Date('<?php echo $ny; ?>')
});
jQuery('#london').clock({
graduations: 0,
size: 250,
date: new Date('<?php echo $london; ?>')
});
jQuery('#paris').clock({
graduations: 0,
size: 250,
date: new Date('<?php echo $paris; ?>')
});
});
</script>
</head>
<body>
<ul>
<li id="local"></li>
<li id="kyiv"></li>
<li id="ny"></li>
<li id="london"></li>
<li id="paris"></li>
</ul>
</body>
</html>