forked from altryne/Ipad-Simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
179 lines (168 loc) · 6.94 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?php
//0 page is the dock
$apps[0] = Array(
'iPod',
'Settings',
'Clock',
'Safari',
'Mail',
'iMovie'
);
$apps[1] = Array(
'Maps',
'iMovie',
'camera',
'Photo Booth',
'facetime',
'Game Center',
'Notes',
'Photos',
'Timezones',
'Weather'
);
$apps[2] = Array(
'Mail',
'Stocks',
'Maps',
'Messages',
'Notes',
'Photos',
'iMovie',
);
$apps[3] = Array(
'Mail',
'Stocks',
'Maps',
'Messages',
'Notes',
'Photos',
'iMovie',
);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>iPad2 simulator /w Css3, Jquery and HTML5 | alexw.me</title>
<meta charset="utf-8">
<meta name="description" content="This is a jquery iPad2 simulator, this is only an experiment of what can be done with javascript in ast browsers">
<meta name="keywords" content="Ipad, ipad simulator, apple ipad,ipad2,iPad2, iPad2 simulator, apple ipad2,mobile safari simulator, alexw.me, altryne, alex wolkov, ipad javascript simulator">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1;"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="icon" type="image/png" href="favicon.ico">
<link rel="stylesheet" href="style/ipad.css" type="text/css" media="screen"/>
<link rel="image_src" href="http://alexw.me/ipad2/apps/facebook.jpg" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/jquery-1.4.4.min.js"%3E%3C/script%3E'))</script>
<script type="text/javascript" src="js/jquery-ui-1.8.1.custom.min.js"></script>
<script type="text/javascript" src="js/plugins.js"></script>
<script type="text/javascript" src="js/jquery.ui.ipad.js"></script>
<script type="text/javascript" src="js/ipad.js"></script>
</head>
<body id="ipad">
<div id="externalContainer">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Falexw.me%2Fipad2&layout=box_count&show_faces=false&width=78&action=like&font&colorscheme=light&height=65" scrolling="no" frameborder="0" class="share_icon" allowTransparency="true"></iframe>
<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://alexw.me/ipad2" data-text="iPad2 simulator /w Css3, Jquery and HTML5" data-count="vertical" data-via="altryne">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<div></div>
<g:plusone size="tall" href="http://alexw.me/ipad2"></g:plusone>
<div id="content_overflow">
<div id="content" class="hide_spring">
<div id="window"></div>
<div id="iframe_holder"></div>
<div id="black"></div>
<div class="topbar">
<span class="time">--:--</span>
<span class="percentage">99%</span>
</div>
<div id="general_wrap">
<div id="drag" style="left:0">
<div id="page0" class="page">
<form>
<input type="text" id="search" autocomplete=”off” name="app_search"/>
</form>
<div id="search_result_wrapper">
<ul id="search_result">
</ul>
</div>
<div id="tr" class="corner"></div>
<div id="tl" class="corner"></div>
<div id="br" class="corner"></div>
<div id="bl" class="corner"></div>
<div id="whiteSep"></div>
<div id="noResults">No Results</div>
</div>
<?php
foreach($apps as $k=>$v){
if($k != 0 && count($v)){
echo '<ul id="page'.$k.'" class="apps page">'."\n";
foreach($v as $kk=>$vv){
echo '<li id="'.str_replace(' ','',strtolower($vv)).'" class="app">
<div class="delete">x</div>
<div class="app_logo" style="background-image:url(\'apps/'.str_replace(' ','',strtolower($vv)).'.jpg\')"></div>
<span>'.$vv.'</span>
</li>'."\n";
}
echo '</ul>'."\n";
}
}
?>
</div>
</div>
<ul id="pages">
<li class="first">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAJCAYAAADkZNYtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKVJREFUeNpi+P//PwMQSwDxfCB+AsRvgXgmEHNC5eCYiYGBgRmItzNAgAMQmwCxEFSMjQEZAHV4APEZNFOYgfgGEIegm6wOxBcYUMFfIL4GxKLIgiDFp4DYHog5kcRBbEsg/o7uDBDeCMR7gdgeiAOB+OR/BJgA8yxMMRsQV0DdfhiIc4DYFRoyIHAeiIUY0IMHDcsB8TGoBg9GsPGEAcgP3wECDACpaMIIrgD3fQAAAABJRU5ErkJggg==" width="11" height="9" />
</li>
<li class="active"> • </li>
<?php
for($i = 0;$i<count($apps)-2; $i++){
echo '<li> • </li>';
}
?>
</ul>
<ul id="dock" class="apps">
<?php
foreach($apps[0] as $kk=>$vv){
echo '<li id="'.str_replace(' ','',strtolower($vv)).'" class="app">
<div class="delete">x</div>
<div class="app_logo" style="background-image:url(\'apps/'.str_replace(' ','',strtolower($vv)).'.jpg\')"></div>
<span>'.$vv.'</span>
</li>'."\n";
}
?>
</ul>
<div id="lockscreen">
<div class="topbar">
<img src="apps/lock.png" alt=""/>
<span class="percentage">99%</span>
</div>
<div id="lockscreentime" class="time">--:--</div>
<div id="slide_here">
<div id="slider"></div>
<div id="drop"></div>
</div>
</div>
</div>
</div>
<div id="multitask_bar">
<ul class="apps">
</ul>
</div>
<div id="home"></div>
<div id="sleep"></div>
</div>
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
<!-- asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
change the UA-XXXXX-X to be your site's ID -->
<script>
var _gaq = [['_setAccount', 'UA-7437527-1'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
</script>
</body>
</html>