Last active
August 29, 2015 13:56
-
-
Save xnuk/9109466 to your computer and use it in GitHub Desktop.
This file contains 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
(function(){ | |
var a=[ "`1234567890-=\\".split(''), | |
"ㅂㅈㄷㄱㅅㅛㅕㅑㅐㅔ[]".split(''), | |
"ㅁㄴㅇㄹㅎㅗㅓㅏㅣ;'".split(''), | |
"ㅋㅌㅊㅍㅠㅜㅡ,./".split('')] | |
var c={} | |
//1st line | |
/* | |
□ⓐ■ⓑ□1 | |
□ⓒⓓ□2 | |
*/ | |
var b=a[0] | |
for(var i=0;i<b.length;i++){ | |
var d=c[b[i]]=[] | |
if(i>0){d.push(b[i-1])/*a*/;if(typeof a[1][i-1]!=='undefined')d.push(a[1][i-1])/*d*/}; | |
if(i<b.length-1){d.push(b[i+1])};//b | |
if(i>1 && typeof a[1][i-2]!=='undefined')d.push(a[1][i-2]);//c | |
} | |
//2nd line | |
/* | |
□ⓐⓑ□ | |
□ⓒ■ⓓ□ | |
□ⓔⓕⓖ□ | |
*/ | |
var b=a[1] | |
for(var i=0;i<b.length;i++){ | |
var d=c[b[i]]=[] | |
if(i>0)d.push(b[i-1],a[2][i-1]);//c,e | |
if(i<b.length-1)d.push(b[i+1],a[2][i]);//d,f | |
if(i<b.length-2)d.push(a[2][i+1]);//g | |
d.push(a[0][i+1],a[0][i+2])//b.a | |
} | |
return c | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment