Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).load(function () {
- $("#postfrom").live("submit", function () {
- Cookie("mm2", '1', 1);
- var a = $("#mm").val() + Utf8.encode($("#message").val()) + $("#ppw").val();
- var l = a.length,
- h = 2 ^ l,
- i = 0,
- k, m = 1540483477,
- ff = 255,
- ffff = 65535;
- while (l >= 4) {
- k = ((a.charCodeAt(i) & ff)) | ((a.charCodeAt(++i) & ff) << 8) | ((a.charCodeAt(++i) & ff) << 16) | ((a.charCodeAt(++i) & ff) << 24);
- k = (((k & ffff) * m) + ((((k >>> 16) * m) & ffff) << 16));
- k ^= k >>> 24;
- k = (((k & ffff) * m) + ((((k >>> 16) * m) & ffff) << 16));
- h = (((h & ffff) * m) + ((((h >>> 16) * m) & ffff) << 16)) ^ k;
- l -= 4;
- ++i
- }
- switch (l) {
- case 3:
- h ^= (a.charCodeAt(i + 2) & ff) << 16;
- case 2:
- h ^= (a.charCodeAt(i + 1) & ff) << 8;
- case 1:
- h ^= (a.charCodeAt(i) & ff);
- h = (((h & ffff) * m) + ((((h >>> 16) * m) & ffff) << 16))
- }
- h ^= h >>> 13;
- h = (((h & ffff) * m) + ((((h >>> 16) * m) & ffff) << 16));
- h ^= h >>> 15;
- var c = h >>> 0;
- Cookie("mm", c, 1);
- return true
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement