npm install leader-line
function Start() { if(title === 'Tournament brackets') { let parent; let child; for (let base = 1; base < 5; base++) { let half = 1; for (let index = 1; index < 17; index++) { parent = "parent" + index + "" + base; if (index % 2 != 0) { while ( half <= Math.ceil(index / 2)){ child = "parent" + half + "" + (base + 1); half++; } } // Uncaught ReferenceError: LeaderLine is not defined new LeaderLine( document.getElementById(parent), document.getElementById(child) ); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)