Subversion Repositories LCARS

Rev

Rev 211 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 211 Rev 236
Line 1... Line 1...
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">
Line 84... Line 84...
84
      p {
84
      p {
85
        max-width: 100%;
85
        max-width: 100%;
86
      }
86
      }
87
      -->
87
      -->
88
    </style>
88
    </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/vulcan-media-script<?php
89
    <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)
90
      if ($isLocal)
92
      {
91
      {
93
        ?>&amp;verbose=1&amp;debug=1<?php
92
        ?>&amp;verbose=1&amp;debug=1<?php
94
      }
93
      }
95
    ?>"></script>
94
    ?>"></script>
96
    <script type="text/javascript">
95
    <script type="text/javascript">
97
<?php
-
 
98
      /*
-
 
99
      var ms1Day = 60*60*24*1000; // ms for 1 days = 60sec*60min*24hours*1000ms
-
 
100
      var msLeaveDays = ms1Day*6;
-
 
101
      var ms30Days=ms1Day*30;
-
 
102
      var delta;
-
 
103
      var newTime=new Date();
-
 
104
      var msTime=newTime.getTime();
-
 
105
      var msExpire=msTime+ms30Days;
-
 
106
      var expireTime=new Date(msExpire);
-
 
107

-
 
108
      cookieVal=
-
 
109
          "savedTime=" + newTime.toGMTString()
-
 
110
        + "; expires=" + expireTime.toGMTString()
-
 
111
        + "; domain=anybody"
-
 
112
        + "; path=/";
-
 
113
      document.cookie= cookieVal;
-
 
114
      */
-
 
115
?>
-
 
116
      var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>";
96
      var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>";
-
 
97
      var cmd3;
-
 
98
      var oScreenDim;
-
 
99
      var oAvailDim;
-
 
100
      var oInnerDim;
-
 
101
      var _gEBI = jsx.dom.getElementById;
-
 
102
      var previousIsFullscreen;
-
 
103
      var fullscreenText;
117
104
118
      function body_load ()
105
      function body_load ()
119
      {
106
      {
120
        if (typeof this.ontouchstart != 'undefined')
107
        if (typeof this.ontouchstart != 'undefined')
121
        {
108
        {
Line 156... Line 143...
156
            TEXT_ACCURACY: "<?php echo tr('accuracy'); ?>"
143
            TEXT_ACCURACY: "<?php echo tr('accuracy'); ?>"
157
          },
144
          },
158
          content: lcars.content
145
          content: lcars.content
159
        });
146
        });
160
147
161
        var cmd4 = document.getElementById("cmd4");
148
        /* Fullscreen button */
162
        if (cmd4 && cmd4.lastChild && typeof cmd4.lastChild.onclick == "function")
149
        if (fullscreen.isSupportedBy(document.documentElement))
163
        {
150
        {
-
 
151
          cmd3 = jsx.dom.getElementById("cmd3");
-
 
152
-
 
153
          if (cmd3)
-
 
154
          {
-
 
155
            cmd3.firstChild.tabIndex = "1";
-
 
156
            cmd3.firstChild.style.cursor = "";
-
 
157
            fullscreenText = "<?php echo tr("Fullscreen"); ?>";
164
          jsx.dom.timeout.runAsync(function () { cmd4.lastChild.onclick(); }, 1000);
158
            cmd3.firstChild.firstChild.innerHTML = fullscreenText;
-
 
159
          }
165
        }
160
        }
-
 
161
-
 
162
        _addEventListener(window, "resize", function () {
-
 
163
          <?php /* FIXME: Also update title attribute value */ ?>
-
 
164
          if (typeof oScreenDim == "undefined") oScreenDim = _gEBI(ID_SCREEN_DIM);
-
 
165
          var screen_text = dim.getScreenText();
-
 
166
          if (oScreenDim) oScreenDim.innerHTML = screen_text;
-
 
167
-
 
168
          if (typeof oAvailDim == "undefined") oAvailDim = _gEBI(ID_AVAIL_DIM);
-
 
169
          var avail_text = dim.getAvailText();
-
 
170
          if (oAvailDim) oAvailDim.innerHTML = avail_text;
-
 
171
          if (typeof oInnerDim == "undefined") oInnerDim = _gEBI(ID_INNER_DIM);
-
 
172
          var inner_text = dim.getInnerText();
-
 
173
          if (oInnerDim) oInnerDim.innerHTML = inner_text;
-
 
174
-
 
175
          if (fullscreen.isSupportedBy(document.documentElement))
-
 
176
          {
-
 
177
            var nowIsFullscreen = fullscreen.isFullscreen();
-
 
178
            if (nowIsFullscreen != previousIsFullscreen)
-
 
179
            {
-
 
180
              if (typeof cmd3 == "undefined")
-
 
181
              {
-
 
182
                cmd3 = document.getElementById("cmd3");
-
 
183
              }
-
 
184
-
 
185
              var textTarget = cmd3.firstChild.firstChild;
-
 
186
              if (nowIsFullscreen)
-
 
187
              {
-
 
188
                var innerHTML = "<?php echo tr("Window"); ?>";
-
 
189
                textTarget.innerHTML = innerHTML;
-
 
190
              }
-
 
191
              else
-
 
192
              {
-
 
193
                var text = fullscreenText;
-
 
194
                textTarget.innerHTML = text;
-
 
195
              }
-
 
196
-
 
197
              previousIsFullscreen = nowIsFullscreen;
-
 
198
            }
-
 
199
          }
-
 
200
        });
166
      }
201
      }
167
    </script>
202
    </script>
168
    <?php /* <bgsound src="media/interface/sound/beginop.wav" loop="infinite"> */ ?>
-
 
169
  </head>
203
  </head>
170
  <body class="fade-in" onload="body_load()">
204
  <body class="fade-in" onload="body_load()">
171
 <?php require_once 'content.phtml'; ?>
205
 <?php require_once 'content.phtml'; ?>
172
 <?php require_once 'multi-display.phtml'; ?>
206
 <?php require_once 'multi-display.phtml'; ?>
173
  </body>
207
  </body>