This repository has been archived by the owner on Feb 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-es.html
105 lines (87 loc) · 4.77 KB
/
index-es.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es-ES" xml:lang="es-ES">
<head>
<title>Documentación de e-cidadania</title>
<link rel="shortcut icon" href="favicon.ico" type="image/ico"/>
<link rel="icon" href="favicon.ico" type="image/ico"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<h1><img src="img/logo-es.png" /><br /><br />Selecciona tu documentación</h1>
</div>
<!--
<div id="warning" style="background: #FCC;border: 1px solid #FAA;">
Actualmente sólo está disponible la documentación de <strong>desarrollo</strong>
debido a la inconsistencia de la documentación antigua.
</div>
-->
<form name="selectors" action="" style="text-align: center;">
<select id="language" onchange="changeOpts();">
<option value="">-- Idioma --</option>
<option value="en">English</option>
<option value="es">Español</option>
<option value="gl">Galego</option>
</select>
<select id="version">
<option value="">-- Versión --</option>
</select>
<br />
<br />
<input type="submit" onclick="doRedirect();" style="height: 40px; width: 150px;" value="Leer online">
<input type="submit" onclick="getDocs('pdf');" style="height: 40px; width: 150px;" value="Descargar PDF">
<input type="submit" onclick="getDocs('tar.gz');" style="height: 40px; width: 150px;" value="Descargar LaTeX">
</form>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
function doRedirect() {
var language = document.selectors.language.value;
var version = document.selectors.version.value;
if (language == "" || version == "") {
alert("No has seleccionado idioma o versión.")
} else {
document.selectors.action = language + '/' + version
}
}
function getDocs(format) {
var language = document.selectors.language.value;
var version = document.selectors.version.value;
if (language == "" || version == "") {
alert("No has seleccionado idioma o versión.")
} else {
document.selectors.action = language + '/' + version + '-' + language + '.' + format
}
}
function changeOpts() {
var esOptions = {"-- Version --": "", "desarrollo": "latest", "0.1 beta": "0.1b", "0.1 alfa": "0.1a"};
var enOptions = {"-- Version --": "", "desarrollo": "latest", "0.1 beta": "0.1b"};
var glOptions = {"-- Version --": "", "desarrollo": "latest", "0.1 beta": "0.1b"};
var language = document.selectors.language.value;
var $el = $("#version");
$el.empty(); // remove old options
// I can't figure out right now a better way to do this, so welcome
// to noob time!
if (language == 'es') {
$.each(esOptions, function(key, value) {
$el.append($("<option></option>").attr("value", value).text(key));
});
} else if (language == 'en') {
$.each(enOptions, function(key, value) {
$el.append($("<option></option>").attr("value", value).text(key));
});
} else if (language == 'gl') {
$.each(glOptions, function(key, value) {
$el.append($("<option></option>").attr("value", value).text(key));
});
}
}
</script>
<div id="footer">
<p>Esta página también está disponible en: <a href="index.html">English</a>, <a href="index-gl.html">Galego</a></p><br />
<p>La documentación de e-cidadania se genera automáticamente con <a href="http://sphinx.pocoo.org">sphinx</a> 1.1.2 cada dia a las 00:00 PST (UTC -08:00).</p>
</div>
</div>
</body>
</html>