Public
Edited
Nov 28, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
convertedInput = `${toMikrotikUtf8(utfToConvert)}`
Insert cell
Insert cell
Insert cell
toMikrotikUtf8 = (str) => Array(...(new TextEncoder()).encode(str)).map(i => `\\${i.toString(16).toUpperCase()}`).join("")
Insert cell
fromMikrotikUtf8 = (str) => (new TextDecoder()).decode(new Uint8Array(str.split("\\").splice(1).map(i => parseInt(i,16))))
Insert cell
Insert cell
Insert cell
Insert cell
viewof utfToConverFontSize = Inputs.range([12,64], {label: "Font Size of Input", value: 27})
Insert cell
Insert cell
(viewof utfToConvert).style.fontSize=`${utfToConverFontSize}pt`;
Insert cell
Insert cell
// to see output just have a cell with the variable and Obervable with "dump" it
emojis
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more