function loadViewer(callback, el) { var script = document.createElement("script"); // create a script DOM node script.type = 'text/javascript'; script.src = 'https://conceptispuzzles.com/html5/app/loader.js'; // set its src to the provided URL script.onreadystatechange = function(){callback(el)}; script.onload = function(){callback(el)}; document.body.appendChild(script); // add it to the end of the head section of the page (could change 'head' to 'body' to add it to the end of the body section instead) } function popup(url, resizable) { window.open(url,'','width=500,height=500,left=0,top=0,toolbar=No,scrollbars=Yes,location=No,status=No,resizable=Yes,fullscreen=No'); } function showPuzzle(el){ if (!el){ el = 'nur-starter-1-widget-container'; document.write(`
`); } loadViewer(renderPuzzle, el); } function renderPuzzle(el) { var flashvars = 'cafurl=https://conceptispuzzles.com/index.aspx?uri=puzzle/euid/010000009f088f7309d9b2ec0ca6507b13de6f3d5e3fa8122332cc222070df28278aa36178dbad3a4f4a46f2e04463672046a92c/caf&configurl=https://conceptispuzzles.com/index.aspx?uri=global/puzzle/config&mode=viewer&display=save&btn=play&btnurl=https://conceptispuzzles.com/index.aspx?uri=puzzle/euid/010000009f088f7309d9b2ec0ca6507b13de6f3d5e3fa8122332cc222070df28278aa36178dbad3a4f4a46f2e04463672046a92c/play&free=0&loadurl=cookie&saveurl=cookie&bgcol=FCE4D4'; var borderColor = 'C15F33'; var backgroundColor = 'FCE4D4'; var channel = 'nur-starter-1'; var base = 'https://conceptispuzzles.com/'; var blockStyle = 'background-color:#' + backgroundColor + ';width: 181px; margin-bottom: 10px; border: 1px solid #' + borderColor; var h1Style = 'margin: 0; padding: 1px 0px 3px 3px; font: bold 10px Verdana; letter-spacing: 3px; color: white; text-align: center; background-color: #' + borderColor; var dlStyle = 'margin: 10px 0 0px 0px; padding: 0 0 5px 0; width: 163px; min-width: 163px; text-align: left;'; var dtStyle = 'height: 147px;'; var objectStyle = 'float: none; margin: 0px'; var fontStyle = 'font-family: Verdana, Tahoma;font-size: 10px;' var ddStyle = fontStyle + 'padding-top: 2px; _padding-top: 0; margin: 0 0 0 17px; line-height: 10px; color: #000000;'; var brandStyle = ddStyle + 'font-weight: bold; padding: 0; color:#' + borderColor + '; margin-top: 3px; _margin-top: 3px;'; var aTitleStyle = fontStyle + 'text-decoration: none;color: white;'; var linksStyle = ddStyle + 'font-weight: bold; margin-top: 5px;'; var spanStyle = 'margin-right: 10px;'; var ruleslinkid = channel + 'ruleslink'; var morepuzzleslinkid = channel + 'morepuzzleslink'; var playonmobilelinkid = channel + 'playonmobilelink'; var rootId = 'content-nur-starter-1'; var familyAb = 'nur'; var template = `

Conceptis puzzles

Classic Nurikabe
Difficulty: Very easy
Rules More puzzles
` document.getElementById(el).insertAdjacentHTML('beforeend', template); outLink(ruleslinkid, borderColor); outLink(playonmobilelinkid, borderColor); outLink(morepuzzleslinkid, borderColor); conceptispuzzles_loader({ element: rootId, family: familyAb, type: "viewer", root: base + "html5/app/", width: "165", height: "147", parameters: Object.fromEntries(new URLSearchParams(flashvars)) }); } function hoverLink(elementName){ document.getElementById(elementName).style.color = "#005893"; } function outLink(elementName, col){ var el = document.getElementById(elementName); if (el){ el.style.color = "#" + col; } }