|
1 /* |
|
2 * Device Resolution details |
|
3 */ |
|
4 var deviceResolutionList = { |
|
5 '240x320' : { |
|
6 'default' : 'portrait', |
|
7 'orientation' : true, |
|
8 'homeScreenSupport' : false, |
|
9 'fontSize' : '12px', |
|
10 'portrait' : { |
|
11 'style' : { |
|
12 'layout' : { |
|
13 'backgroundImage' : 'url(preview/images/device/240x320/Portrait.png)', |
|
14 'width' : '600px', |
|
15 'height' : '536px' |
|
16 }, |
|
17 'display': { |
|
18 'width' : '240px', |
|
19 'height' : '320px', |
|
20 'paddingTop': '108px', |
|
21 'marginLeft': 'auto' |
|
22 }, |
|
23 'widget': { |
|
24 'width' : 240, |
|
25 'height' : 320, |
|
26 'float' : 'left' |
|
27 }, |
|
28 'menu' : { |
|
29 'width' : 240, |
|
30 'height' : 30, |
|
31 'float' : 'right', |
|
32 'optionKeysheight' : 24 |
|
33 }, |
|
34 'softkeys' : { |
|
35 'width' : '240px', |
|
36 'height': '50px', |
|
37 'left' : '0px', |
|
38 'top' : '0px', |
|
39 'position': 'relative' |
|
40 }, |
|
41 'softkeysImg' : { |
|
42 'width' : "50%", |
|
43 'height': "100%" |
|
44 } |
|
45 } |
|
46 }, |
|
47 'landscape' : { |
|
48 'style' : { |
|
49 'layout' : { |
|
50 'backgroundImage' : 'url(preview/images/device/240x320/Landscape.png)', |
|
51 'width' : '848px', |
|
52 'height' : '408px' |
|
53 }, |
|
54 'display': { |
|
55 'width' : '320px', |
|
56 'height' : '240px', |
|
57 'paddingTop': '84px', |
|
58 'marginLeft': 'auto' |
|
59 }, |
|
60 'widget': { |
|
61 'width' : 320, |
|
62 'height' : 240, |
|
63 'float' : 'left' |
|
64 }, |
|
65 'menu' : { |
|
66 'width' : 320, |
|
67 'height' : 30, |
|
68 'float' : 'right', |
|
69 'optionKeysheight' : 24 |
|
70 }, |
|
71 'softkeys' : { |
|
72 'width' : '50px', |
|
73 'height': '240px', |
|
74 'left' : '200px', |
|
75 'top' : '-250px', |
|
76 'position': 'relative' |
|
77 }, |
|
78 'softkeysImg' : { |
|
79 'width' : "100%", |
|
80 'height': "50%" |
|
81 } |
|
82 } |
|
83 } |
|
84 }, |
|
85 |
|
86 '320x240' : { |
|
87 'default' : 'portrait', |
|
88 'orientation' : true, |
|
89 'homeScreenSupport' : false, |
|
90 'fontSize' : '12px', |
|
91 'portrait' : { |
|
92 'style' : { |
|
93 'layout' : { |
|
94 'backgroundImage' : 'url(preview/images/device/320x240/Portrait.png)', |
|
95 'width' : '640px', |
|
96 'height' : '472px' |
|
97 }, |
|
98 'display': { |
|
99 'width' : '320px', |
|
100 'height' : '240px', |
|
101 'paddingTop': '113px', |
|
102 'marginLeft': '163px' |
|
103 }, |
|
104 'widget': { |
|
105 'width' : 320, |
|
106 'height' : 240, |
|
107 'float' : 'left' |
|
108 }, |
|
109 'menu' : { |
|
110 'width' : 320, |
|
111 'height' : 30, |
|
112 'float' : 'right', |
|
113 'optionKeysheight' : 24 |
|
114 }, |
|
115 'softkeys' : { |
|
116 'width' : '320px', |
|
117 'height': '38px', |
|
118 'left' : '0px', |
|
119 'top' : '0px', |
|
120 'position': 'relative' |
|
121 }, |
|
122 'softkeysImg' : { |
|
123 'width' : "50%", |
|
124 'height': "100%" |
|
125 } |
|
126 } |
|
127 }, |
|
128 'landscape' : { |
|
129 'style' : { |
|
130 'layout' : { |
|
131 'backgroundImage' : 'url(preview/images/device/320x240/Landscape.png)', |
|
132 'width' : '680px', |
|
133 'height' : '472px' |
|
134 }, |
|
135 'display': { |
|
136 'width' : '240px', |
|
137 'height' : '320px', |
|
138 'paddingTop': '76px', |
|
139 'marginLeft': '223px' |
|
140 }, |
|
141 'widget': { |
|
142 'width' : 240, |
|
143 'height' : 320, |
|
144 'float' : 'left' |
|
145 }, |
|
146 'menu' : { |
|
147 'width' : 240, |
|
148 'height' : 30, |
|
149 'float' : 'right', |
|
150 'optionKeysheight' : 24 |
|
151 }, |
|
152 'softkeys' : { |
|
153 'width' : '30px', |
|
154 'height': '320px', |
|
155 'left' : '150px', |
|
156 'top' : '-330px', |
|
157 'position': 'relative' |
|
158 }, |
|
159 'softkeysImg' : { |
|
160 'width' : "100%", |
|
161 'height': "50%" |
|
162 } |
|
163 } |
|
164 } |
|
165 }, |
|
166 |
|
167 '360x640' : { |
|
168 'default' : 'portrait', |
|
169 'orientation' : true, |
|
170 'homeScreenSupport' : true, |
|
171 'fontSize' : '12px', |
|
172 'portrait' : { |
|
173 'style' : { |
|
174 'layout' : { |
|
175 'backgroundImage' : 'url(preview/images/device/360x640/Portrait.png)', |
|
176 'width' : '678px', |
|
177 'height' : '838px' |
|
178 }, |
|
179 'display': { |
|
180 'width' : '360px', |
|
181 'height' : '640px', |
|
182 'paddingTop': '89px', |
|
183 'marginLeft': '158px' |
|
184 }, |
|
185 'widget': { |
|
186 'width' : 360, |
|
187 'height' : 640, |
|
188 'float' : 'left' |
|
189 }, |
|
190 'menu' : { |
|
191 'width' : 360, |
|
192 'height' : 30, |
|
193 'float' : 'right', |
|
194 'optionKeysheight' : 24 |
|
195 }, |
|
196 'softkeys' : { |
|
197 'width' : '360px', |
|
198 'height': '50px', |
|
199 'left' : '0px', |
|
200 'top' : '0px', |
|
201 'position': 'relative', |
|
202 'marginLeft' : '159px' |
|
203 }, |
|
204 'softkeysImg' : { |
|
205 'width' : "50%", |
|
206 'height': "100%" |
|
207 }, |
|
208 'homeScreenDisplay': { |
|
209 'width' : '306px', |
|
210 'height' : '76px' |
|
211 } |
|
212 } |
|
213 }, |
|
214 'landscape' : { |
|
215 'style' : { |
|
216 'layout' : { |
|
217 'backgroundImage' : 'url(preview/images/device/360x640/Landscape.png)', |
|
218 'width' : '1054px', |
|
219 'height' : '572px' |
|
220 }, |
|
221 'display': { |
|
222 'width' : '640px', |
|
223 'height' : '360px', |
|
224 'paddingTop': '104px', |
|
225 'marginLeft': '206px' |
|
226 }, |
|
227 'widget': { |
|
228 'width' : 640, |
|
229 'height' : 360, |
|
230 'float' : 'left' |
|
231 }, |
|
232 'menu' : { |
|
233 'width' : 640, |
|
234 'height' : 30, |
|
235 'float' : 'right', |
|
236 'optionKeysheight' : 24 |
|
237 }, |
|
238 'softkeys' : { |
|
239 'width' : '50px', |
|
240 'height': '360px', |
|
241 'left' : '350px', |
|
242 'top' : '-370px', |
|
243 'position': 'relative', |
|
244 'marginLeft': 'auto' |
|
245 }, |
|
246 'softkeysImg' : { |
|
247 'width' : "100%", |
|
248 'height': "50%" |
|
249 }, |
|
250 'homeScreenDisplay': { |
|
251 'width' : '306px', |
|
252 'height' : '76px' |
|
253 } |
|
254 } |
|
255 } |
|
256 }, |
|
257 |
|
258 '800x352' : { |
|
259 'default' : 'landscape', |
|
260 'orientation' : false, |
|
261 'homeScreenSupport' : false, |
|
262 'fontSize' : '12px', |
|
263 'landscape' : { |
|
264 'style' : { |
|
265 'layout' : { |
|
266 'backgroundImage' : 'url(preview/images/device/800x352/Landscape.png)', |
|
267 'width' : '1180px', |
|
268 'height' : '572px' |
|
269 }, |
|
270 'display': { |
|
271 'width' : '800px', |
|
272 'height' : '352px', |
|
273 'paddingTop': '108px', |
|
274 'marginLeft': '190px' |
|
275 }, |
|
276 'widget': { |
|
277 'width' : 800, |
|
278 'height' : 352, |
|
279 'float' : 'left' |
|
280 }, |
|
281 'menu' : { |
|
282 'width' : 800, |
|
283 'height' : 30, |
|
284 'float' : 'right', |
|
285 'optionKeysheight' : 24 |
|
286 }, |
|
287 'softkeys' : { |
|
288 'width' : '50px', |
|
289 'height': '352px', |
|
290 'left' : '432px', |
|
291 'top' : '-364px', |
|
292 'position': 'relative', |
|
293 'marginLeft': 'auto' |
|
294 }, |
|
295 'softkeysImg' : { |
|
296 'width' : "100%", |
|
297 'height': "50%" |
|
298 } |
|
299 } |
|
300 } |
|
301 } |
|
302 |
|
303 }; |