This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (async () => { | |
| const requireScript = async src => new Promise((onload, onerror) => document.getElementsByTagName('head')[0].appendChild(Object.assign(document.createElement('script'), {src, onload, onerror}))); | |
| const requireDependencies = async deps => Promise.all(deps.filter(url=>performance.getEntriesByName(url, 'resource').length==0).map(requireScript)); | |
| await requireDependencies([`https://unpkg.com/[email protected]/dist/twemoji.min.js`]); | |
| const style = `img.emoji { height: 1em; width: 1em; margin: 0 .05em 0 .1em; vertical-align: -0.1em; }`; | |
| await attachStylesheet(style); | |
| const opts = {ext: '.svg', folder: 'svg'}; | |
| twemoji.parse(document.querySelector('.controls-info'), opts); | |
| const textNodes = document.querySelectorAll('#svgrenderer text'); | |
| for(const node of textNodes) if([...node.innerHTML].length === 1 && node.innerHTML.length !== 1) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const generateHintFunc = (() => { | |
| /*let board = Array.from({ length: 9 }, () => Array(9).fill(0)); | |
| board[0][0] = 1; | |
| board[2][2] = 2; | |
| board[0][1] = 3; | |
| board[1][0] = 4; | |
| */ | |
| let board = [ |
OlderNewer