From 15cfc62db37e12dafadf97eb3906517fb239ece9 Mon Sep 17 00:00:00 2001 From: raphjaph Date: Wed, 29 Jan 2025 21:20:42 +0000 Subject: [PATCH] deploy: f05ed9b5bfba4ef06eeef0b9f3ab9f7418200c64 --- ar/book.js | 13 ++++--------- ar/css/chrome.css | 7 +++++-- ar/css/variables.css | 2 +- ar/toc.js | 2 +- book.js | 13 ++++--------- css/chrome.css | 7 +++++-- css/variables.css | 2 +- de/book.js | 13 ++++--------- de/css/chrome.css | 7 +++++-- de/css/variables.css | 2 +- de/toc.js | 2 +- es/book.js | 13 ++++--------- es/css/chrome.css | 7 +++++-- es/css/variables.css | 2 +- es/toc.js | 2 +- fil/book.js | 13 ++++--------- fil/css/chrome.css | 7 +++++-- fil/css/variables.css | 2 +- fil/toc.js | 2 +- fr/book.js | 13 ++++--------- fr/css/chrome.css | 7 +++++-- fr/css/variables.css | 2 +- fr/toc.js | 2 +- hi/book.js | 13 ++++--------- hi/css/chrome.css | 7 +++++-- hi/css/variables.css | 2 +- hi/toc.js | 2 +- it/book.js | 13 ++++--------- it/css/chrome.css | 7 +++++-- it/css/variables.css | 2 +- it/toc.js | 2 +- ja/book.js | 13 ++++--------- ja/css/chrome.css | 7 +++++-- ja/css/variables.css | 2 +- ja/toc.js | 2 +- ko/book.js | 13 ++++--------- ko/css/chrome.css | 7 +++++-- ko/css/variables.css | 2 +- ko/toc.js | 2 +- nl/book.js | 13 ++++--------- nl/css/chrome.css | 7 +++++-- nl/css/variables.css | 2 +- nl/toc.js | 2 +- pt/book.js | 13 ++++--------- pt/css/chrome.css | 7 +++++-- pt/css/variables.css | 2 +- pt/toc.js | 2 +- ru/book.js | 13 ++++--------- ru/css/chrome.css | 7 +++++-- ru/css/variables.css | 2 +- ru/toc.js | 2 +- toc.js | 2 +- zh/book.js | 13 ++++--------- zh/css/chrome.css | 7 +++++-- zh/css/variables.css | 2 +- zh/toc.js | 2 +- 56 files changed, 154 insertions(+), 182 deletions(-) diff --git a/ar/book.js b/ar/book.js index 178f1e902d..a5c255500c 100644 --- a/ar/book.js +++ b/ar/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/ar/css/chrome.css b/ar/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/ar/css/chrome.css +++ b/ar/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/ar/css/variables.css b/ar/css/variables.css index 12d1db7a33..579771550d 100644 --- a/ar/css/variables.css +++ b/ar/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/ar/toc.js b/ar/toc.js index 92a391e844..357f5f6365 100644 --- a/ar/toc.js +++ b/ar/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. المقدمة
  2. نظرة عامة
  3. التحف الرقمية
  4. إنسكريبشين
    1. Delegate
    2. Metadata
    3. Pointer
    4. Provenance
    5. التكرار
    6. Rendering
    7. URIs
    8. Burning
    9. Examples
  5. Runes
    1. Specification
  6. Satscard
  7. الأسئلة الشائعة
  8. المساهمة
  9. التبرع
  10. إرشادات
    1. API
    2. المتصفح
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. التجميع
      1. محفظة سباروو
    7. الإشراف
    8. إعادة الفهرسة
    9. جمع الساتوشي
    10. Settings
    11. Teleburning
    12. التجارب
  11. المكافآت
    1. جائزة 0: 100,000 ساتوشي مكتملة!
    2. جائزة 1: 200,000 ساتوشي مكتملة!
    3. جائزة 2: 300,000 ساتوشي مكتملة!
    4. جائزة 3: 400,000 ساتوشي
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/book.js b/book.js index 178f1e902d..a5c255500c 100644 --- a/book.js +++ b/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/css/chrome.css b/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/css/chrome.css +++ b/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/css/variables.css b/css/variables.css index 12d1db7a33..579771550d 100644 --- a/css/variables.css +++ b/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/de/book.js b/de/book.js index 178f1e902d..a5c255500c 100644 --- a/de/book.js +++ b/de/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/de/css/chrome.css b/de/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/de/css/chrome.css +++ b/de/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/de/css/variables.css b/de/css/variables.css index 12d1db7a33..579771550d 100644 --- a/de/css/variables.css +++ b/de/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/de/toc.js b/de/toc.js index 85c77c6068..405d0b1486 100644 --- a/de/toc.js +++ b/de/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Einführung
  2. Übersicht
  3. Digitale Artefakte
  4. Inscriptions
    1. Delegate
    2. Metadata
    3. Pointer
    4. Provenance
    5. Rekursion
    6. Rendering
    7. URIs
    8. Burning
    9. Examples
  5. Runes
    1. Specification
  6. Satscard
  7. Häufig gestellte Fragen
  8. Beitragen
  9. Spenden
  10. Anleitungen
    1. API
    2. Explorer
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. Sammeln
      1. Sparrow Wallet
    7. Moderation
    8. Erneutes Indizieren
    9. Sat-Suche
    10. Settings
    11. Teleburning
    12. Testen
  11. Bounties
    1. Bounty 0: 100.000 sats beansprucht!
    2. Bounty 1: 200.000 sats beansprucht!
    3. Bounty 2: 300.000 sats beansprucht!
    4. Bounty 3: 400.000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/es/book.js b/es/book.js index 178f1e902d..a5c255500c 100644 --- a/es/book.js +++ b/es/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/es/css/chrome.css b/es/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/es/css/chrome.css +++ b/es/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/es/css/variables.css b/es/css/variables.css index 12d1db7a33..579771550d 100644 --- a/es/css/variables.css +++ b/es/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/es/toc.js b/es/toc.js index c1accf9938..b606db068f 100644 --- a/es/toc.js +++ b/es/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Introducción
  2. Descripción General
  3. Artefactos Digitales
  4. Inscripciones
    1. Delegado
    2. Metadatos
    3. Puntero
    4. Proveniencia
    5. Recursión
    6. Renderizado
    7. URIs
    8. Quemar
    9. Ejemplos
  5. Runas
    1. Especificación
  6. Satscard
  7. Preguntas Frecuentes
  8. Contribuir
  9. Donaciones
  10. Guías
    1. API
    2. Explorador
    3. Monedero
    4. Inscribiendo por Lotes
    5. Splitting
    6. Coleccionar
      1. Monedero Sparrow
    7. Moderación
    8. Reindexación
    9. Caza de Sats
    10. Configuración
    11. Telequemado
    12. Pruebas
  11. Recompensas
    1. Recompensa Ordinal 0: 100,000 sats reclamados!
    2. Recompensa Ordinal 1: 200,000 sats reclamados!
    3. Recompensa Ordinal 2: 300,000 sats reclamados!
    4. Recompensa Ordinal 3: 400,000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/fil/book.js b/fil/book.js index 178f1e902d..a5c255500c 100644 --- a/fil/book.js +++ b/fil/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/fil/css/chrome.css b/fil/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/fil/css/chrome.css +++ b/fil/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/fil/css/variables.css b/fil/css/variables.css index 12d1db7a33..579771550d 100644 --- a/fil/css/variables.css +++ b/fil/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/fil/toc.js b/fil/toc.js index 265bb652e2..633e6cf989 100644 --- a/fil/toc.js +++ b/fil/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Panimula
  2. Pangkalahatang-ideya
  3. Digital Artifacts
  4. Inscriptions
    1. Delegate
    2. Metadata
    3. Pointer
    4. Provenance
    5. Recursion
    6. Rendering
    7. URIs
    8. Burning
    9. Examples
  5. Runes
    1. Pagtutukoy
  6. Satscard
  7. Mga Madalas Itanong
  8. Mag-ambag
  9. Donate
  10. Mga gabay
    1. API
    2. Explorer
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. Pagkolekta
      1. Sparrow Wallet
    7. Moderation
    8. Reindexing
    9. Sat Hunting
    10. Settings
    11. Teleburning
    12. Pagsuri
  11. Bounties
    1. Bounty 0: 100,000 sats Claimed!
    2. Bounty 1: 200,000 sats Claimed!
    3. Bounty 2: 300,000 sats Claimed!
    4. Bounty 3: 400,000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/fr/book.js b/fr/book.js index 178f1e902d..a5c255500c 100644 --- a/fr/book.js +++ b/fr/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/fr/css/chrome.css b/fr/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/fr/css/chrome.css +++ b/fr/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/fr/css/variables.css b/fr/css/variables.css index 12d1db7a33..579771550d 100644 --- a/fr/css/variables.css +++ b/fr/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/fr/toc.js b/fr/toc.js index b4eb24f62b..86ca6df1a9 100644 --- a/fr/toc.js +++ b/fr/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Introduction
  2. Aperçu
  3. Artéfacts numériques
  4. Inscriptions
    1. Delegate
    2. Métadonnées
    3. Pointer
    4. Provenance
    5. Récursion
    6. Rendering
    7. URIs
    8. Burning
    9. Examples
  5. Runes
    1. Spécification
  6. Satscard
  7. FAQ
  8. Contribuer
  9. Faire un don
  10. Guides
    1. API
    2. Explorateur
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. Collectionner
      1. Portefeuille Sparrow
    7. Modération
    8. Réindexation
    9. Chasse aux sats
    10. Settings
    11. Teleburning
    12. Tests
  11. Récompenses
    1. Récompense 0 : 100 000 sats Réclamés !
    2. Récompense 1 : 200 000 sats Réclamés !
    3. Récompense 2 : 300 000 sats Réclamés !
    4. Récompense 3 : 400 000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/hi/book.js b/hi/book.js index 178f1e902d..a5c255500c 100644 --- a/hi/book.js +++ b/hi/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/hi/css/chrome.css b/hi/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/hi/css/chrome.css +++ b/hi/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/hi/css/variables.css b/hi/css/variables.css index 12d1db7a33..579771550d 100644 --- a/hi/css/variables.css +++ b/hi/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/hi/toc.js b/hi/toc.js index 5855d48cf8..55f3c4af42 100644 --- a/hi/toc.js +++ b/hi/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. परिचय
  2. अवलोकन
  3. डिजिटल अभिलेख
  4. इंस्‍क्रीप्‍शंस
    1. Delegate
    2. Metadata
    3. Pointer
    4. उत्‍पति
    5. रिकर्सन-प्रतिवर्तन
    6. Rendering
    7. URIs
    8. Burning
    9. Examples
  5. Runes
    1. विनिर्देश
  6. Satscard
  7. एफएक्‍यू
  8. योगदान
  9. दान करें
  10. मार्गदर्शक निर्देश
    1. API
    2. एक्‍सप्‍लोरर
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. संग्राहक
      1. स्‍पैरो वॉलेट
    7. मॉडरेशन
    8. रिइंडैक्सिंग
    9. सैट हंटिंग
    10. Settings
    11. Teleburning
    12. परीक्षण
  11. बांउटीज़
    1. बांउटी 0: 100,000 सैट्स दावा किया!
    2. बांउटी 1: 200,000 सैट्स दावा किया!
    3. बांउटी 2: 300,000 सैट्स दावा किया!
    4. बांउटी 3: 400,000 सैट्स दावा किया!
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/it/book.js b/it/book.js index 178f1e902d..a5c255500c 100644 --- a/it/book.js +++ b/it/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/it/css/chrome.css b/it/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/it/css/chrome.css +++ b/it/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/it/css/variables.css b/it/css/variables.css index 12d1db7a33..579771550d 100644 --- a/it/css/variables.css +++ b/it/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/it/toc.js b/it/toc.js index f66bbfc49b..ecab9f03a0 100644 --- a/it/toc.js +++ b/it/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Introduzione
  2. Panoramica
  3. Artefatti Digitali
  4. Iscrizioni
    1. Delegate
    2. Metadati
    3. Pointer
    4. Provenienza
    5. Recursion
    6. Rendering
    7. URIs
    8. Burning
    9. Esempi
  5. Runes
    1. Specifiche
  6. Satscard
  7. FAQ
  8. Contribuire
  9. Donare
  10. Guide
    1. API
    2. Esploratore
    3. Wallet
    4. Iscrivere in Batch
    5. Splitting
    6. Collezionare
      1. Portafoglio Sparrow
    7. Moderazione
    8. Reindicizzazione
    9. Sat Hunting
    10. Settings
    11. Teleburning
    12. Testare
  11. Premi
    1. Premio 0: 100,000 sats Riscossi!
    2. Premio 1: 200,000 sats Riscossi!
    3. Premio 2: 300,000 sats Riscossi!
    4. Premio 3: 400,000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/ja/book.js b/ja/book.js index 178f1e902d..a5c255500c 100644 --- a/ja/book.js +++ b/ja/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/ja/css/chrome.css b/ja/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/ja/css/chrome.css +++ b/ja/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/ja/css/variables.css b/ja/css/variables.css index 12d1db7a33..579771550d 100644 --- a/ja/css/variables.css +++ b/ja/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/ja/toc.js b/ja/toc.js index a02298eee5..1a9d298664 100644 --- a/ja/toc.js +++ b/ja/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. 導入
  2. 概要
  3. デジタルアーティファクト
  4. 碑文
    1. デリゲート
    2. メタデータ
    3. ポインタ
    4. プロビナンス
    5. 再帰
    6. レンダリング
    7. URIs
    8. バーン
  5. ルーン
    1. 仕様
  6. Satscard
  7. FAQ
  8. 貢献
  9. 寄付
  10. ガイド
    1. API
    2. エクスプローラ
    3. ウォレット
    4. バッチ刻み
    5. 分割
    6. 収集
      1. Sparrowウォレット
    7. モデレーション
    8. 再インデックス化
    9. Satハンティング
    10. 設定
    11. 帰化
    12. テスト
  11. 賞金
    1. ミッション 0: 100,000 sats ゲット!
    2. ミッション 1: 200,000 sats ゲット!
    3. ミッション 2: 300,000 sats ゲット!
    4. ミッション 3: 400,000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/ko/book.js b/ko/book.js index 178f1e902d..a5c255500c 100644 --- a/ko/book.js +++ b/ko/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/ko/css/chrome.css b/ko/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/ko/css/chrome.css +++ b/ko/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/ko/css/variables.css b/ko/css/variables.css index 12d1db7a33..579771550d 100644 --- a/ko/css/variables.css +++ b/ko/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/ko/toc.js b/ko/toc.js index ada56cc547..cee5bd4639 100644 --- a/ko/toc.js +++ b/ko/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. 서론
  2. 개요
  3. 디지털 아티팩트
  4. 인스크립션
    1. Delegate
    2. 메타 데이터
    3. Pointer
    4. 기원
    5. 리커젼
    6. Rendering
    7. URIs
    8. Burning
    9. Examples
  5. Runes
    1. 설명서
  6. Satscard
  7. 자주 묻는 질문
  8. 기여하는 방법
  9. 기부하는 방법
  10. 안내서들
    1. API
    2. 탐색기
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. 수집
      1. 스패로우 월렛
    7. 중재
    8. 재인덱싱
    9. SAT 헌팅
    10. Settings
    11. Teleburning
    12. 테스팅
  11. 현상금
    1. 현상금 0: 100,000 SAT 획득!
    2. 현상금 1: 200,000 SAT 획득!
    3. 현상금 2: 300,000 SAT 획득!
    4. 현상금 3: 400,000 SAT
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/nl/book.js b/nl/book.js index 178f1e902d..a5c255500c 100644 --- a/nl/book.js +++ b/nl/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/nl/css/chrome.css b/nl/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/nl/css/chrome.css +++ b/nl/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/nl/css/variables.css b/nl/css/variables.css index 12d1db7a33..579771550d 100644 --- a/nl/css/variables.css +++ b/nl/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/nl/toc.js b/nl/toc.js index a55995cba8..6baef28fbe 100644 --- a/nl/toc.js +++ b/nl/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Introductie
  2. Overzicht
  3. Digitale artefacten
  4. Inscripties
    1. Gemachtigde
    2. Metadata
    3. Pointer
    4. Provenance
    5. Recursie
    6. Rendering
    7. URIs
    8. Verbranden
    9. Voorbeelden
  5. Runes
    1. Specificatie
  6. Satscard
  7. Veelgestelde Vragen
  8. Bijdragen
  9. Donaties
  10. Handleidingen
    1. API
    2. Verkenner
    3. Wallet
    4. Batch Inscriptie
    5. Splitting
    6. Verzamelen
      1. Sparrow Wallet
    7. Beheer
    8. Herindexeren
    9. Sats Jagen
    10. Instellingen
    11. Teleburnen
    12. Testen
  11. Beloningen
    1. Beloning 0: 100.000 sats Geclaimd!
    2. Beloning 1: 200.000 sats Geclaimd!
    3. Beloning 2: 300.000 sats Geclaimd!
    4. Beloning 3: 400.000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/pt/book.js b/pt/book.js index 178f1e902d..a5c255500c 100644 --- a/pt/book.js +++ b/pt/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/pt/css/chrome.css b/pt/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/pt/css/chrome.css +++ b/pt/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/pt/css/variables.css b/pt/css/variables.css index 12d1db7a33..579771550d 100644 --- a/pt/css/variables.css +++ b/pt/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/pt/toc.js b/pt/toc.js index 63f81b47a1..0d0458bd17 100644 --- a/pt/toc.js +++ b/pt/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Introdução
  2. Descrição Geral
  3. Artefatos Digitais
  4. Inscrições
    1. Delegate
    2. Metadata
    3. Pointer
    4. Procedência
    5. Recursão
    6. Rendering
    7. URIs
    8. Queimar
    9. Examples
  5. Runes
    1. Especificações
  6. Satscard
  7. Perguntas Frequentes
  8. Contribuir
  9. Doações
  10. Guias
    1. API
    2. Explorador
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. Colecionando
      1. Carteira Sparrow
    7. Moderação
    8. Reindexação
    9. Caçando Sats
    10. Settings
    11. Teleburning
    12. Testando
  11. Recompensas
    1. Recompensa 0: 100,000 sats reivindicados!
    2. Recompensa 1: 200,000 sats reivindicados!
    3. Recompensa 2: 300,000 sats reivindicados!
    4. Recompensa 3: 400,000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/ru/book.js b/ru/book.js index 178f1e902d..a5c255500c 100644 --- a/ru/book.js +++ b/ru/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/ru/css/chrome.css b/ru/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/ru/css/chrome.css +++ b/ru/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/ru/css/variables.css b/ru/css/variables.css index 12d1db7a33..579771550d 100644 --- a/ru/css/variables.css +++ b/ru/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/ru/toc.js b/ru/toc.js index 0f9b573adb..c01b153b8a 100644 --- a/ru/toc.js +++ b/ru/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Вступление
  2. Обзор
  3. Цифровые артефакты
  4. Надписи
    1. Delegate
    2. Metadata
    3. Pointer
    4. Провенанс
    5. Рекурсия
    6. Rendering
    7. URIs
    8. Burning
    9. Examples
  5. Runes
    1. Описание
  6. Satscard
  7. ЧАВО
  8. Вклад
  9. Пожертвование
  10. Руководства
    1. API
    2. Проводник
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. Коллекционирование
      1. Sparrow Wallet
    7. Модерация
    8. Переиндексация
    9. Охота на сатоши
    10. Settings
    11. Teleburning
    12. Тестирование
  11. Награды
    1. Награда 0: 100 000 sats Собрано!
    2. Награда 1: 200 000 sats Собрано!
    3. Награда 2: 300 000 sats Собрано!
    4. Награда 3: 400 000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/toc.js b/toc.js index b70a9d8a16..f536c82e3d 100644 --- a/toc.js +++ b/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. Introduction
  2. Overview
  3. Digital Artifacts
  4. Inscriptions
    1. Delegate
    2. Metadata
    3. Pointer
    4. Provenance
    5. Recursion
    6. Rendering
    7. URIs
    8. Burning
    9. Examples
  5. Runes
    1. Specification
  6. Satscard
  7. FAQ
  8. Contributing
  9. Donate
  10. Guides
    1. API
    2. Explorer
    3. Wallet
    4. Batch Inscribing
    5. Splitting
    6. Collecting
      1. Sparrow Wallet
    7. Moderation
    8. Reindexing
    9. Sat Hunting
    10. Settings
    11. Teleburning
    12. Testing
  11. Bounties
    1. Bounty 0: 100,000 sats Claimed!
    2. Bounty 1: 200,000 sats Claimed!
    3. Bounty 2: 300,000 sats Claimed!
    4. Bounty 3: 400,000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; } diff --git a/zh/book.js b/zh/book.js index 178f1e902d..a5c255500c 100644 --- a/zh/book.js +++ b/zh/book.js @@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) { var sidebar = document.getElementById("sidebar"); var sidebarLinks = document.querySelectorAll('#sidebar a'); var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor"); var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); var firstContact = null; @@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) { } // Toggle sidebar - sidebarToggleButton.addEventListener('click', function sidebarToggle() { - if (body.classList.contains("sidebar-hidden")) { + sidebarToggleAnchor.addEventListener('change', function sidebarToggle() { + if (sidebarToggleAnchor.checked) { var current_width = parseInt( document.documentElement.style.getPropertyValue('--sidebar-width'), 10); if (current_width < 150) { document.documentElement.style.setProperty('--sidebar-width', '150px'); } showSidebar(); - } else if (body.classList.contains("sidebar-visible")) { - hideSidebar(); } else { - if (getComputedStyle(sidebar)['transform'] === 'none') { - hideSidebar(); - } else { - showSidebar(); - } + hideSidebar(); } }); diff --git a/zh/css/chrome.css b/zh/css/chrome.css index 4cd73086d7..7a95c2441b 100644 --- a/zh/css/chrome.css +++ b/zh/css/chrome.css @@ -421,11 +421,14 @@ ul#searchresults span.teaser em { color: var(--sidebar-fg); } .sidebar-iframe-inner { + --padding: 10px; + background-color: var(--sidebar-bg); - color: var(--sidebar-fg); - padding: 10px 10px; + padding: var(--padding); margin: 0; font-size: 1.4rem; + color: var(--sidebar-fg); + min-height: calc(100vh - var(--padding) * 2); } .sidebar-iframe-outer { border: none; diff --git a/zh/css/variables.css b/zh/css/variables.css index 12d1db7a33..579771550d 100644 --- a/zh/css/variables.css +++ b/zh/css/variables.css @@ -9,7 +9,7 @@ --content-max-width: 750px; --menu-bar-height: 50px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; - --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ + --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ } /* Themes */ diff --git a/zh/toc.js b/zh/toc.js index 95c4757e48..8f558b7c10 100644 --- a/zh/toc.js +++ b/zh/toc.js @@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement { connectedCallback() { this.innerHTML = '
  1. 介绍
  2. 概述
  3. 数字文物
  4. 铭文
    1. 委托
    2. 元数据
    3. 指针
    4. 溯源
    5. 递归
    6. 渲染
    7. URIs
    8. 燃烧
    9. 示例
  5. 符文|福文🧧
    1. 规范
  6. Satscard
  7. 常见问题
  8. 贡献
  9. 捐赠
  10. 指引
    1. API
    2. 浏览器
    3. 钱包
    4. 批量铸造
    5. Splitting
    6. 收藏
      1. 麻雀钱包
    7. 调节
    8. 重新索引
    9. 猎聪
    10. 设置
    11. 燃烧传送
    12. 调试
  11. 赏金
    1. 赏金 0: 100,000 sats 完成!
    2. 赏金 1: 200,000 sats 完成!
    3. 赏金 2: 300,000 sats 完成!
    4. 赏金 3: 400,000 sats
'; // Set the current, active page, and reveal it if it's hidden - let current_page = document.location.href.toString(); + let current_page = document.location.href.toString().split("#")[0]; if (current_page.endsWith("/")) { current_page += "index.html"; }