a="h=Math;S`sin;C`cos;k`floor;t=X=Y=z=g=f=I=Mqw=document.getElementById('c'Rd=w.getContext('2d')@move!o=4+(a.pageX-308)*(b=2464/(a.pageY+42))/608;s=b-8;n(o,s,-tRI=k(X=oRM=k(Y=sRg?t+=(T`atan2(Y-4,XO)-(f?f:f=T):0;p()}@down!(G=e[I]&&F)?(z=G,F=0):(g=1)};n!o=CHaO-SHbO+4;s=SHaO+CHbO+4};m!n(a,b,t)DlineTo(x=300+(oO*608/(s+=8),y=-50+2464/sRG=608/s};K=[3,5,4,2,1,4,5,3];e=[]AK){Q=[];UK){Q[j]=i%7==0?K[j]+6*i/7:V1?6:V6?12:0}};(p!w.width=w.height=600L;T=1;for(iqi>qi+=T-=V17){B=8*((i+1)%4>1Rl=k(i/2RT-1?m(B,l):m(l,B)}d.JCCC'Dfill()DJ000'DlineWidth=3;m(X,YRr=z?[Nz,'#0f0']]:[]Ae){UQ){if(v=Q[j]){m(i+'.5',j+'.5'Rr.push(Nv,VI&&j==M?z?'#f00':'#ff0':'#fff'])}}}r.sort()Ar){P=r[i]Dfont=P[0]+'px vandera'_Style=P[4]L_<Dfill<}})()@up!e[I]&&z&&(F=zRz=f=gqp()}";for(b in c="q=0;Z`=h.Z_DstrokeZVi==ZUfor(j in ZR);ZQe[i]ZO-4)ZN[G,y,x-G/2,ZLDbeginPath()ZJfillStyle='#ZH(c)*(ZFe[I][M]ZD;d.ZA;for(i in Z@;w.onmouseZ<Text(String.fromCharCode(P[3]+9811),P[2],P[1])Z!=function(a,b,c){".split("Z"))a=a.replace(RegExp(c[b][0],"g"),c[b].substr(1));eval(a)
// Sorry no comments yet
h = Math;
S = h.sin;
C = h.cos;
k = h.floor;
t = X = Y = z = g = f = I = M = 0;
w = document.getElementById('c');
d = w.getContext('2d');
w.onmousemove = function (a, b, c) {
o = 4 + (a.pageX - 308) * (b = 2464 / (a.pageY + 42)) / 608;
s = b - 8;
n(o, s, -t);
I = k(X = o);
M = k(Y = s);
g ? t += (T = h.atan2(Y - 4, X - 4)) - (f ? f : f = T) : 0;
p()
};
w.onmousedown = function (a, b, c) {
(G = e[I] && e[I][M]) ? (z = G, e[I][M] = 0) : (g = 1)
};
n = function (a, b, c) {
o = C(c) * (a - 4) - S(c) * (b - 4) + 4;
s = S(c) * (a - 4) + C(c) * (b - 4) + 4
};
m = function (a, b, c) {
n(a, b, t);
d.lineTo(x = 300 + (o - 4) * 608 / (s += 8), y = -50 + 2464 / s);
G = 608 / s
};
K = [3, 5, 4, 2, 1, 4, 5, 3];
e = [];
for (i in K) {
e[i] = [];
for (j in K) {
e[i][j] = i % 7 == 0 ? K[j] + 6 * i / 7 : i == 1 ? 6 : i == 6 ? 12 : 0
}
};
(p = function (a, b, c) {
w.width = w.height = 600;
d.beginPath();
T = 1;
for (i = 0; i >= 0; i += T -= i == 17) {
B = 8 * ((i + 1) % 4 > 1);
l = k(i / 2);
T - 1 ? m(B, l) : m(l, B)
}
d.fillStyle = '#CCC';
d.fill();
d.fillStyle = '#000';
d.lineWidth = 3;
m(X, Y);
r = z ? [
[G, y, x - G / 2, z, '#0f0']
] : [];
for (i in e) {
for (j in e[i]) {
if (v = e[i][j]) {
m(i + '.5', j + '.5');
r.push([G, y, x - G / 2, v, i == I && j == M ? z ? '#f00' : '#ff0' : '#fff'])
}
}
}
r.sort();
for (i in r) {
P = r[i];
d.font = P[0] + 'px vandera';
d.strokeStyle = P[4];
d.beginPath();
d.strokeText(String.fromCharCode(P[3] + 9811), P[2], P[1]);
d.fillText(String.fromCharCode(P[3] + 9811), P[2], P[1])
}
})();
w.onmouseup = function (a, b, c) {
e[I] && z && (e[I][M] = z);
z = f = g = 0;
p()
}