Rev 198 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 198 | Rev 211 | ||
---|---|---|---|
Line 103... | Line 103... | ||
103 | background-color: #000; |
103 | background-color: #000; |
104 | color: #fff; |
104 | color: #fff; |
105 | font-size: 136%; |
105 | font-size: 136%; |
106 | } |
106 | } |
107 | 107 | ||
- | 108 | .instruction { |
|
- | 109 | line-height: 1.2; |
|
- | 110 | } |
|
- | 111 | ||
- | 112 | .group { |
|
- | 113 | width: 9.92em; |
|
- | 114 | } |
|
- | 115 | ||
108 | #languages .key { |
116 | #languages .button { |
- | 117 | width: 8.25em; |
|
- | 118 | } |
|
- | 119 | ||
- | 120 | #languages .button .key { |
|
109 | min-width: 0.65em; |
121 | min-width: 0.675em; |
- | 122 | } |
|
- | 123 | ||
- | 124 | #languages .button .text { |
|
- | 125 | max-width: 4.55em; |
|
110 | } |
126 | } |
111 | --> |
127 | --> |
112 | </style> |
128 | </style> |
113 | <?php /* |
129 | <?php /* |
114 | <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>
|
115 | */ ?> |
131 | */ ?> |
116 | <script type="text/javascript" src="scripts/builder?src=object,dom/window"></script> |
132 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/xpath,dom/window,dom/xpath,regexp"></script> |
- | 133 | <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
|
117 | <script type="text/javascript"> |
134 | <script type="text/javascript"> |
118 | <?php /* |
135 | <?php /* |
119 | /* Hardcore Frame Buster
|
136 | /* Hardcore Frame Buster
|
120 | if (parent.frames.length > 0 )
|
137 | if (parent.frames.length > 0 )
|
121 | parent.location.href = window.location.href;
|
138 | parent.location.href = window.location.href;
|
Line 192... | Line 209... | ||
192 | })
|
209 | })
|
193 | ]
|
210 | ]
|
194 | });
|
211 | });
|
195 | animation.play();
|
212 | animation.play();
|
196 | }
|
213 | }
|
- | 214 | */
|
|
197 | */ ?> |
215 | ?>
|
- | 216 | var translatables; |
|
- | 217 | ||
- | 218 | function lcars_translate (language) |
|
- | 219 | { |
|
- | 220 | if (!translatables) |
|
- | 221 | { |
|
- | 222 | translatables = jsx.dom.xpath.evaluate( |
|
- | 223 | './/li[(@lang and (../../*[@id and (@id != "languages")]))' |
|
- | 224 | + ' or (p and p[@lang])]', |
|
- | 225 | document.body); |
|
- | 226 | } |
|
- | 227 | ||
- | 228 | if (!translatables) |
|
- | 229 | { |
|
- | 230 | return; |
|
- | 231 | } |
|
- | 232 | ||
- | 233 | var language_prefix = language.match(/^[^-]+/); |
|
- | 234 | ||
- | 235 | for (var i = translatables.length; i--;) |
|
- | 236 | { |
|
- | 237 | var translatable = translatables[i]; |
|
- | 238 | translatable.style.display = |
|
- | 239 | (translatable.lang.indexOf(language_prefix) == 0 |
|
- | 240 | || translatable.firstChild.lang == language |
|
- | 241 | || translatable.firstChild.lang.indexOf("vuh") == 0 |
|
- | 242 | || (translatable.firstChild.lang == "en" && language.indexOf("vuh") == 0)) |
|
- | 243 | ? "" |
|
- | 244 | : "none"; |
|
- | 245 | } |
|
- | 246 | } |
|
- | 247 | ||
- | 248 | function lcars_translate_reset () |
|
- | 249 | { |
|
- | 250 | lcars_translate('en'); |
|
- | 251 | } |
|
- | 252 | ||
- | 253 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
|
- | 254 | ||
- | 255 | function body_load (body) |
|
- | 256 | { |
|
- | 257 | if (typeof body.ontouchstart != 'undefined') |
|
- | 258 | { |
|
- | 259 | body.ontouchstart = function () {}; |
|
- | 260 | } |
|
- | 261 | ||
- | 262 | lcars_translate_reset(); |
|
- | 263 | mediaScript(); |
|
- | 264 | } |
|
198 | 265 | ||
199 | function navigateTo (link) |
266 | function navigateTo (link) |
200 | { |
267 | { |
201 | <?php /* |
268 | <?php /* |
202 | animate();
|
269 | animate();
|
Line 207... | Line 274... | ||
207 | */ ?> |
274 | */ ?> |
208 | return true; |
275 | return true; |
209 | } |
276 | } |
210 | </script> |
277 | </script> |
211 | </head> |
278 | </head> |
212 | <body class="fade-in empty" onload="if (typeof this.ontouchstart != 'undefined') this.ontouchstart = function () {}"> |
279 | <body class="fade-in empty" onload="body_load(this)"> |
213 | <div id="LCARS"> |
280 | <div id="LCARS"> |
214 | <div id="bow"> |
281 | <div id="bow"> |
215 | <div id="bow-top"> |
282 | <div id="bow-top"> |
216 | <div class="separator-left"> </div> |
283 | <div class="separator-left"> </div> |
217 | <h1 class="text"><span>PointedEars’ Website</span></h1> |
284 | <h1 class="text"><span>PointedEars’ Website</span></h1> |
Line 236... | Line 303... | ||
236 | border="0" |
303 | border="0" |
237 | onmouseover="return setStatus(this.title)" |
304 | onmouseover="return setStatus(this.title)" |
238 | onmouseout="return resetStatus()"></div> |
305 | onmouseout="return resetStatus()"></div> |
239 | 306 | ||
240 | <ul id="greeting"> |
307 | <ul id="greeting"> |
241 | <li style="white-space: nowrap"><p style="text-align: center" lang="x-vulcan-latin">Dif-tor heh smusma</p></li> |
308 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $vulcan; ?>">Dif-tor heh smusma</p></li> |
242 | <li style="white-space: nowrap"><p style="text-align: center" lang="en">Live long and prosper</p></li> |
309 | <?php foreach ($languages as $key => $name): ?> |
- | 310 | <?php if ($key != $vulcan): ?> |
|
243 | <li style="white-space: nowrap"><p style="text-align: center" lang="de">Leben Sie lang und erfolgreich</p></li> |
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> |
- | 312 | <?php endif; ?> |
|
- | 313 | <?php endforeach; ?> |
|
244 | </ul> |
314 | </ul> |
245 | 315 | ||
246 | <ul style="text-align: center"> |
316 | <ul style="text-align: center"> |
247 | <li class="instruction" lang="en">Please select your language</li> |
317 | <?php foreach ($languages as $key => $name): ?> |
248 | <li class="instruction" lang="de">Bitte wählen Sie Ihre Sprache</li> |
318 | <li class="instruction" lang="<?php echo $key; ?>"><span class="text"><?php echo tr('Please select your language', $key); ?></span></li> |
- | 319 | <?php endforeach; ?> |
|
249 | </ul> |
320 | </ul> |
250 | 321 | ||
251 | <div class="group"> |
322 | <div class="group"> |
252 | <div class="separator"> </div> |
323 | <div class="separator"> </div> |
253 | <ul id="languages"> |
324 | <ul id="languages" onmouseout="lcars_translate_reset()"> |
- | 325 | <?php foreach ($languages as $key => $name): ?> |
|
254 | <li><a href="index.en" class="button right" lang="en" |
326 | <li><a href="index.<?php echo language_key_short($key); ?>" |
- | 327 | class="button right" lang="<?php echo $key; ?>" |
|
255 | hreflang="en" accesskey="e" |
328 | hreflang="<?php echo $key; ?>" |
256 | ><span class="key">en</span> <span class="text">English</span></a></li> |
329 | accesskey="<?php echo strtolower($key[0]); ?>" |
257 | <li><a href="index.de" class="button right" lang="de" |
330 | onfocus="lcars_translate('<?php echo $key; ?>')" |
258 | hreflang="de" accesskey="d" |
331 | onmouseover="lcars_translate('<?php echo $key; ?>')" |
259 | onclick="return navigateTo(this)" |
332 | onclick="return navigateTo(this)" |
- | 333 | onblur="lcars_translate_reset()" |
|
- | 334 | ><span class="key"><?php echo language_key_short($key); ?></span> |
|
260 | ><span class="key">de</span> <span class="text">Deutsch</span></a></li> |
335 | <span class="text"><?php echo language_name($key); ?></span></a></li> |
- | 336 | <?php endforeach; ?> |
|
261 | </ul> |
337 | </ul> |
262 | <div style="clear: both"><!-- --></div> |
338 | <div style="clear: both"><!-- --></div> |
263 | </div> |
339 | </div> |
264 | 340 | ||
265 | <?php
|
341 | <?php
|
266 | $app = 'Language'; |
342 | $app = 'Language'; |
267 | require_once 'footer.phtml'; |
343 | require_once 'application/layouts/index/footer.phtml'; |
268 | ?>
|
344 | ?>
|
269 | </div> |
345 | </div> |
270 | </body> |
346 | </body> |
271 | </html> |
347 | </html> |
272 | 348 |