iOS 6 Status Bar
A replica of the iOS 6 Status Bar.
Uses JS because it updates to update the time.
A replica of the iOS 6 Status Bar.
Uses JS because it updates to update the time.
<div id="status">
<div id="status">
<div id="time"></div>
<img src="http://iphone-screenshot.com/img/sbar_antenna.png" id="net">
<img src="http://iphone-screenshot.com/img/sbar_wifi.png" id="wifi">
<img src="http://iphone-screenshot.com/img/sbar_cell.png" id="battery">
</div>
#status {
#status {
background: #000;
color: #bebebe;
font-family: Helvetica, Arial;
font-size: 16pt;
font-weight: bold;
height: 40px;
left: 0px;
line-height: 1.9em;
position: absolute;
text-align: center;
top: 0px;
width: 100%;
/* you can change the width and the icons will fit! */
}
#net {
left: 4px;
position: absolute;
top: 0px;
}
#wifi {
left: 54px;
position: absolute;
top: 0px;
}
#battery {
right: 4px;
position: absolute;
top: 0px;
}
img {
user-drag: none;
}
function GetClock(){
function GetClock(){
d = new Date();
nhour = d.getHours();
nmin = d.getMinutes();
if(nhour == 0) {ap = " AM";nhour = 12;}
else if(nhour <= 11) {ap = " AM";}
else if(nhour == 12) {ap = " PM";}
else if(nhour >= 13) {ap = " PM";nhour -= 12;}
if(nmin <= 9) {nmin = "0" +nmin;}
document.getElementById("time").innerHTML=""+nhour+":"+nmin+ap+"";
setTimeout("GetClock()", 1000);
}
window.onload=GetClock;