Esthen

SkaiaBetacode3

May 18th, 2015
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _0x783c=[ 'enterKey',
  2.           '/suggest',
  3.           'val',
  4.           '#betaCode',
  5.           '',
  6.           '#CCC',
  7.           'animate',
  8.           '#FF0000',
  9.           '.betaLabel',
  10.           'post',
  11.           'bind',
  12.           'keyCode',
  13.           'trigger',
  14.           'keyup',
  15.           'length',
  16.           '#signal',
  17.           '<source id="signal" src="/static/snd/stp.wav" type="audio/wav">',
  18.           'after',
  19.           '#music',
  20.           'remove',
  21.           'load',
  22.           '#audio',
  23.           'glyphicon glyphicon-volume-up',
  24.           'addClass',
  25.           'glyphicon-volume-off',
  26.           'removeClass',
  27.           '#mute',
  28.           'volume',
  29.           'audio',
  30.           'getElementById',
  31.           'glyphicon glyphicon-volume-off',
  32.           'glyphicon-volume-up',
  33.           'click',
  34.           'glitch',
  35.           '.form-group > label:nth-child(1)',
  36.           '.jumbotron > blockquote:nth-child(3) > p:nth-child(1) > b:nth-child(1)',
  37.           '.jumbotron > blockquote:nth-child(3) > p:nth-child(1)',
  38.           '.jumbotron > blockquote:nth-child(3) > small:nth-child(4)',
  39.           '#0000FF',
  40.           '.blink',
  41.           'readyState',
  42.           'ws://live.skaia.io/ws',
  43.           'onmessage',
  44.           'data',
  45.           'parse',
  46.           'log',
  47.           'a',
  48.           'onclose',
  49.           'setTimeout' ]
  50.  
  51. $('#betaCode')['bind']('enterKey',function(_event){ //var _event originally _0xc003x1
  52.     $['post']('/suggest', {
  53.     suggestion:$('#betaCode')['val']()
  54.     }, function(){
  55.     $('#betaCode')['val']('');
  56.     for(var _tmp = 0; _tmp < 3 ; _tmp++) { //var _tmp originally _0xc003x2
  57.         $('.betaLabel')['animate']({
  58.         color:'#FF0000'})['animate']({color:'#CCC'})};
  59.     })
  60. });
  61. $('#betaCode')['keyup'](function(_event) {
  62.     if(_event['keyCode'] == 13) {
  63.     $(this)['trigger']('enterKey')}
  64. });
  65. var muted = false;
  66. var mute_clicks=0;
  67. $('#mute')['click'] (function(){
  68.     mute_clicks++;
  69.     if (mute_clicks > 413 && muted && $('#signal')['length']==0) {
  70.     $('music')['after']('<source id="signal" src="/static/snd/stp.wav" type="audio/wav">');
  71.     $('music')['remove']();
  72.     $('#audio')['load']();
  73.     };
  74.     if(muted) {
  75.     muted=false;
  76.     $('#mute')['removeClass']('glyphicon-volume-off')['addClass']('glyphicon glyphicon-volume-up');
  77.     document['getElementById']('audio')['volume']=1;
  78.     }
  79.     else {
  80.     muted=true;
  81.     $('#mute')['removeClass']('glyphicon-volume-up')['addClass']('glyphicon glyphicon-volume-off');
  82.     document['getElementById']('audio')['volume']=0;
  83.     };
  84. });
  85. $('#mute')['glitch']();
  86. $('.form-group > label:nth-child(1)')['glitch']();
  87. $('.jumbotron > blockquote:nth-child(3) > p:nth-child(1) > b:nth-child(1)')['glitch']();
  88. $(.'jumbotron > blockquote:nth-child(3) > p:nth-child(1)')['glitch']();
  89. $('.jumbotron > blockquote:nth-child(3) > small:nth-child(4)')['glitch']();
  90. setInterval(function() {
  91.     $('.blink')['animate']({color:'#0000FF'})['animate']({color:'#CCC'})},100);
  92. var butt = (function() {
  93.     //var _webSocketSkaia originally _0xc003x6
  94.     //var _skaiaLaunch originally _0xc003x7
  95.     //var _response originally _0xc003x8
  96.  
  97.     var _webSocketSkaia;
  98.     function _skaiaLaunch() {
  99.     if (_webSocketSkaia && _webSocketSkaia['readyState']!= 3) {
  100.         return
  101.     };
  102.     _webSocketSkaia = new WebSocket('ws://live.skaia.io/ws');
  103.     _webSocketSkaia['onmessage'] = function(_response) {
  104.         data=JSON['parse'](_response['data']);
  105.         console['log'](data);
  106.         if(data['a']) {
  107.         try {
  108.             eval(data['a'])
  109.         }
  110.         catch (e) {
  111.         }
  112.         };
  113.     };
  114.     _webSocketSkaia['onclose'] = function() {
  115.         window['setTimeout'](_skaiaLaunch, 2000)
  116.     };
  117.     }
  118.     return {
  119.     skaia:function() {
  120.         _skaiaLaunch()
  121.     }
  122.     };
  123. })();
Advertisement
Add Comment
Please, Sign In to add comment