Ticket #9322: test.html

File test.html, 5.4 KB (added by humdinger, 9 years ago)

Test to show a fallback from offline to online page

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
4<head>
5<!--
6 *
7 * Copyright 2008, Haiku. All rights reserved.
8 * Distributed under the terms of the MIT License.
9 *
10 * Authors:
11 * Humdinger <humdingerb@gmail.com>
12 *
13-->
14 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
15 <meta http-equiv="Content-Style-Type" content="text/css" />
16 <meta name="robots" content="all" />
17 <title>Test</title>
18 <link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
19
20 <script type="text/javascript">
21 var onlineBase = 'http://cgit.haiku-os.org/haiku/plain/docs/userguide/';
22 var offlineBase = 'file:///boot/system/documentation/userguide/';
23 var thisUrl = window.location.href;
24 var m = thisUrl.split("userguide/");
25 var thisLangPage = m[1];
26
27 function ChangeLang (val) {
28 var n = thisLangPage.split("/");
29 var newLangPage = thisLangPage.replace(n[0], val);
30 var newUrl = offlineBase + newLangPage;
31
32 var xmlhttp = new XMLHttpRequest();
33 xmlhttp.open("HEAD", newUrl, false);
34 xmlhttp.send();
35
36 if (xmlhttp.responseText == "") {
37 newUrl = onlineBase + newLangPage;
38 }
39 window.location = newUrl;
40 }
41 </script>
42
43</head>
44<body>
45
46<div id="banner">
47<div><span>User guide</span></div>
48</div>
49
50<div class="nav">
51<div class="inner">
52<ul class="lang-menu">
53<li class="now"><img src="../images/flags/gb.png" alt="" /> English</li>
54<li><span onclick="ChangeLang('fr')"><img src="../images/flags/fr.png" alt="" />Français</span></li>
55<li><span onclick="ChangeLang('de')"><img src="../images/flags/de.png" alt="" />Deutsch</span></li>
56<li><span onclick="ChangeLang('it')"><img src="../images/flags/it.png" alt="" />Italiano</span></li>
57<li><span onclick="ChangeLang('ru')"><img src="../images/flags/ru.png" alt="" />Русский</span></li>
58<li><span onclick="ChangeLang('es')"><img src="../images/flags/es.png" alt="" />Español</span></li>
59<li><span onclick="ChangeLang('sv_SE')"><img src="../images/flags/sv_SE.png" alt="" />Svenska</span></li>
60<li><span onclick="ChangeLang('jp')"><img src="../images/flags/jp.png" alt="" />日本語</span></li>
61<li><span onclick="ChangeLang('uk')"><img src="../images/flags/uk.png" alt="" />Українська</span></li>
62<li><span onclick="ChangeLang('zh_CN')"><img src="../images/flags/zh_CN.png" alt="" /> 中文 [中文]</span></li>
63<li><span onclick="ChangeLang('pt_PT')"><img src="../images/flags/pt_PT.png" alt="" />Português</span></li>
64<li><span onclick="ChangeLang('fi')"><img src="../images/flags/fi.png" alt="" />Suomi</span></li>
65<li><span onclick="ChangeLang('sk')"><img src="../images/flags/sk.png" alt="" />Slovenčina</span></li>
66<li><span onclick="ChangeLang('hu')"><img src="../images/flags/hu.png" alt="" />Magyar</span></li>
67<li><span onclick="ChangeLang('pt_BR')"><img src="../images/flags/pt_BR.png" alt="" />Português (Brazil)</span></li>
68<li><span onclick="ChangeLang('ca')"><img src="../images/flags/ca.png" alt="" />Català</span></li>
69<li><span onclick="ChangeLang('pl')"><img src="../images/flags/pl.png" alt="" />Polski</span></li>
70</ul>
71<span>
72 «  <a href="workspaces.html">Workspaces</a> 
73::  <a href="contents.html" class="uplink">Contents</a> 
74::  <a href="teammonitor.html">Team Monitor</a>  »
75</span></div>
76</div>
77
78<div id="content">
79<div>
80
81<h1>Twitcher</h1>
82
83<p>The Twitcher is a task switcher to jump between running applications and their windows.</p>
84<img src="../images/twitcher-images/twitcher.png" alt="twitcher.png" />
85<p>Just tap <span class="key">CTRL</span> <span class="key">TAB</span> to switch between the current and the last application/window. Tapping <span class="key">CTRL</span> <span class="key">TAB</span> very quickly will switch between all applications. Or press and hold <span class="key">CTRL</span> <span class="key">TAB</span> to go through all running applications by repeatedly hitting <span class="key">TAB</span> or <span class="key"></span>/<span class="key"></span>. If you need to get to a specific window of a program, move to its icon as described and then go through its open windows with the <span class="key"></span>/<span class="key"></span> keys.</p>
86<p>You cycle through all an applications visible windows on the current workspace with <span class="key">CTRL</span> <span class="key">~</span> (which, depending on the keymap you're using, is the key below <span class="key">ESC</span>).</p>
87<p>It's also possible to invoke the Twitcher with <span class="key">CTRL</span> <span class="key">TAB</span> and then use the mouse to choose the application/window you'll jump to when releasing the <span class="key">CTRL</span> key.</p>
88<p>The Twitcher also offers a few more advanced keyboard shortcuts:</p>
89<table summary="more shortcuts" border="0" cellspacing="0" cellpadding="4">
90<tr><td><span class="key">ESC</span></td><td style="width:15px;"></td><td>Aborts the twitching and returns to the formerly active window.</td></tr>
91<tr><td><span class="key">Q</span></td><td></td><td>Quits the selected application.</td></tr>
92<tr><td><span class="key">H</span></td><td></td><td>Hides all windows of the selected application.</td></tr>
93</table>
94
95</div>
96</div>
97
98<!--
99<div class="nav">
100<div class="inner"><span>
101 «  <a href="workspaces.html">Workspaces</a> 
102::  <a href="contents.html" class="uplink">Contents</a> 
103::  <a href="teammonitor.html">Team Monitor</a>  »
104</span></div>
105</div>
106-->
107</body>
108</html>