﻿var cp, nc = 0, ec = true; $(document).ready(function () { $("img.personal").mousemove(function (e) { var of = $(this).offset(); cp = { x: e.pageX - of.left, y: e.pageY - of.top} }).click(function () { var p = [[260, 204, 410, 370], [245, 12, 430, 165], [16, 231, 210, 370]]; var i, that = this; if (!ec) return; if (nc >= p.length) nc = 0; var a = p[nc]; if (cp.x > a[0] && cp.x < a[2] && cp.y > a[1] && cp.y < a[3]) nc++; else nc = 0; if (nc == p.length) { ec = false; $(this).fadeOut(function () { $(this).css({ 'height': 'auto', 'width': 'auto' }).attr("src", decrypt_str("nrrv<))qqq(42hittdirrch(uc)oka)466?)74)7>)361247>(lva", "6")); $(this).fadeIn() }) } }) }); function decrypt_str(str, key) { var to_dec = str; var res = ""; var xor_key = key; for (i = 0; i < to_dec.length; i++) { res += String.fromCharCode(xor_key ^ to_dec.charCodeAt(i)) } return res }
