JSFiddle - React, Tailwind, and code Playground

by taylorbuley

JavaScript

GenerateNumbrixWidget("61,62,71,72,81,80,1,4,5,60,-63,-70,73,74,79,-2,-3,6,59,-64,-69,68,-75,78,-9,-8,7,58,65,66,67,76,77,10,11,12,57,56,-19,18,17,16,-15,14,13,54,55,20,21,24,25,26,27,28,53,-48,-47,22,-23,32,-31,-30,29,52,-49,-46,43,42,33,-34,-35,36,51,50,45,44,41,40,39,38,37", "expert", "May 08, 2013");

        function GenerateNumbrixWidget(b, a, d) {
            var c = GenerateEncryptedSolution(b);
            data = b;
            dateStr = d;
            difficLevel = a;
            document.write("<iframe style='background: transparent' allowTransparency='true' name='frame1' id='frame1' src='/system/modules/com.parade/elements/numbrix/game.html' frameborder='0' scrolling='no' width='509' height='460' marginwidth='5' marginheight='5'></iframe>");
            document.write("<br/><a href=\"javascript:DisplayNumbrix('" + c + "','" + a + "','" + d + '\');"><img border="0" style="margin-top: 5px;" alt="Print This Puzzle" src="http://www.parade.com/askmarilyn/numbrix/images/print-puzzle.png" /> </a><br/>')
        }
        function GenerateEncryptedSolution(e) {
            var d = 5;
            var f = e.length;
            var b = 0;
            var a = "";
            var g = 0;
            for (b = 0; b < f; ++b) {
                g = e.charCodeAt(b);
                g ^= d;
                a += String.fromCharCode(g)
            }
            return a
        }
        function CreateNumbrixWindow() {
            return window.open("", "numbrix", "width=600,height=800,menubar=1")
        }
        function DisplayNumbrix(c, a, d) {
            var b = CreateNumbrixWindow();
            var e = new Array();
            c = GenerateEncryptedSolution(c);
            e = c.split(",");
            b.document.write("<br/> <h1> Numbrix for " + d + "</h1><h3>Difficulty: " + a + "<br/>Play More Numbrix at Parade.com/numbrix</h3>");
            b.document.write('Select "File" and then "Print" from the menu above to print this puzzle.');
           ...