ord 0.27.1

◉ Ordinal wallet and block explorer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const inscription = document.documentElement.dataset.inscription;

const response = await fetch(`/content/${inscription}`);
const text = await response.text();
for (const pre of document.querySelectorAll('pre')) {
  pre.textContent = text;
}

let pre = document.querySelector('body > pre');
let { width, height } = pre.getBoundingClientRect();
let columns = width / 16;
let rows = height / 16;
pre.style.fontSize = `min(${95/columns}vw, ${95/rows}vh)`;
pre.style.opacity = 1;