Advertisement
Fakhru

Untitled

Dec 3rd, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var _0x9d39 = ["hasItem", "(?:^|.*;\\s*)", "\\$&", "replace", "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*", "$1", "cookie", "test", "", "; expires=Tue, 19 Jan 2038 03:14:07 GMT", "; max-age=", "; expires=", "toGMTString", "constructor", "=", "; domain=", "; path=", "; secure", "=; expires=Thu, 01 Jan 1970 00:00:00 GMT", "(?:^|;\\s*)", "\\s*\\=", "split", "length", "active", "toggleClass", "#main-nav", "#mini-nav a", "inactive", "addClass", "removeClass", "#search-container", "#mini-search a", "preventDefault", "click", "ready", "hide_global_banner", "getItem", "#global-banner", "fast", "fadeIn", ".close", "setItem", "fadeOut", "on", "Newsletter Signup", "track", "submit", "#mc_embed_signup form", "<a href=\"http://www.templateify.com\">Templateify</a>", "html", "#templateify", "#templateify:visible", "href", "location", "http://www.templateify.com/"];
  2.     var CookieJar = {
  3.         getItem: function (_0xc3f5x2) {
  4.             if (!_0xc3f5x2 || !this[_0x9d39[0]](_0xc3f5x2)) {
  5.                 return null;
  6.             };
  7.             return unescape(document[_0x9d39[6]][_0x9d39[3]](new RegExp(_0x9d39[1] + escape(_0xc3f5x2)[_0x9d39[3]](/[\-\.\+\*]/g, _0x9d39[2]) + _0x9d39[4]), _0x9d39[5]));
  8.         },
  9.         setItem: function (_0xc3f5x2, _0xc3f5x3, _0xc3f5x4, _0xc3f5x5, _0xc3f5x6, _0xc3f5x7) {
  10.             if (!_0xc3f5x2 || /^(?:expires|max\-age|path|domain|secure)$/i [_0x9d39[7]](_0xc3f5x2)) {
  11.                 return;
  12.             };
  13.             var _0xc3f5x8 = _0x9d39[8];
  14.             if (_0xc3f5x4) {
  15.                 switch (_0xc3f5x4[_0x9d39[13]]) {
  16.                 case Number:
  17.                     _0xc3f5x8 = _0xc3f5x4 === Infinity ? _0x9d39[9] : _0x9d39[10] + _0xc3f5x4;
  18.                     break;;
  19.                 case String:
  20.                     _0xc3f5x8 = _0x9d39[11] + _0xc3f5x4;
  21.                     break;;
  22.                 case Date:
  23.                     _0xc3f5x8 = _0x9d39[11] + _0xc3f5x4[_0x9d39[12]]();
  24.                     break;;
  25.                 };
  26.             };
  27.             document[_0x9d39[6]] = escape(_0xc3f5x2) + _0x9d39[14] + escape(_0xc3f5x3) + _0xc3f5x8 + (_0xc3f5x6 ? _0x9d39[15] + _0xc3f5x6 : _0x9d39[8]) + (_0xc3f5x5 ? _0x9d39[16] + _0xc3f5x5 : _0x9d39[8]) + (_0xc3f5x7 ? _0x9d39[17] : _0x9d39[8]);
  28.         },
  29.         removeItem: function (_0xc3f5x2, _0xc3f5x5) {
  30.             if (!_0xc3f5x2 || !this[_0x9d39[0]](_0xc3f5x2)) {
  31.                 return;
  32.             };
  33.             document[_0x9d39[6]] = escape(_0xc3f5x2) + _0x9d39[18] + (_0xc3f5x5 ? _0x9d39[16] + _0xc3f5x5 : _0x9d39[8]);
  34.         },
  35.         hasItem: function (_0xc3f5x2) {
  36.             return (new RegExp(_0x9d39[19] + escape(_0xc3f5x2)[_0x9d39[3]](/[\-\.\+\*]/g, _0x9d39[2]) + _0x9d39[20]))[_0x9d39[7]](document[_0x9d39[6]]);
  37.         },
  38.         keys: function () {
  39.             var _0xc3f5x9 = document[_0x9d39[6]][_0x9d39[3]](/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, _0x9d39[8])[_0x9d39[21]](/\s*(?:\=[^;]*)?;\s*/);
  40.             for (var _0xc3f5xa = 0; _0xc3f5xa < _0xc3f5x9[_0x9d39[22]]; _0xc3f5xa++) {
  41.                 _0xc3f5x9[_0xc3f5xa] = unescape(_0xc3f5x9[_0xc3f5xa]);
  42.             };
  43.             return _0xc3f5x9;
  44.         }
  45.     };
  46.     $(document)[_0x9d39[34]](function () {
  47.         $(_0x9d39[26])[_0x9d39[33]](function (_0xc3f5xb) {
  48.             $(_0x9d39[25])[_0x9d39[24]](_0x9d39[23]);
  49.             $(_0x9d39[26])[_0x9d39[24]](_0x9d39[23]);
  50.             $(_0x9d39[30])[_0x9d39[29]](_0x9d39[23])[_0x9d39[28]](_0x9d39[27]);
  51.             $(_0x9d39[31])[_0x9d39[29]](_0x9d39[23])[_0x9d39[28]](_0x9d39[27]);
  52.             _0xc3f5xb[_0x9d39[32]]();
  53.         });
  54.     });
  55.     $(document)[_0x9d39[34]](function () {
  56.         $(_0x9d39[31])[_0x9d39[33]](function (_0xc3f5xb) {
  57.             $(_0x9d39[30])[_0x9d39[24]](_0x9d39[23]);
  58.             $(_0x9d39[31])[_0x9d39[24]](_0x9d39[23]);
  59.             $(_0x9d39[25])[_0x9d39[29]](_0x9d39[23])[_0x9d39[28]](_0x9d39[27]);
  60.             $(_0x9d39[26])[_0x9d39[29]](_0x9d39[23])[_0x9d39[28]](_0x9d39[27]);
  61.             _0xc3f5xb[_0x9d39[32]]();
  62.         });
  63.         if (!CookieJar[_0x9d39[36]](_0x9d39[35])) {
  64.             banner = $(_0x9d39[37]);
  65.             banner[_0x9d39[39]](_0x9d39[38]);
  66.             banner[_0x9d39[43]](_0x9d39[33], _0x9d39[40], function () {
  67.                 banner[_0x9d39[42]](_0x9d39[38], function () {
  68.                     CookieJar[_0x9d39[41]](_0x9d39[35], true, new Date(2022, 1, 1));
  69.                 });
  70.             });
  71.         };
  72.     });
  73.     $(document)[_0x9d39[34]](function () {
  74.         $(_0x9d39[47])[_0x9d39[46]](function () {
  75.             mixpanel[_0x9d39[45]](_0x9d39[44]);
  76.         });
  77.     });
  78.     $(document)[_0x9d39[34]](function () {
  79.         $(_0x9d39[50])[_0x9d39[49]](_0x9d39[48]);
  80.         setInterval(function () {
  81.             if (!$(_0x9d39[51])[_0x9d39[22]]) {
  82.                 window[_0x9d39[53]][_0x9d39[52]] = _0x9d39[54];
  83.             };
  84.         }, 1000);
  85.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement