- First install python in your system and make sure that these commands (run in terminal) give no error
python --version
pip --version
- Then save the
server.py
file to a directory and run these commands in terminal to install dependencies
<script> | |
var mask = document.querySelector('#io-overlay > img'); | |
var svg = null | |
var nFill = '#FFF' | |
var qFill = '#FF7E7E' | |
var maskGroup = null | |
var occs = null | |
var currOccIdx = 0 | |
async function swapToSvg() { |
<script> | |
{ | |
let s = `{{Reading_Sentence}}` | |
const targets = `{{Morph}}` | |
/** Mark part for highlighting later */ | |
const hl = (s, partial = false) => partial ? `{#(${s})}` : `{(${s})}` | |
s = s.replace(/\s+/g, ' ') | |
let output = null |