Skip to content

Commit

Permalink
HXL-CPLP/forum#58, hapi-t9n-alpha (#13), mvp-l10n-schemas (#7): Indic…
Browse files Browse the repository at this point in the history
…e de conteúdo agora é exibido/escondido conforme itens referenciados estão no modo perito ou não
  • Loading branch information
fititnt committed Jun 13, 2021
1 parent 87b70ce commit 2b9ab22
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
7 changes: 5 additions & 2 deletions _assets/css/hapi.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
vertical-align: sub;
}

.peritum-est, .peritum-est--block, .peritum-est--inline, .peritum-est--inline-block {
.peritum-est, .peritum-est--block, .peritum-est--inline, .peritum-est--inline-block, .peritum-est--list-item {
display: none;
}
.peritum-modum-est .peritum-est {
.peritum-modum-est .peritum-est, .peritum-modum-est .peritum-est--block {
display: block;
}
.peritum-modum-est .peritum-est--inline {
Expand All @@ -30,3 +30,6 @@
.peritum-modum-est .peritum-est--inline-block {
display: inline-block;
}
.peritum-modum-est .peritum-est--list-item {
display: list-item;
}
15 changes: 15 additions & 0 deletions _assets/js/hapi-globum.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,25 @@ function InterfaciemPeritumModumCheckbox() {
}
function initiāle() {
const peritum = document.getElementById('peritum-modum-est')
const toc = document.getElementById('toc')
if (HapiDatumMemoriamLegendum('peritum-modum-est')) {
peritum.checked = true;
HapiDatumInterfaciemScribendum('peritum-modum-est', 1)
}

// https://github.com/toshimaru/jekyll-toc
if (toc) {
toc.querySelectorAll('a').forEach(function (el, index) {
// console.log(el, el.href); // The element
if (el.href.indexOf('--peritum-est') !== -1) {
// console.log('peritum')
el.parentElement.classList.add('peritum-est--list-item')
}
});

// console.log('toc', toc)
}

peritum.addEventListener('click', InterfaciemPeritumModumCheckbox)
}

Expand Down
2 changes: 1 addition & 1 deletion _includes/index-corporeum-mul-Zyyy.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- _includes/index-corporeum-mul-Zyyy.html -->
<div>
<article class="peritum-est">
<h2 id="peritum-modum-est-toc">{% _🗣️ Hapi_peritum_modum_est_nomen 🗣️_ %}</h2>
<h2 id="testum--peritum-est">{% _🗣️ Hapi_peritum_modum_est_nomen 🗣️_ %}</h2>
<p>{% _🗣️ 👁️por-Latn👁️ _👂Modo perito habilitado👂_ 👁️por-Latn👁️ 🗣️_ %}</p>
</article>

Expand Down
2 changes: 1 addition & 1 deletion _layouts/defallo.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{%- include meta-caput.html -%}

<body class="{{ page.html_body_class | join: ' ' }}">
{{ page }}

{%- include caput.html -%}

<main class="page-content" aria-label="Content">
Expand Down
4 changes: 2 additions & 2 deletions documentum/mul-Zyyy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ speciale_html: >
{% _🗣️ 📝por-Latn📝 L10N_ego_summarius 📝por-Latn📝 🗣️_ %}
</a>
</li>
<li class="list-group-item">
<li class="list-group-item peritum-est--block">
<a href="/spa-Latn/">
{% _🗣️ 📝spa-Latn📝 L10N_ego_summarius 📝spa-Latn📝 🗣️_ %}<sup>👩‍🔬<em>alpha</em>👨‍🔬</sup>
</a>
</li>
<li class="list-group-item">
<li class="list-group-item peritum-est--block">
<a href="/arb-Arab/">
arb-Arab<sup>👩‍🔬<em>alpha</em>👨‍🔬</sup>
<!--{% _🗣️ 📝arb-Arab📝 L10N_ego_summarius 📝arb-Arab📝 🗣️_ %}👩‍🔬<em>alpha</em>👨‍🔬-->
Expand Down

0 comments on commit 2b9ab22

Please sign in to comment.