Rev 210 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 210 | Rev 227 | ||
---|---|---|---|
Line 108... | Line 108... | ||
108 | .instruction { |
108 | .instruction { |
109 | line-height: 1.2; |
109 | line-height: 1.2; |
110 | } |
110 | } |
111 | 111 | ||
112 | .group { |
112 | .group { |
113 | width: 9.92em; |
113 | width: 13.92em; |
114 | } |
114 | } |
115 | 115 | ||
116 | #languages .button { |
116 | #languages .button { |
117 | width: 8.25em; |
117 | width: 12.25em; |
118 | } |
118 | } |
119 | 119 | ||
120 | #languages .button .key { |
120 | #languages .button .key { |
121 | min-width: 0.675em; |
121 | min-width: 1em; |
122 | } |
122 | } |
123 | 123 | ||
124 | #languages .button .text { |
124 | #languages .button .text { |
125 | max-width: 4.55em; |
125 | max-width: 8.55em; |
126 | } |
126 | } |
127 | --> |
127 | --> |
128 | </style> |
128 | </style> |
129 | <?php /* |
129 | <?php /* |
130 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/css/color,dom/ani,dom/window"></script>
|
130 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/css/color,dom/ani,dom/window"></script>
|
131 | */ ?> |
131 | */ ?> |
132 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/xpath,dom/window,dom/xpath,regexp"></script> |
132 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/events,dom/timeout,dom/xpath,dom/window,dom/xpath,regexp,dom/widgets,lcars"></script> |
- | 133 | <script type="text/javascript" src="application/scripts/klingon.js"></script> |
|
133 | <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
134 | <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
134 | <script type="text/javascript"> |
135 | <script type="text/javascript"> |
135 | <?php /* |
136 | <?php /* |
136 | /* Hardcore Frame Buster
|
137 | /* Hardcore Frame Buster
|
137 | if (parent.frames.length > 0 )
|
138 | if (parent.frames.length > 0 )
|
Line 237... | Line 238... | ||
237 | var translatable = translatables[i]; |
238 | var translatable = translatables[i]; |
238 | translatable.style.display = |
239 | translatable.style.display = |
239 | (translatable.lang.indexOf(language_prefix) == 0 |
240 | (translatable.lang.indexOf(language_prefix) == 0 |
240 | || translatable.firstChild.lang == language |
241 | || translatable.firstChild.lang == language |
241 | || translatable.firstChild.lang.indexOf("vuh") == 0 |
242 | || translatable.firstChild.lang.indexOf("vuh") == 0 |
242 | || (translatable.firstChild.lang == "en" && language.indexOf("vuh") == 0)) |
243 | || (translatable.firstChild.lang == "en" |
- | 244 | && (language.indexOf("vuh") == 0))) |
|
243 | ? "" |
245 | ? "" |
244 | : "none"; |
246 | : "none"; |
245 | } |
247 | } |
246 | } |
248 | } |
247 | 249 | ||
248 | function lcars_translate_reset () |
250 | function lcars_translate_reset () |
249 | { |
251 | { |
250 | lcars_translate('en'); |
252 | lcars_translate('en'); |
251 | } |
253 | } |
252 | 254 | ||
- | 255 | var LANG_KLINGON = "<?php echo $klingon; ?>"; |
|
253 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
256 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
254 | 257 | ||
255 | function body_load (body) |
258 | function body_load (body) |
256 | { |
259 | { |
257 | if (typeof body.ontouchstart != 'undefined') |
260 | if (typeof body.ontouchstart != 'undefined') |
258 | { |
261 | { |
259 | body.ontouchstart = function () {}; |
262 | body.ontouchstart = function () {}; |
260 | } |
263 | } |
261 | 264 | ||
262 | lcars_translate_reset(); |
265 | lcars_translate_reset(); |
- | 266 | pIqaD(); |
|
263 | mediaScript(); |
267 | mediaScript(); |
264 | } |
- | |
265 | - | ||
266 | function navigateTo (link) |
- | |
267 | { |
- | |
268 | <?php /* |
- | |
269 | animate();
|
- | |
270 | window.setTimeout(function () {
|
- | |
271 | window.alert(link);
|
268 | lcars.insertSound(); |
272 | }, 1000);
|
- | |
273 | return false;
|
- | |
274 | */ ?> |
- | |
275 | return true; |
- | |
276 | } |
269 | } |
277 | </script> |
270 | </script> |
278 | </head> |
271 | </head> |
279 | <body class="fade-in empty" onload="body_load(this)"> |
272 | <body class="fade-in empty" onload="body_load(this)"> |
280 | <div id="LCARS"> |
273 | <div id="LCARS"> |
Line 303... | Line 296... | ||
303 | border="0" |
296 | border="0" |
304 | onmouseover="return setStatus(this.title)" |
297 | onmouseover="return setStatus(this.title)" |
305 | onmouseout="return resetStatus()"></div> |
298 | onmouseout="return resetStatus()"></div> |
306 | 299 | ||
307 | <ul id="greeting"> |
300 | <ul id="greeting"> |
308 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $vulcan; ?>">Dif-tor heh smusma</p></li> |
301 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $vulcan; ?>"><span class="text">Dif-tor heh smusma</span></p></li> |
309 | <?php foreach ($languages as $key => $name): ?> |
302 | <?php foreach ($languages as $key => $name): ?> |
310 | <?php if ($key != $vulcan): ?> |
303 | <?php if ($key != $vulcan): ?> |
311 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $key; ?>"><?php echo tr('Live long and prosper', $key); ?></p></li> |
304 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $key; ?>"><?php echo tr('Live long and prosper', $key); ?></p></li> |
312 | <?php endif; ?> |
305 | <?php endif; ?> |
313 | <?php endforeach; ?> |
306 | <?php endforeach; ?> |
Line 319... | Line 312... | ||
319 | <?php endforeach; ?> |
312 | <?php endforeach; ?> |
320 | </ul> |
313 | </ul> |
321 | 314 | ||
322 | <div class="group"> |
315 | <div class="group"> |
323 | <div class="separator"> </div> |
316 | <div class="separator"> </div> |
- | 317 | <ul id="languages" |
|
324 | <ul id="languages" onmouseout="lcars_translate_reset()"> |
318 | onmouseout="lcars_translate_reset()"> |
325 | <?php foreach ($languages as $key => $name): ?> |
319 | <?php foreach ($languages as $key => $name): ?> |
326 | <li><a href="index.<?php echo language_key_short($key); ?>" |
320 | <li><a href="index.<?php echo language_key_short($key); ?>" |
327 | class="button right" lang="<?php echo $key; ?>" |
321 | class="button" lang="<?php echo $key; ?>" |
328 | hreflang="<?php echo $key; ?>" |
322 | hreflang="<?php echo $key; ?>" |
329 | accesskey="<?php echo strtolower($key[0]); ?>" |
323 | accesskey="<?php echo strtolower($key[0]); ?>" |
330 | onfocus="lcars_translate('<?php echo $key; ?>')" |
324 | onfocus="lcars_translate('<?php echo $key; ?>')" |
331 | onmouseover="lcars_translate('<?php echo $key; ?>')" |
325 | onmouseover="lcars_translate('<?php echo $key; ?>')" |
332 | onclick="return navigateTo(this)" |
- | |
333 | onblur="lcars_translate_reset()" |
326 | onblur="lcars_translate_reset()" |
334 | ><span class="key"><?php echo language_key_short($key); ?></span> |
327 | ><span class="key"><?php echo language_key_short($key); ?></span> |
335 | <span class="text"><?php echo language_name($key); ?></span></a></li> |
328 | <span class="text"><?php echo language_name($key); ?></span></a></li> |
336 | <?php endforeach; ?> |
329 | <?php endforeach; ?> |
337 | </ul> |
330 | </ul> |