Rev 228 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 228 | Rev 235 | ||
---|---|---|---|
1 | <!DOCTYPE html> |
1 | <!DOCTYPE html> |
2 | <html lang="<?php echo $language; ?>"> |
2 | <html lang="<?php echo $language; ?>"> |
3 | <head> |
3 | <head> |
4 | <title>Home — PointedEars’ Website</title> |
4 | <title><?php echo tr('Home') . ' – ' . tr("PointedEars' Website"); ?></title> |
5 | 5 | ||
6 | <link rel="SHORTCUT ICON" href="favicon.ico"> |
6 | <link rel="SHORTCUT ICON" href="favicon.ico"> |
7 | 7 | ||
8 | <!-- Browsers: Character Encoding --> |
8 | <!-- Browsers: Character Encoding --> |
9 | <meta charset="UTF-8"> |
9 | <meta charset="UTF-8"> |
10 | <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
10 | <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
11 | 11 | ||
12 | <!-- Robots: Index, Subordinated Files, Description, Author, |
12 | <!-- Robots: Index, Subordinated Files, Description, Author, |
13 | Keywords, Document Date --> |
13 | Keywords, Document Date --> |
14 | <meta name="robots" content="index"> |
14 | <meta name="robots" content="index"> |
15 | <meta name="robots" content="follow"> |
15 | <meta name="robots" content="follow"> |
16 | <?php /* |
16 | <?php /* |
17 | <meta name="description"
|
17 | <meta name="description"
|
18 | content="PointedEars' Website: <?php
|
18 | content="PointedEars' Website: <?php
|
19 | $description = tr("Access to the United Federation of Planets Databanks, an online songbook and software downloads always worth a click. Coming soon: The best internet links categorized and much more via a bilingual (English/German) LCARS terminal styled user interface that can be also used to surf the web anonymously! Bookmark NOW!");
|
19 | $description = tr("Access to the United Federation of Planets Databanks, an online songbook and software downloads always worth a click. Coming soon: The best internet links categorized and much more via a bilingual (English/German) LCARS terminal styled user interface that can be also used to surf the web anonymously! Bookmark NOW!");
|
20 | echo $description;
|
20 | echo $description;
|
21 | ?>">
|
21 | ?>">
|
22 | */ ?> |
22 | */ ?> |
23 | <meta name="author" content="Thomas ‘PointedEars’ Lahn"> |
23 | <meta name="author" content="Thomas ‘PointedEars’ Lahn"> |
24 | 24 | ||
25 | <?php /* No localization of keywords at the time */ ?> |
25 | <?php /* No localization of keywords at the time */ ?> |
26 | <meta name="keywords" |
26 | <meta name="keywords" |
27 | content="<?php /* Appz, */ ?>Download, Links, LCARS, Star Trek, TNG, The Next Generation, DS9, Deep Space 9, Deep Space Nine, VOY, Voyager, UFP, Federation, United Federation of Planets, Database, Databank, <?php /* Song, Songbook, Surf, anonymously, */?>Raumschiff Enterprise, DNG, Die nächste Generation, VFP, Föderation, Vereinte Föderation der Planeten, Datenbasis, Datenbank<?php /*, Lied, Liedtext, surfen, anonym */ ?>"> |
27 | content="<?php /* Appz, */ ?>Download, Links, LCARS, Star Trek, TNG, The Next Generation, DS9, Deep Space 9, Deep Space Nine, VOY, Voyager, UFP, Federation, United Federation of Planets, Database, Databank, <?php /* Song, Songbook, Surf, anonymously, */?>Raumschiff Enterprise, DNG, Die nächste Generation, VFP, Föderation, Vereinte Föderation der Planeten, Datenbasis, Datenbank<?php /*, Lied, Liedtext, surfen, anonym */ ?>"> |
28 | <?php /* |
28 | <?php /* |
29 | <meta name="keywords" http-equiv="Keywords" lang="de" content="">
|
29 | <meta name="keywords" http-equiv="Keywords" lang="de" content="">
|
30 | <meta name="keywords" http-equiv="Keywords" lang="en-us" content="">
|
30 | <meta name="keywords" http-equiv="Keywords" lang="en-us" content="">
|
31 | <meta name="keywords" http-equiv="Keywords" lang="en" content="">
|
31 | <meta name="keywords" http-equiv="Keywords" lang="en" content="">
|
32 | */ ?> |
32 | */ ?> |
33 | <meta name="revisit-after" content="3 days"> |
33 | <meta name="revisit-after" content="3 days"> |
34 | 34 | ||
35 | <!-- Robots: Dublin Core Metadata (http://purl.org/metadata/dublin_core) --> |
35 | <!-- Robots: Dublin Core Metadata (http://purl.org/metadata/dublin_core) --> |
36 | <meta name="dcterms.title" content="PointedEars’ Website"> |
36 | <meta name="dcterms.title" content="PointedEars’ Website"> |
37 | <meta name="dcterms.creator" content="Thomas ‘PointedEars’ Lahn"> |
37 | <meta name="dcterms.creator" content="Thomas ‘PointedEars’ Lahn"> |
38 | <meta name="dcterms.subject" content="Private Web site"> |
38 | <meta name="dcterms.subject" content="Private Web site"> |
39 | <?php /* |
39 | <?php /* |
40 | <meta name="dcterms.description"
|
40 | <meta name="dcterms.description"
|
41 | content="PointedEars' Website: <?php echo $description; ?>">
|
41 | content="PointedEars' Website: <?php echo $description; ?>">
|
42 | */ ?> |
42 | */ ?> |
43 | <meta name="dcterms.publisher" content="PointedEars"> |
43 | <meta name="dcterms.publisher" content="PointedEars"> |
44 | <meta name="dcterms.date" content="2002-05-23T10:56:00+02:00"> |
44 | <meta name="dcterms.date" content="2002-05-23T10:56:00+02:00"> |
45 | <meta name="dcterms.created" content="2002-05-23"> |
45 | <meta name="dcterms.created" content="2002-05-23"> |
46 | <meta name="dcterms.modified" content="<?php echo gmdate('Y-m-dTH:i:sO', $modi); ?>"> |
46 | <meta name="dcterms.modified" content="<?php echo gmdate('Y-m-dTH:i:sO', $modi); ?>"> |
47 | <?php /* |
47 | <?php /* |
48 | <meta name="dcterms.type" content="">
|
48 | <meta name="dcterms.type" content="">
|
49 | <meta name="dcterms.format" content="">
|
49 | <meta name="dcterms.format" content="">
|
50 | */ ?> |
50 | */ ?> |
51 | <meta name="dcterms.identifier" content="http://pointedears.de/index.<?php echo $language; ?>"> |
51 | <meta name="dcterms.identifier" content="http://pointedears.de/index.<?php echo $language; ?>"> |
52 | <meta name="dcterms.language" content="<?php echo $language; ?>"> |
52 | <meta name="dcterms.language" content="<?php echo $language; ?>"> |
53 | <meta name="dcterms.rightsHolder" |
53 | <meta name="dcterms.rightsHolder" |
54 | content="Copyright © 2002–<?php echo gmdate('Y', $modi); ?> Thomas Lahn."> |
54 | content="Copyright © 2002–<?php echo gmdate('Y', $modi); ?> Thomas Lahn."> |
55 | <meta name="dcterms.rights" |
55 | <meta name="dcterms.rights" |
56 | content="<?php echo tr("All rights reserved."); ?> <?php echo tr("The author is not responsible for the availability and the content of websites referred by this site, and not responsible for the availability and the content of websites referred by those sites. Whereever outsourced material is used, copyright or trademark infringement is not intended. Third parties who claim copyrights or trademarks used herein are asked to send an informal email to webmaster@PointedEars.de for immediate removal or modification of the respective material on the website instead of reminding the author of usage of this material. Thank you."); ?>"> |
56 | content="<?php echo tr("All rights reserved."); ?> <?php echo tr("The author is not responsible for the availability and the content of websites referred by this site, and not responsible for the availability and the content of websites referred by those sites. Whereever outsourced material is used, copyright or trademark infringement is not intended. Third parties who claim copyrights or trademarks used herein are asked to send an informal email to webmaster@PointedEars.de for immediate removal or modification of the respective material on the website instead of reminding the author of usage of this material. Thank you."); ?>"> |
57 | 57 | ||
58 | <?php /* |
58 | <?php /* |
59 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars.css"> -->
|
59 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars.css"> -->
|
60 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> -->
|
60 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> -->
|
61 | <!-- No optimization here: Resource Builder does not handle URI parameters -->
|
61 | <!-- No optimization here: Resource Builder does not handle URI parameters -->
|
62 | */ ?> |
62 | */ ?> |
63 | <link rel="stylesheet" type="text/css" href="styles/lcars-basic"> |
63 | <link rel="stylesheet" type="text/css" href="styles/lcars-basic"> |
64 | <?php
|
64 | <?php
|
65 | $isLocal = ($_SERVER['HTTP_HOST'] === 'localhost'); |
65 | $isLocal = ($_SERVER['HTTP_HOST'] === 'localhost'); |
66 | $printable = (isset($_GET['printable']) && $_GET['printable'] === '1'); |
66 | $printable = (isset($_GET['printable']) && $_GET['printable'] === '1'); |
67 | if (!$printable) |
67 | if (!$printable) |
68 | {
|
68 | {
|
69 | ?>
|
69 | ?>
|
70 | <link rel="stylesheet" type="text/css" href="styles/lcars22<?php
|
70 | <link rel="stylesheet" type="text/css" href="styles/lcars22<?php
|
71 | if (isset($_GET['ani']) && $_GET['ani'] !== '') |
71 | if (isset($_GET['ani']) && $_GET['ani'] !== '') |
72 | {
|
72 | {
|
73 | echo '?ani=' . $_GET['ani']; |
73 | echo '?ani=' . $_GET['ani']; |
74 | }
|
74 | }
|
75 | ?>">
|
75 | ?>">
|
76 | <?php
|
76 | <?php
|
77 | }
|
77 | }
|
- | 78 | ||
- | 79 | if ($language == $klingon) |
|
- | 80 | {
|
|
- | 81 | ?>
|
|
- | 82 | <link rel="stylesheet" type="text/css" href="styles/lcars-klingon"> |
|
- | 83 | <?php
|
|
- | 84 | }
|
|
78 | ?>
|
85 | ?>
|
79 | <!--[if lt IE 7]> |
86 | <!--[if lt IE 7]> |
80 | <link rel="stylesheet" type="text/css" href="styles/lcars22-ie6.css"> |
87 | <link rel="stylesheet" type="text/css" href="styles/lcars22-ie6.css"> |
81 | <![endif]--> |
88 | <![endif]--> |
82 | <style type="text/css"> |
89 | <style type="text/css"> |
83 | <!-- |
90 | <!-- |
84 | p { |
91 | p { |
85 | max-width: 100%; |
92 | max-width: 100%; |
86 | } |
93 | } |
87 | --> |
94 | --> |
88 | </style> |
95 | </style> |
89 | - | ||
90 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/storage,dom/events,dom/geolocation,dom/timeout,dom/widgets,dom/window,dom/xpath,http,regexp,lcars,../application/scripts/klingon,../application/scripts/vulcan-media-script<?php
|
96 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/storage,dom/events,dom/geolocation,dom/timeout,dom/widgets,dom/window,dom/xpath,http,regexp,lcars<?php
|
91 | if ($isLocal) |
97 | if ($isLocal) |
92 | {
|
98 | {
|
93 | ?>&verbose=1&debug=1<?php |
99 | ?>&verbose=1&debug=1<?php |
94 | }
|
100 | }
|
95 | ?>"></script>
|
101 | ?>"></script>
|
- | 102 | <?php
|
|
- | 103 | if ($language == $klingon) |
|
- | 104 | {
|
|
- | 105 | ?>
|
|
- | 106 | <script type="text/javascript" src="application/scripts/klingon.js"></script> |
|
- | 107 | <?php
|
|
- | 108 | }
|
|
- | 109 | else if ($language == $vulcan) |
|
- | 110 | {
|
|
- | 111 | ?>
|
|
- | 112 | <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
|
- | 113 | <?php
|
|
- | 114 | }
|
|
- | 115 | ?>
|
|
96 | <script type="text/javascript"> |
116 | <script type="text/javascript"> |
97 | <?php
|
117 | <?php
|
98 | /*
|
118 | /*
|
99 | var ms1Day = 60*60*24*1000; // ms for 1 days = 60sec*60min*24hours*1000ms
|
119 | var ms1Day = 60*60*24*1000; // ms for 1 days = 60sec*60min*24hours*1000ms
|
100 | var msLeaveDays = ms1Day*6;
|
120 | var msLeaveDays = ms1Day*6;
|
101 | var ms30Days=ms1Day*30;
|
121 | var ms30Days=ms1Day*30;
|
102 | var delta;
|
122 | var delta;
|
103 | var newTime=new Date();
|
123 | var newTime=new Date();
|
104 | var msTime=newTime.getTime();
|
124 | var msTime=newTime.getTime();
|
105 | var msExpire=msTime+ms30Days;
|
125 | var msExpire=msTime+ms30Days;
|
106 | var expireTime=new Date(msExpire);
|
126 | var expireTime=new Date(msExpire);
|
107 | 127 | ||
108 | cookieVal=
|
128 | cookieVal=
|
109 | "savedTime=" + newTime.toGMTString()
|
129 | "savedTime=" + newTime.toGMTString()
|
110 | + "; expires=" + expireTime.toGMTString()
|
130 | + "; expires=" + expireTime.toGMTString()
|
111 | + "; domain=anybody"
|
131 | + "; domain=anybody"
|
112 | + "; path=/";
|
132 | + "; path=/";
|
113 | document.cookie= cookieVal;
|
133 | document.cookie= cookieVal;
|
114 | */
|
134 | */
|
115 | ?>
|
135 | ?>
|
116 | var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>"; |
136 | var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>"; |
- | 137 | var cmd3; |
|
- | 138 | var oScreenDim; |
|
- | 139 | var oAvailDim; |
|
- | 140 | var oInnerDim; |
|
- | 141 | var _gEBI = jsx.dom.getElementById; |
|
- | 142 | var previousIsFullscreen; |
|
- | 143 | var fullscreenText; |
|
- | 144 | ||
- | 145 | var LANG_KLINGON = "<?php echo $klingon; ?>"; |
|
- | 146 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
|
- | 147 | lcars.language = "<?php echo $language; ?>"; |
|
117 | 148 | ||
118 | function body_load () |
149 | function body_load () |
119 | { |
150 | { |
120 | if (typeof this.ontouchstart != 'undefined') |
151 | if (typeof this.ontouchstart != 'undefined') |
121 | { |
152 | { |
122 | this.ontouchstart = function () {}; |
153 | this.ontouchstart = function () {}; |
123 | } |
154 | } |
124 | 155 | ||
125 | if (fullscreen.isSupportedBy(document.documentElement)) |
156 | if (fullscreen.isSupportedBy(document.documentElement)) |
126 | { |
157 | { |
127 | var fullscreenLI = jsx.dom.getElementById("cmd3"); |
158 | var fullscreenLI = jsx.dom.getElementById("cmd3"); |
128 | fullscreenLI.firstChild.style.cursor = ""; |
159 | fullscreenLI.firstChild.style.cursor = ""; |
129 | } |
160 | } |
130 | 161 | ||
131 | jsx.dom.geolocation.setTexts({ |
162 | jsx.dom.geolocation.setTexts({ |
132 | TEXT_LATITUDE: "<?php echo tr('Latitude'); ?>", |
163 | TEXT_LATITUDE: "<?php echo tr('Latitude'); ?>", |
133 | TEXT_NORTH_ABBR: "<?php echo tr('N'); ?>", |
164 | TEXT_NORTH_ABBR: "<?php echo tr('N'); ?>", |
134 | TEXT_SOUTH_ABBR: "<?php echo tr('S'); ?>", |
165 | TEXT_SOUTH_ABBR: "<?php echo tr('S'); ?>", |
135 | TEXT_LONGITUDE: "<?php echo tr('Longitude'); ?>", |
166 | TEXT_LONGITUDE: "<?php echo tr('Longitude'); ?>", |
136 | TEXT_WEST_ABBR: "<?php echo tr('W'); ?>", |
167 | TEXT_WEST_ABBR: "<?php echo tr('W'); ?>", |
137 | TEXT_EAST_ABBR: "<?php echo tr('E'); ?>", |
168 | TEXT_EAST_ABBR: "<?php echo tr('E'); ?>", |
138 | TEXT_LAT_LNG_ACCURACY: "<?php echo tr('Lat/Lng Accuracy'); ?>", |
169 | TEXT_LAT_LNG_ACCURACY: "<?php echo tr('Lat/Lng Accuracy'); ?>", |
139 | TEXT_ALTITUDE: "<?php echo tr('Altitude'); ?>", |
170 | TEXT_ALTITUDE: "<?php echo tr('Altitude'); ?>", |
140 | TEXT_ALT_ACCURACY: "<?php echo tr('Alt. Accuracy'); ?>", |
171 | TEXT_ALT_ACCURACY: "<?php echo tr('Alt. Accuracy'); ?>", |
141 | TEXT_SPEED: "<?php echo tr('Speed'); ?>", |
172 | TEXT_SPEED: "<?php echo tr('Speed'); ?>", |
142 | TEXT_HEADING: "<?php echo tr('Heading'); ?>", |
173 | TEXT_HEADING: "<?php echo tr('Heading'); ?>", |
143 | TEXT_NOT_AVAILABLE: TEXT_NOT_AVAILABLE |
174 | TEXT_NOT_AVAILABLE: TEXT_NOT_AVAILABLE |
144 | }); |
175 | }); |
145 | 176 | ||
146 | lcars.content = new lcars.Content(null, null, { |
177 | lcars.content = new lcars.Content(null, null, { |
147 | texts: { |
178 | texts: { |
148 | TEXT_CURRENT_COORDS: "<?php echo tr('Your current coordinates on Terra'); ?>" |
179 | TEXT_CURRENT_COORDS: "<?php echo tr('Your current coordinates on Terra'); ?>" |
149 | } |
180 | } |
150 | }); |
181 | }); |
151 | 182 | ||
152 | lcars.multiDisplay = new lcars.MultiDisplay(null, null, { |
183 | lcars.multiDisplay = new lcars.MultiDisplay(null, null, { |
153 | texts: { |
184 | texts: { |
154 | TEXT_NOT_AVAILABLE: TEXT_NOT_AVAILABLE, |
185 | TEXT_NOT_AVAILABLE: TEXT_NOT_AVAILABLE, |
155 | TEXT_CURRENT_COORDS: "<?php echo tr('Your current coordinates on Terra'); ?>", |
186 | TEXT_CURRENT_COORDS: "<?php echo tr('Your current coordinates on Terra'); ?>", |
156 | TEXT_ACCURACY: "<?php echo tr('accuracy'); ?>" |
187 | TEXT_ACCURACY: "<?php echo tr('accuracy'); ?>" |
157 | }, |
188 | }, |
158 | content: lcars.content |
189 | content: lcars.content |
159 | }); |
190 | }); |
160 | 191 | ||
- | 192 | /* Fullscreen button */ |
|
- | 193 | if (fullscreen.isSupportedBy(document.documentElement)) |
|
- | 194 | { |
|
- | 195 | cmd3 = jsx.dom.getElementById("cmd3"); |
|
- | 196 | ||
- | 197 | if (cmd3) |
|
- | 198 | { |
|
- | 199 | cmd3.firstChild.tabIndex = "1"; |
|
- | 200 | cmd3.firstChild.style.cursor = ""; |
|
- | 201 | fullscreenText = "<?php echo tr("Fullscreen"); ?>"; |
|
- | 202 | /* FIXME: Replaces the `span' element; need LCARS-specific button */ |
|
- | 203 | // var fullscreenButton = new lcars.FullscreenButton( |
|
- | 204 | // document.getElementById("cmd3").firstChild, null, { |
|
- | 205 | // text: fullscreenText |
|
- | 206 | // }); |
|
- | 207 | cmd3.firstChild.firstChild.innerHTML = fullscreenText; |
|
- | 208 | } |
|
- | 209 | } |
|
- | 210 | ||
- | 211 | _addEventListener(window, "resize", function () { |
|
- | 212 | <?php /* FIXME: Also update title attribute value */ ?> |
|
- | 213 | if (typeof oScreenDim == "undefined") oScreenDim = _gEBI(ID_SCREEN_DIM); |
|
- | 214 | var screen_text = dim.getScreenText(); |
|
- | 215 | if (lcars.language == LANG_KLINGON) screen_text = pIqaDize(screen_text); |
|
- | 216 | if (oScreenDim) oScreenDim.innerHTML = screen_text; |
|
- | 217 | ||
- | 218 | if (typeof oAvailDim == "undefined") oAvailDim = _gEBI(ID_AVAIL_DIM); |
|
- | 219 | var avail_text = dim.getAvailText(); |
|
- | 220 | if (lcars.language == LANG_KLINGON) avail_text = pIqaDize(avail_text); |
|
- | 221 | if (oAvailDim) oAvailDim.innerHTML = avail_text; |
|
- | 222 | if (typeof oInnerDim == "undefined") oInnerDim = _gEBI(ID_INNER_DIM); |
|
- | 223 | var inner_text = dim.getInnerText(); |
|
- | 224 | if (lcars.language == LANG_KLINGON) inner_text = pIqaDize(inner_text); |
|
- | 225 | if (oInnerDim) oInnerDim.innerHTML = inner_text; |
|
- | 226 | ||
- | 227 | if (fullscreen.isSupportedBy(document.documentElement)) |
|
- | 228 | { |
|
- | 229 | var nowIsFullscreen = fullscreen.isFullscreen(); |
|
- | 230 | if (nowIsFullscreen != previousIsFullscreen) |
|
- | 231 | { |
|
- | 232 | if (typeof cmd3 == "undefined") |
|
- | 233 | { |
|
- | 234 | cmd3 = document.getElementById("cmd3"); |
|
- | 235 | } |
|
- | 236 | ||
- | 237 | var textTarget = cmd3.firstChild.firstChild; |
|
- | 238 | if (nowIsFullscreen) |
|
- | 239 | { |
|
- | 240 | var innerHTML = "<?php echo tr("Window"); ?>"; |
|
- | 241 | ||
- | 242 | if (transcripted) |
|
- | 243 | { |
|
- | 244 | textTarget.title = innerHTML; |
|
- | 245 | ||
- | 246 | switch (lcars.language) |
|
- | 247 | { |
|
- | 248 | case LANG_KLINGON: |
|
- | 249 | innerHTML = pIqaDize(innerHTML); |
|
- | 250 | break; |
|
- | 251 | ||
- | 252 | case LANG_VULCAN: |
|
- | 253 | innerHTML = mediaTranscribe(innerHTML); |
|
- | 254 | break; |
|
- | 255 | } |
|
- | 256 | } |
|
- | 257 | ||
- | 258 | textTarget.innerHTML = innerHTML; |
|
- | 259 | } |
|
- | 260 | else |
|
- | 261 | { |
|
- | 262 | var text = fullscreenText; |
|
- | 263 | ||
- | 264 | if (transcripted) |
|
- | 265 | { |
|
- | 266 | textTarget.title = text; |
|
- | 267 | ||
- | 268 | switch (lcars.language) |
|
- | 269 | { |
|
- | 270 | case LANG_KLINGON: |
|
- | 271 | text = pIqaDize(text); |
|
- | 272 | break; |
|
- | 273 | ||
- | 274 | case LANG_VULCAN: |
|
- | 275 | text = mediaTranscribe(text); |
|
- | 276 | break; |
|
- | 277 | } |
|
- | 278 | } |
|
- | 279 | ||
- | 280 | textTarget.innerHTML = text; |
|
- | 281 | } |
|
- | 282 | ||
- | 283 | previousIsFullscreen = nowIsFullscreen; |
|
- | 284 | } |
|
- | 285 | } |
|
- | 286 | }); |
|
- | 287 | ||
161 | /* Enable Klingon pIQaD/Vulcan Media Script */ |
288 | /* Enable Klingon pIQaD/Vulcan Media Script */ |
162 | var cmd4 = document.getElementById("cmd4"); |
289 | var cmd4 = document.getElementById("cmd4"); |
163 | if (cmd4 && cmd4.lastChild && typeof cmd4.lastChild.onclick == "function") |
290 | if (cmd4 && cmd4.lastChild) |
164 | { |
291 | { |
165 | jsx.dom.timeout.runAsync(function () { |
292 | jsx.dom.timeout.runAsync(function () { |
166 | var event = document.createEvent("Events"); |
- | |
167 | event.initEvent("click", true, false); |
- | |
168 | cmd4.lastChild.dispatchEvent(event); |
293 | cmd4.lastChild.click(); |
169 | }, 1000); |
294 | }, 1000); |
170 | } |
295 | } |
171 | 296 | ||
172 | lcars.insertSound(); |
297 | lcars.insertSound(); |
173 | } |
298 | } |
- | 299 | ||
- | 300 | var transcripted = false; |
|
- | 301 | ||
- | 302 | function toggleScript (button) |
|
- | 303 | { |
|
- | 304 | var caption = button.firstChild; |
|
- | 305 | ||
- | 306 | if (transcripted) |
|
- | 307 | { |
|
- | 308 | if (lcars.language == LANG_KLINGON) klingonLatinScript(button); |
|
- | 309 | if (lcars.language == LANG_VULCAN) latinScript(button); |
|
- | 310 | ||
- | 311 | caption.textContent = caption.getAttribute("data-text"); |
|
- | 312 | caption.removeAttribute("data-text"); |
|
- | 313 | caption.title = caption.getAttribute("data-title"); |
|
- | 314 | caption.removeAttribute("data-title"); |
|
- | 315 | } |
|
- | 316 | else |
|
- | 317 | { |
|
- | 318 | if (lcars.language == LANG_KLINGON) pIqaD(button); |
|
- | 319 | if (lcars.language == LANG_VULCAN) mediaScript(button); |
|
- | 320 | ||
- | 321 | caption.setAttribute("data-text", caption.textContent); |
|
- | 322 | caption.textContent = "<?php echo tr('Latin'); ?>"; |
|
- | 323 | caption.setAttribute("data-title", caption.title); |
|
- | 324 | caption.removeAttribute("title"); |
|
- | 325 | } |
|
- | 326 | ||
- | 327 | transcripted = !transcripted; |
|
- | 328 | } |
|
174 | </script> |
329 | </script> |
175 | <?php /* <bgsound src="media/interface/sound/beginop.wav" loop="infinite"> */ ?> |
330 | <?php /* <bgsound src="media/interface/sound/beginop.wav" loop="infinite"> */ ?> |
176 | </head> |
331 | </head> |
177 | <body class="fade-in" onload="body_load()"> |
332 | <body class="fade-in" onload="body_load()"> |
178 | <?php require_once 'content.phtml'; ?> |
333 | <?php require_once 'content.phtml'; ?> |
179 | <?php require_once 'multi-display.phtml'; ?> |
334 | <?php require_once 'multi-display.phtml'; ?> |
180 | </body> |
335 | </body> |
181 | </html> |
336 | </html> |
182 | 337 |