-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
192 lines (167 loc) · 7.57 KB
/
index.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html lang="la"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Begin Jekyll SEO tag v2.7.1 -->
<title>Auxilium Humanitarium API documentōrum | hapi.etica.ai</title>
<meta name="generator" content="Jekyll v4.2.1" />
<meta property="og:title" content="Auxilium Humanitarium API documentōrum" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="English: Augmented documentation for Humanitarian APIs; Português: Documentação interativa para APIs humanitárias" />
<meta property="og:description" content="English: Augmented documentation for Humanitarian APIs; Português: Documentação interativa para APIs humanitárias" />
<link rel="canonical" href="https://hapi.etica.ai/" />
<meta property="og:url" content="https://hapi.etica.ai/" />
<meta property="og:site_name" content="hapi.etica.ai" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Auxilium Humanitarium API documentōrum" />
<meta name="twitter:site" content="@EticaAI" />
<script type="application/ld+json">
{"url":"https://hapi.etica.ai/","description":"English: Augmented documentation for Humanitarian APIs; Português: Documentação interativa para APIs humanitárias","@type":"WebSite","headline":"Auxilium Humanitarium API documentōrum","name":"hapi.etica.ai","@context":"https://schema.org"}</script>
<!-- End Jekyll SEO tag -->
<!--
_[por-Latn] Bootstrap CSS; Sobre RTL / LTR,
@see https://getbootstrap.com/docs/5.0/getting-started/rtl/
[por-Latn]_
-->
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
crossorigin="anonymous">
<link rel="stylesheet" href="/assets/css/hapi.css?1636016541">
</head>
<body class="paginam-typum-fiat-lux paginam-linguam-lat-Latn">
<main class="page-content" aria-label="Content">
<div class="container">
<div class="px-4 pt-5 my-5 text-center">
<h1 class="display-5 fw-bold">
<span >Auxilium Humanitarium API documentōrum</span>
</h1>
<div class="row justify-content-md-center">
<div class="col-md-auto">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="peritum-modum-est">
<label class="form-check-label" for="peritum-modum-est">
🛠️<span >Peritum modum est?</span>🛠️
</label>
</div>
</div>
</div>
<br>
<br>
<div class="d-grid gap-2 col-lg-6 mx-auto">
<a href="/arb-Arab/" class="btn btn-primary btn-lg peritum-est">
arb-Arab
</a>
<a href="/eng-Latn/" class="btn btn-primary btn-lg">
<span data-l10n-objectivum-linguam='eng-Latn'>English language (Latin script)</span>
</a>
<a href="/slv-Latn/" class="btn btn-primary btn-lg peritum-est">
<span data-l10n-objectivum-linguam='slv-Latn'>Slovenščina (Latinska abeceda)</span>
</a>
<a href="/spa-Latn/" class="btn btn-primary btn-lg peritum-est">
<span data-l10n-objectivum-linguam='spa-Latn'>Idioma español (Alfabeto latino)</span>
</a>
<a href="/por-Latn/" class="btn btn-primary btn-lg px-4">
<span data-l10n-objectivum-linguam='por-Latn'>Língua portuguesa (alfabeto latino)</span>
</a>
<div class="peritum-est">
<a href="/mul-Zyyy/" class="btn btn-secondary btn-md px-4"
alt="Mappam Situm">
🌐 mul-Zyyy 🌐
</a>
</div>
</div>
</div>
<div class="peritum-est">
<div class="d-flex justify-content-center py-3">
<ul class="list-group list-group-horizontal-md">
<li class="list-group-item">
<a href="https://hapi.etica.ai">
<img src="https://img.shields.io/badge/Site-hapi.etica.ai-blue"
alt="hapi.etica.ai">
</a>
</li>
<li class="list-group-item">
<a href="https://github.com/HXL-CPLP/Auxilium-Humanitarium-API">
<img src="https://img.shields.io/badge/GitHub-HXL--CPLP%2FAuxilium--Humanitarium--API-lightgrey?logo=github&style=social"
alt="HXL-CPLP/Auxilium-Humanitarium-API">
</a>
</li>
<li class="list-group-item">
<a href="https://github.com/HXL-CPLP/Auxilium-Humanitarium-API/stargazers">
<img src="https://img.shields.io/github/stars/HXL-CPLP/Auxilium-Humanitarium-API?style=social"
alt="GitHub Repo stars">
</a>
</li>
<li class="list-group-item">
<a href="https://github.com/HXL-CPLP/Auxilium-Humanitarium-API/archive/refs/heads/main.zip">
<img src="https://img.shields.io/badge/Download-.zip-brightgreen"
alt="Download .zip">
</a>
</li>
<li class="list-group-item">
<a href="https://unlicense.org/">
<img src="https://i.creativecommons.org/p/zero/1.0/88x31.png" alt="Licentiam: Dominium publicum">
</a>
</li>
</ul>
</div>
</div>
</div>
</main>
<script type="module">
/**
* HDPbL10n
*
* Trivia:
* - i18n with lowercase "i"
* - L10n with UPPERCASE "L"
* Fontem:
* - https://github.com/fititnt/ais-ethics-tags/blob/master/assets/js/ais-ethics-tags.js
* - https://github.com/EticaAI/HXL-Data-Science-file-formats/blob/main/hxlm-js/bootstrapper/hdpb-l10n.mjs
*/
class HDPbL10n {
/**
* Who I am
*
* Trivia:
* - 'Quis sum?' is 'who I am' in Latin
* - 'mea linguam' is 'my (natural) language' in Latin
* - 'mea linguam fontem' is 'my source (natural) language' in Latin
* - 'mea linguam et alli' needs revision. (its an array)
* - Code:
* - Based on the English version ais-ethics-tags.js (https://tags.etica.ai)
* @returns {Object}
*/
static quis_sum() {
// TODO: navigator.languages does not work when running with NodeJS.
// we should at least make it not break hard
// (Emerson Rocha, 2021-04-06 00:05 UTC)
let resultatum = {};
resultatum.meaLinguam = navigator.language || navigator.userLanguage;
resultatum.meaLinguamEtAliiFontem = navigator.languages || [resultatum.meaLinguam];
resultatum.meaLinguamEtAlii = [];
resultatum.meaLinguamEtAliiFontem.forEach(function (lang) {
let wdLang = lang.split('-');
if (resultatum.meaLinguamEtAlii.indexOf(wdLang[0]) === -1) {
resultatum.meaLinguamEtAlii.push(wdLang[0]);
}
})
return resultatum
}
}
// debug
console.log(HDPbL10n.quis_sum())
export { HDPbL10n }
</script><!--
Trivia:
- "pedem"
- https://en.wiktionary.org/wiki/pes#Latin
-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"></script>
<script type="module" src="/assets/js/hapi-globum.mjs?1636016541"></script>
</body>
</html>