Last active
January 27, 2021 09:51
-
-
Save iegik/1118095 to your computer and use it in GitHub Desktop.
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
<script>window.ready=function(){var e;e=!1;return function(d){var a,c;c=function(){if(!e)return e=!0,d()};a=function(){try{document.documentElement.doScroll("left")}catch(b){return setTimeout(a,1),null}return c()};if(document.readyState==="complete")return c();if(document.addEventListener)return document.addEventListener("DOMContentLoaded",c,!1),window.addEventListener("load",c,!1);else if(document.attachEvent&&(document.attachEvent("onreadystatechange",c),window.attachEvent("onload",c),(typeof document=== | |
"undefined"||document===null?0:document.documentElement==null?0:document.documentElement.doScroll)&&(typeof window==="undefined"||window===null?void 0:window.frameElement)===null))return a()}}(); | |
ready(function(){function e(c,b){for(x in a)if(x>c-x%9&&a[x]==b||a[x%9]==b||a[x%9+9]==b||a[x%9+18]==b||a[x%27-x%3+1]==b||a[x%27-x%3+2]==b||a[x%27-x%3+3]==b||a[x%27-x%3+10]==b||a[x%27-x%3+11]==b||a[x%27-x%3+12]==b||a[x%27-x%3+19]==b||a[x%27-x%3+20]==b||a[x%27-x%3+21]==b)b=0;a+=""+b}var d,a="";for(d=1;d<=81;d++)e(d,Math.floor(Math.random()*9)+1);document.write("<style>.su{width:12em}.su input{width:1.5em;padding:0;border:#888 solid 1px;text-align:center}</style><p class=su>"); | |
for(x in a)document.write('<input id="v'+x+'" value="'+a[x]+'" pattern="[0-9]{1}" maxlength="1" onchange="chk('+x+');">');document.write("</p>")});</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment