Created
December 13, 2020 09:07
-
-
Save putraxor/73fe0753cdab93ab6aad14d7588ad84e to your computer and use it in GitHub Desktop.
VA-MOD sudah di-deobfuscate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timer_glob_sec = 0, | |
timer_glob_sec_2 = 0, | |
prohod = 0, | |
timer_glob_sec_temp = 0, | |
okruglit = 0, | |
kotirovka = 0, | |
onetiksec_on = 0, | |
gorizontal_on = 0; | |
var gorizontmini; | |
function ArrowDraw(_0xf774xb, _0xf774xc, _0xf774xd, _0xf774xe, _0xf774xf, _0xf774x10, _0xf774x11, _0xf774x12, _0xf774x13) { | |
if (_0xf774xc == 'up') { | |
rasp = 1 | |
}; | |
if (_0xf774xc == 'down') { | |
rasp = -1 | |
}; | |
if (_0xf774x13 == 'str') { | |
fun = 1 | |
}; | |
if (_0xf774x13 == 'fill') { | |
fun = 2 | |
}; | |
_0xf774xb.beginPath(); | |
_0xf774xb.strokeStyle = _0xf774x11; | |
_0xf774xb.fillStyle = _0xf774x11; | |
_0xf774xb.lineWidth = _0xf774x12; | |
var _0xf774x14, _0xf774x15; | |
_0xf774xd += _0xf774xf / 2; | |
_0xf774xb.moveTo(_0xf774xd, _0xf774xe); | |
_0xf774x14 = _0xf774xf / 2; | |
_0xf774x15 = rasp * _0xf774x10 / 2; | |
_0xf774xb.lineTo(_0xf774xd + _0xf774x14, _0xf774xe + _0xf774x15); | |
_0xf774x14 = _0xf774xf / 5; | |
_0xf774x15 = rasp * _0xf774x10 / 2; | |
_0xf774xb.lineTo(_0xf774xd + _0xf774x14, _0xf774xe + _0xf774x15); | |
_0xf774x14 = _0xf774xf / 5; | |
_0xf774x15 = rasp * _0xf774x10; | |
_0xf774xb.lineTo(_0xf774xd + _0xf774x14, _0xf774xe + _0xf774x15); | |
_0xf774x14 = -_0xf774xf / 5; | |
_0xf774x15 = rasp * _0xf774x10; | |
_0xf774xb.lineTo(_0xf774xd + _0xf774x14, _0xf774xe + _0xf774x15); | |
_0xf774x14 = -_0xf774xf / 5; | |
_0xf774x15 = rasp * _0xf774x10 / 2; | |
_0xf774xb.lineTo(_0xf774xd + _0xf774x14, _0xf774xe + _0xf774x15); | |
_0xf774x14 = -_0xf774xf / 2; | |
_0xf774x15 = rasp * _0xf774x10 / 2; | |
_0xf774xb.lineTo(_0xf774xd + _0xf774x14, _0xf774xe + _0xf774x15); | |
_0xf774xb.closePath(); | |
_0xf774xb.stroke(); | |
if (fun == 2) { | |
_0xf774xb.fill() | |
} | |
} | |
function OpenMenu() { | |
$('#open_menu').click(function () { | |
if (document.getElementById('open_menu').checked) { | |
document.getElementById('Menu').style.display = 'block'; | |
localStorage.setItem('open_menu', 'true'); | |
stsrelki_move(); | |
return 1 | |
} else { | |
document.getElementById('Menu').style.display = 'none'; | |
localStorage.setItem('open_menu', 'false'); | |
stsrelki_move(); | |
return 0 | |
} | |
}); | |
if (localStorage.getItem('open_menu') == 'true') { | |
document.getElementById('open_menu').setAttribute('checked', 'checked'); | |
document.getElementById('Menu').style.display = 'block'; | |
return 1 | |
} else { | |
document.getElementById('Menu').style.display = 'none'; | |
return 0 | |
} | |
} | |
function trading_view_graff_on() { | |
document.getElementById('trading_view_graff').onclick = function () { | |
if (document.getElementById('trading_view_graff').checked) { | |
document.getElementById('TradingView-wrapper').style.display = 'block'; | |
localStorage.setItem('trading_view_graff', 'true'); | |
return 1 | |
} else { | |
document.getElementById('TradingView-wrapper').style.display = 'none'; | |
localStorage.setItem('trading_view_graff', 'false'); | |
return 0 | |
} | |
}; | |
if (localStorage.getItem('trading_view_graff') == 'true') { | |
document.getElementById('trading_view_graff').setAttribute('checked', 'checked'); | |
document.getElementById('TradingView-wrapper').style.display = 'block'; | |
return 1 | |
} else { | |
document.getElementById('TradingView-wrapper').style.display = 'none'; | |
return 0 | |
} | |
} | |
function stsrelki_move() { | |
document.getElementById('strelki_check').onclick = function () { | |
if (document.getElementById('strelki_check').checked) { | |
if (localStorage.getItem('open_menu') == 'true') { | |
localStorage.setItem('strelki_check', 'true'); | |
return 1 | |
} | |
} else { | |
document.getElementById('Strelki_On').style.display = 'none'; | |
localStorage.setItem('strelki_check', 'false'); | |
return 0 | |
} | |
}; | |
if (localStorage.getItem('open_menu') == 'true') { | |
if (localStorage.getItem('strelki_check') == 'true') { | |
document.getElementById('strelki_check').setAttribute('checked', 'checked'); | |
return 1 | |
} else { | |
return 0 | |
}; | |
menu_op = localStorage.getItem('menu_op') | |
} else { | |
if (localStorage.getItem('strelki_check') == 'true') { | |
document.getElementById('strelki_check').setAttribute('checked', 'checked'); | |
return 1 | |
} else { | |
return 0 | |
}; | |
menu_op = localStorage.getItem('menu_op') | |
} | |
} | |
function check_1(_0xf774x1a) { | |
document.getElementById(_0xf774x1a).onclick = function () { | |
if (document.getElementById(_0xf774x1a).checked) { | |
localStorage.setItem(_0xf774x1a, 'true'); | |
return 1 | |
} else { | |
localStorage.setItem(_0xf774x1a, 'false'); | |
return 0 | |
} | |
}; | |
if (localStorage.getItem(_0xf774x1a) == 'true') { | |
document.getElementById(_0xf774x1a).setAttribute('checked', 'checked'); | |
return 1 | |
} else { | |
return 0 | |
} | |
} | |
function font_size_s(_0xf774x1a) { | |
document.getElementById(_0xf774x1a).onclick = function () { | |
var _0xf774x1c = document.getElementById('font'); | |
var _0xf774x1d = _0xf774x1c.options[_0xf774x1c.selectedIndex].value; | |
switch (_0xf774x1d) { | |
case '0': | |
id0 = 'vremya_size'; | |
if (localStorage.getItem('vremya_size') >= 1) { | |
vremya_size = localStorage.getItem('vremya_size'); | |
document.getElementById('font_size').setAttribute('value', vremya_size) | |
} else { | |
vremya_size = 14; | |
document.getElementById('font_size').setAttribute('value', vremya_size) | |
}; | |
break; | |
case '1': | |
id0 = 'max_size'; | |
if (localStorage.getItem('max_size') >= 1) { | |
max_size = localStorage.getItem('max_size'); | |
document.getElementById('font_size').setAttribute('value', max_size) | |
} else { | |
max_size = 14; | |
document.getElementById('font_size').setAttribute('value', max_size) | |
}; | |
break; | |
case '2': | |
id0 = 'gis_size'; | |
if (localStorage.getItem('gis_size') >= 1) { | |
gis_size = localStorage.getItem('gis_size'); | |
document.getElementById('font_size').setAttribute('value', gis_size) | |
} else { | |
gis_size = 14; | |
document.getElementById('font_size').setAttribute('value', gis_size) | |
}; | |
break; | |
case '3': | |
id0 = 'ur_gist'; | |
if (localStorage.getItem('ur_gist') >= 1) { | |
ur_gist = localStorage.getItem('ur_gist'); | |
document.getElementById('font_size').setAttribute('value', ur_gist) | |
} else { | |
ur_gist = 14; | |
document.getElementById('font_size').setAttribute('value', ur_gist) | |
}; | |
break; | |
case '4': | |
id0 = 'ur_str_size'; | |
if (localStorage.getItem('ur_str_size') >= 1) { | |
ur_str_size = localStorage.getItem('ur_str_size'); | |
document.getElementById('font_size').setAttribute('value', ur_str_size) | |
} else { | |
ur_str_size = 14; | |
document.getElementById('font_size').setAttribute('value', ur_str_size) | |
}; | |
break; | |
case '5': | |
id0 = 'str_min_size'; | |
if (localStorage.getItem('str_min_size') >= 1) { | |
str_min_size = localStorage.getItem('str_min_size'); | |
document.getElementById('font_size').setAttribute('value', str_min_size) | |
} else { | |
str_min_size = 14; | |
document.getElementById('font_size').setAttribute('value', str_min_size) | |
}; | |
break | |
}; | |
font_size = document.getElementById('font_size').value; | |
localStorage.setItem(id0, font_size); | |
document.getElementById(_0xf774x1a).setAttribute('value', font_size) | |
}; | |
if (localStorage.getItem('vremya_size') >= 1) { | |
vremya_size = localStorage.getItem('vremya_size') | |
} else { | |
vremya_size = 14 | |
}; | |
if (localStorage.getItem('max_size') >= 1) { | |
max_size = localStorage.getItem('max_size') | |
} else { | |
max_size = 14 | |
}; | |
if (localStorage.getItem('gis_size') >= 1) { | |
gis_size = localStorage.getItem('gis_size') | |
} else { | |
gis_size = 14 | |
}; | |
if (localStorage.getItem('ur_gist') >= 1) { | |
ur_gist = localStorage.getItem('ur_gist') | |
} else { | |
ur_gist = 14 | |
}; | |
if (localStorage.getItem('ur_str_size') >= 1) { | |
ur_str_size = localStorage.getItem('ur_str_size') | |
} else { | |
ur_str_size = 14 | |
}; | |
if (localStorage.getItem('str_min_size') >= 1) { | |
str_min_size = localStorage.getItem('str_min_size') | |
} else { | |
str_min_size = 14 | |
} | |
} | |
function blok_shema_0(_0xf774x1a) { | |
document.getElementById(_0xf774x1a).onclick = function () { | |
if (document.getElementById(_0xf774x1a).checked) { | |
localStorage.setItem(_0xf774x1a, 'true'); | |
if (invert == 1) { | |
document.body.style.backgroundImage = "url('img/blok_shema_mod.png')" | |
} else { | |
document.body.style.backgroundImage = "url('img/blok_shema_classic.png')" | |
}; | |
return 1 | |
} else { | |
localStorage.setItem(_0xf774x1a, 'false'); | |
document.body.style.backgroundImage = 'none'; | |
return 0 | |
} | |
}; | |
if (localStorage.getItem(_0xf774x1a) == 'true') { | |
document.getElementById(_0xf774x1a).setAttribute('checked', 'checked'); | |
if (invert == 1) { | |
document.body.style.backgroundImage = "url('img/blok_shema_mod.png')" | |
} else { | |
document.body.style.backgroundImage = "url('img/blok_shema_classic.png')" | |
}; | |
return 1 | |
} else { | |
document.body.style.backgroundImage = 'none'; | |
return 0 | |
} | |
} | |
function Menu() { | |
menuopen = OpenMenu(); | |
trading_view_graff_on(); | |
color = check_1('color'); | |
invert = check_1('invert'); | |
timer = check_1('timer'); | |
max_obj = check_1('max_obj'); | |
max_obj_color = check_1('max_obj_color'); | |
Strelki_On = stsrelki_move(); | |
strelki_procent = check_1('strelki_procent'); | |
font_size = font_size_s('font_size'); | |
blok_shema = blok_shema_0('blok_shema'); | |
odinak = check_1('odinak'); | |
okrugl_on = check_1('okrugl_on'); | |
onetiksec_on = check_1('onetiksec_on'); | |
gorizontal_on = check_1('gorizontal_on'); | |
poc = check_1('poc'); | |
document.getElementById('background').onclick = function () { | |
var _0xf774x20 = document.getElementById('background'); | |
var _0xf774x21 = _0xf774x20.options[_0xf774x20.selectedIndex].value; | |
switch (_0xf774x21) { | |
case '0': | |
document.body.style.backgroundColor = '#21252c'; | |
break; | |
case '1': | |
document.body.style.backgroundColor = '#000000'; | |
break; | |
case '2': | |
document.body.style.backgroundColor = '#00008b'; | |
break; | |
case '3': | |
document.body.style.backgroundColor = '#808080'; | |
break; | |
case '4': | |
document.body.style.backgroundColor = '#686c5e'; | |
break; | |
case '5': | |
document.body.style.backgroundColor = '#964b00'; | |
break; | |
case '6': | |
document.body.style.backgroundColor = '#ffd700'; | |
break; | |
case '7': | |
document.body.style.backgroundColor = '#6DB3F2'; | |
break; | |
case '8': | |
document.body.style.backgroundColor = 'transparent'; | |
break | |
}; | |
localStorage.setItem('background', _0xf774x21) | |
}; | |
if (localStorage.getItem('background') > '0') { | |
var _0xf774x22 = document.querySelector('#background'); | |
var _0xf774x23 = localStorage.getItem('background'); | |
switch (_0xf774x23) { | |
case '0': | |
document.body.style.backgroundColor = '#21252c'; | |
break; | |
case '1': | |
document.body.style.backgroundColor = '#000000'; | |
break; | |
case '2': | |
document.body.style.backgroundColor = '#00008b'; | |
break; | |
case '3': | |
document.body.style.backgroundColor = '#808080'; | |
break; | |
case '4': | |
document.body.style.backgroundColor = '#686c5e'; | |
break; | |
case '5': | |
document.body.style.backgroundColor = '#964b00'; | |
break; | |
case '6': | |
document.body.style.backgroundColor = '#ffd700'; | |
break; | |
case '7': | |
document.body.style.backgroundImage = '#6DB3F2'; | |
break; | |
case '8': | |
document.body.style.backgroundColor = 'transparent'; | |
break | |
}; | |
document.getElementById('background').setAttribute('background', _0xf774x23); | |
_0xf774x22.value = _0xf774x23 | |
}; | |
document.getElementById('obrez').onclick = function () { | |
obrez = document.getElementById('obrez').value; | |
document.getElementById('obrez').setAttribute('value', obrez); | |
localStorage.setItem('obrez', obrez) | |
}; | |
if (isNaN(obrez) == true) { | |
obrez = 0 | |
} else {}; | |
if (localStorage.getItem('obrez') != document.getElementById('obrez').value) { | |
document.getElementById('obrez').value = localStorage.getItem('obrez'); | |
obrez = localStorage.getItem('obrez'); | |
if (!obrez) { | |
obrez = 0; | |
localStorage.setItem('obrez', obrez) | |
} | |
} else { | |
localStorage.setItem('obrez', obrez) | |
}; | |
pair2 = $('#pair').attr('val'); | |
document.getElementById('okrugl').onclick = function () { | |
okrugl = document.getElementById('okrugl').value; | |
document.getElementById('okrugl').setAttribute('value', okrugl); | |
localStorage.setItem('okrugl' + pair2, okrugl) | |
}; | |
okr_get_elem = document.getElementById('okrugl').value; | |
local_get_elem = localStorage.getItem('okrugl' + pair2); | |
if (!local_get_elem) { | |
if (!okr_get_elem) {} else { | |
okrugl = okr_get_elem; | |
localStorage.setItem('okrugl' + pair2, okr_get_elem) | |
} | |
} else { | |
okrugl = localStorage.getItem('okrugl' + pair2); | |
document.getElementById('okrugl').setAttribute('value', okrugl) | |
}; | |
document.getElementById('gorizontal').onclick = function () { | |
gorizontal = document.getElementById('gorizontal').value; | |
document.getElementById('gorizontal').setAttribute('value', gorizontal); | |
localStorage.setItem('gorizontal' + pair2, gorizontal) | |
}; | |
okr_get_elem = document.getElementById('gorizontal').value; | |
local_get_elem = localStorage.getItem('gorizontal' + pair2); | |
if (!local_get_elem) { | |
if (!okr_get_elem) {} else { | |
gorizontal = okr_get_elem; | |
localStorage.setItem('gorizontal' + pair2, okr_get_elem) | |
} | |
} else { | |
gorizontal = localStorage.getItem('gorizontal' + pair2); | |
document.getElementById('gorizontal').setAttribute('value', gorizontal) | |
} | |
} | |
function TradingView_11() { | |
if (pair_0 = JSON.parse(localStorage.getItem('dsav'))) { | |
pair2 = pair_0.pair | |
} else { | |
pair2 = 'EURUSD' | |
}; | |
console.log(pair2); | |
var _0xf774x25 = pair2; | |
var _0xf774x26 = _0xf774x25.replace('/', ''); | |
res = _0xf774x26.replace('frx', ''); | |
inter_view_0 = size / 60, new TradingView.widget({ | |
"autosize": true, | |
"symbol": 'OANDA:' + res, | |
"interval": '' + inter_view_0, | |
"timezone": 'Europe/Moscow', | |
"theme": 'Dark', | |
"style": '1', | |
"locale": 'ru', | |
"toolbar_bg": '#f1f3f6', | |
"enable_publishing": false, | |
"withdateranges": true, | |
"hide_side_toolbar": false, | |
"allow_symbol_change": true, | |
"save_image": false, | |
"details": false, | |
"hotlist": false, | |
"calendar": false, | |
"popup_width": '1000', | |
"popup_height": '650', | |
"container_id": 'tradingview_61bf3' | |
}) | |
} | |
function hashCode(_0xf774x28) { | |
return _0xf774x28.split('').reduce((_0xf774x29, _0xf774x2a) => { | |
return (((_0xf774x29 << 5) - _0xf774x29) + _0xf774x2a.charCodeAt(0)) | 0 | |
}, 0) | |
} | |
var Sign = function () { | |
TradingView_11(); | |
var _0xf774x2c = 0; | |
var _0xf774x2d = this, | |
_0xf774x2e, _0xf774x2f = false, | |
_0xf774x30 = 0, | |
_0xf774x31 = 0, | |
_0xf774x32 = 'va-mod.ru', | |
_0xf774x33 = [x = 0, y = 0], | |
_0xf774x34 = 'Binomo', | |
_0xf774x35 = 0, | |
_0xf774x36 = 0; | |
var _0xf774x37 = document.getElementById('valx'); | |
var _0xf774x38 = _0xf774x37.getContext('2d'); | |
var _0xf774x39 = []; | |
$(_0xf774x37).attr('width', window.innerWidth); | |
$(_0xf774x37).attr('height', window.innerHeight); | |
$(window).bind('resize orientationchange', function () { | |
$(_0xf774x37).attr('width', window.innerWidth); | |
$(_0xf774x37).attr('height', window.innerHeight) | |
}); | |
$(_0xf774x37).mousemove(function (_0xf774x3a) { | |
_0xf774x33.x = _0xf774x3a.pageX; | |
_0xf774x33.y = _0xf774x3a.pageY; | |
var _0xf774x3b = (($(_0xf774x37).width() / 100) * 15) / 100; | |
var _0xf774x10 = $(_0xf774x37).height() - (($(_0xf774x37).height() / 100) * 200); | |
if (_0xf774x33.x < (_0xf774x3b * 100) && _0xf774x33.y < _0xf774x10) { | |
requestAnimationFrame(_0xf774x2d.indi) | |
}; | |
if (_0xf774x33.y > _0xf774x10) { | |
requestAnimationFrame(_0xf774x2d.indi) | |
} | |
}); | |
this.lincen = function (_0xf774x3c) { | |
if (_0xf774x3c.hp < _0xf774x33.y && _0xf774x33.y < (_0xf774x3c.hp + _0xf774x3c.hh) && _0xf774x33.x < _0xf774x3c.ww) { | |
return true | |
}; | |
if (_0xf774x3c.hp < _0xf774x33.y && _0xf774x33.y < (_0xf774x3c.hp + _0xf774x3c.hh) && _0xf774x33.x > _0xf774x3c.wp && _0xf774x33.x < (_0xf774x3c.wp + _0xf774x3c.ww)) { | |
return true | |
}; | |
return false | |
}; | |
this.risv = function (_0xf774x3d, _0xf774x3e) { | |
var _0xf774x3f = _0xf774x3d.length; | |
var _0xf774x10 = ($(_0xf774x37).height() - (($(_0xf774x37).height() / 100) * 20)) / _0xf774x3f, | |
_0xf774xf, _0xf774x40 = _0xf774x3e / 100, | |
_0xf774x3b = (($(_0xf774x37).width() / 100) * 15) / 100; | |
if (window.location.hostname.length !== _0xf774x32.length) { | |
return | |
}; | |
var _0xf774x41 = []; | |
max_ob_left = 0; | |
vertikal_gis_pos = []; | |
cena_gist = 0; | |
var _0xf774x42 = 0, | |
_0xf774x43 = 0; | |
for (var _0xf774x44 = 0; _0xf774x44 < _0xf774x3f; _0xf774x44++) { | |
if (_0xf774x3d[_0xf774x44][0].length > _0xf774x42) { | |
_0xf774x42 = _0xf774x3d[_0xf774x44][0].length | |
}; | |
if (_0xf774x3d[_0xf774x44][0].length < _0xf774x42) { | |
_0xf774x43 = _0xf774x3d[_0xf774x44][0].length | |
} | |
}; | |
for (var _0xf774x44 = 0; _0xf774x44 < _0xf774x3f; _0xf774x44++) { | |
testgorizont = _0xf774x3d[_0xf774x44][0].split('.')[1]; | |
if (gorizontal_on == 1) { | |
if (_0xf774x3d[_0xf774x44][0].length < _0xf774x42) { | |
if (_0xf774x42 - _0xf774x3d[_0xf774x44][0].length == 1) { | |
gorizontmini = _0xf774x3d[_0xf774x44][0].split('.')[1] + '0' | |
} else { | |
if (_0xf774x42 - _0xf774x3d[_0xf774x44][0].length == 2) { | |
gorizontmini = _0xf774x3d[_0xf774x44][0].split('.')[1] + '00' | |
} else { | |
if (_0xf774x42 - _0xf774x3d[_0xf774x44][0].length == 3) { | |
gorizontmini = _0xf774x3d[_0xf774x44][0].split('.')[1] + '000' | |
} else { | |
if (_0xf774x42 - _0xf774x3d[_0xf774x44][0].length == 4) { | |
gorizontmini = _0xf774x3d[_0xf774x44][0].split('.')[1] + '0000' | |
} else { | |
if (_0xf774x42 - _0xf774x3d[_0xf774x44][0].length == 5) { | |
gorizontmini = _0xf774x3d[_0xf774x44][0].split('.')[1] + '00000' | |
} | |
} | |
} | |
} | |
}; | |
if (!(gorizontmini % gorizontal)) { | |
_0xf774x38.beginPath(); | |
_0xf774x38.strokeStyle = 'grey'; | |
_0xf774x38.moveTo(0, (_0xf774x10 * _0xf774x44 + _0xf774x10 / 2)); | |
_0xf774x38.lineTo(($(_0xf774x37).width() / 2), (_0xf774x10 * _0xf774x44 + _0xf774x10 / 2)); | |
_0xf774x38.stroke(); | |
if (_0xf774x3d[_0xf774x44][0] <= _0xf774x2d.data.data[0].close) { | |
_0xf774x38.fillStyle = 'rgba(210, 59, 59, 1)' | |
}; | |
_0xf774x38.font = ur_gist + 'px Verdana'; | |
_0xf774x38.fillText(gorizontmini, (($(_0xf774x37).width() / 2) + 90) - (_0xf774x3d[_0xf774x44][0].length * 8), (_0xf774x10 * _0xf774x44) + _0xf774x10 / 2 + 5) | |
} | |
} else { | |
if (_0xf774x3d[_0xf774x44][0].length > _0xf774x43) { | |
if (!(testgorizont % gorizontal)) { | |
_0xf774x38.beginPath(); | |
_0xf774x38.strokeStyle = 'grey'; | |
_0xf774x38.moveTo(0, (_0xf774x10 * _0xf774x44 + _0xf774x10 / 2)); | |
_0xf774x38.lineTo(($(_0xf774x37).width() / 2), (_0xf774x10 * _0xf774x44 + _0xf774x10 / 2)); | |
_0xf774x38.stroke(); | |
if (_0xf774x3d[_0xf774x44][0] <= _0xf774x2d.data.data[0].close) { | |
_0xf774x38.fillStyle = 'rgba(210, 59, 59, 1)' | |
}; | |
_0xf774x38.fillStyle = '#fff'; | |
_0xf774x38.font = ur_gist + 'px Verdana'; | |
_0xf774x38.fillText(testgorizont, (($(_0xf774x37).width() / 2) + 100) - (_0xf774x3d[_0xf774x44][0].length * 8), (_0xf774x10 * _0xf774x44) + _0xf774x10 / 2 + 5) | |
} | |
} | |
} | |
}; | |
if ((_0xf774x3d[_0xf774x44][1] > 6) && (poc == 1)) { | |
if (_0xf774x3d[_0xf774x44][1] == _0xf774x3e) { | |
_0xf774x38.beginPath(); | |
_0xf774x38.strokeStyle = 'grey'; | |
_0xf774x38.moveTo(0, (_0xf774x10 * _0xf774x44 + _0xf774x10 / 2)); | |
_0xf774x38.lineTo(($(_0xf774x37).width() / 80) * 50, (_0xf774x10 * _0xf774x44 + _0xf774x10 / 2)); | |
_0xf774x38.stroke(); | |
_0xf774x38.fillStyle = 'rgba(0, 33, 56, 0.61)'; | |
_0xf774x38.fillRect((($(_0xf774x37).width() / 100) * 25) - (_0xf774x3d[_0xf774x44][0].length * 8), (_0xf774x10 * _0xf774x44 + (_0xf774x10 / 2)) - 25, String(_0xf774x3d[_0xf774x44][0]).length * 10, 20); | |
_0xf774x38.fillStyle = 'rgba(86, 176, 104, 1)'; | |
if (_0xf774x3d[_0xf774x44][0] <= _0xf774x2d.data.data[0].close) { | |
_0xf774x38.fillStyle = 'rgba(210, 59, 59, 1)' | |
}; | |
_0xf774x38.fillRect((($(_0xf774x37).width() / 100) * 20) - (_0xf774x3d[_0xf774x44][0].length * 8), (_0xf774x10 * _0xf774x44 + (_0xf774x10 / 2)) - 25, String(_0xf774x3d[_0xf774x44][1]).length * 10, 20); | |
_0xf774x38.fillStyle = '#fff'; | |
_0xf774x38.font = ur_gist + 'px Verdana'; | |
_0xf774x38.fillText(_0xf774x3d[_0xf774x44][0], (($(_0xf774x37).width() / 100) * 25) - (_0xf774x3d[_0xf774x44][0].length * 8), (_0xf774x10 * _0xf774x44) + _0xf774x10 / 2 - 10); | |
_0xf774x38.fillText(_0xf774x3e, (($(_0xf774x37).width() / 100) * 20) - (_0xf774x3d[_0xf774x44][0].length * 8), (_0xf774x10 * _0xf774x44) + _0xf774x10 / 2 - 10) | |
} | |
}; | |
_0xf774xf = _0xf774x3d[_0xf774x44][1]; | |
if (invert == 1) { | |
_0xf774x38.fillStyle = '#d75c48'; | |
if (_0xf774x3d[_0xf774x44][0] <= _0xf774x2d.data.data[0].close) { | |
_0xf774x38.fillStyle = '#53a15f' | |
}; | |
if (color == 1) { | |
if (_0xf774x3d[_0xf774x44][1] >= 5 && _0xf774x3d[_0xf774x44][1] < 8) { | |
_0xf774x38.fillStyle = '#bf3e2a' | |
} else { | |
if (_0xf774x3d[_0xf774x44][1] >= 8 && _0xf774x3d[_0xf774x44][1] < 10) { | |
_0xf774x38.fillStyle = '#963121' | |
} else { | |
if (_0xf774x3d[_0xf774x44][1] >= 10) { | |
_0xf774x38.fillStyle = '#6e2418' | |
} | |
} | |
}; | |
if (_0xf774x3d[_0xf774x44][0] <= _0xf774x2d.data.data[0].close) { | |
if (_0xf774x3d[_0xf774x44][1] >= 5 && _0xf774x3d[_0xf774x44][1] < 8) { | |
_0xf774x38.fillStyle = '#42804b' | |
} else { | |
if (_0xf774x3d[_0xf774x44][1] >= 8 && _0xf774x3d[_0xf774x44][1] < 10) { | |
_0xf774x38.fillStyle = '#315e38' | |
} else { | |
if (_0xf774x3d[_0xf774x44][1] >= 10) { | |
_0xf774x38.fillStyle = '#203d24' | |
} | |
} | |
} | |
} | |
} | |
} else { | |
_0xf774x38.fillStyle = '#53a15f'; | |
if (_0xf774x3d[_0xf774x44][0] <= _0xf774x2d.data.data[0].close) { | |
_0xf774x38.fillStyle = '#d75c48' | |
}; | |
if (color == 1) { | |
if (_0xf774x3d[_0xf774x44][1] >= 5 && _0xf774x3d[_0xf774x44][1] < 8) { | |
_0xf774x38.fillStyle = '#42804b' | |
} else { | |
if (_0xf774x3d[_0xf774x44][1] >= 8 && _0xf774x3d[_0xf774x44][1] < 10) { | |
_0xf774x38.fillStyle = '#315e38' | |
} else { | |
if (_0xf774x3d[_0xf774x44][1] >= 10) { | |
_0xf774x38.fillStyle = '#203d24' | |
} | |
} | |
}; | |
if (_0xf774x3d[_0xf774x44][0] <= _0xf774x2d.data.data[0].close) { | |
if (_0xf774x3d[_0xf774x44][1] >= 5 && _0xf774x3d[_0xf774x44][1] < 8) { | |
_0xf774x38.fillStyle = '#bf3e2a' | |
} else { | |
if (_0xf774x3d[_0xf774x44][1] >= 8 && _0xf774x3d[_0xf774x44][1] < 10) { | |
_0xf774x38.fillStyle = '#963121' | |
} else { | |
if (_0xf774x3d[_0xf774x44][1] >= 10) { | |
_0xf774x38.fillStyle = '#6e2418' | |
} | |
} | |
} | |
} | |
} | |
}; | |
_0xf774x38.fillRect(0, _0xf774x10 * _0xf774x44, (_0xf774xf / _0xf774x40) * _0xf774x3b, _0xf774x10 - (_0xf774x10 / 100)); | |
if (_0xf774x3d[_0xf774x44][0] == _0xf774x2d.data.data[0].close) { | |
cena_gist = (_0xf774x10 * _0xf774x44); | |
_0xf774x38.beginPath(); | |
_0xf774x38.strokeStyle = '#49bde8'; | |
_0xf774x38.moveTo(0, _0xf774x10 * _0xf774x44); | |
_0xf774x38.lineTo(($(_0xf774x37).width() / 100) * 30, _0xf774x10 * _0xf774x44); | |
_0xf774x38.stroke(); | |
_0xf774x38.fillStyle = '#49bde8'; | |
_0xf774x38.font = gis_size + 'px Verdana'; | |
vertikal = ($(_0xf774x37).height() / 2 - 100); | |
vertik = Math.round(_0xf774x10 * _0xf774x44); | |
if (vertik > vertikal) { | |
temp = (-15); | |
temp_2 = (-45) | |
} else { | |
temp = 14; | |
temp_2 = 60 | |
}; | |
tim = new Date(); | |
hour = tim.getHours(); | |
if (timer == 1) { | |
if (_0xf774x34 == 'Binomo') { | |
plus = 1 | |
} else { | |
plus = 0 | |
}; | |
minut = plus + tim.getMinutes(); | |
sec = 60 - glob_sec + plus | |
} else { | |
plus = 0; | |
minut = tim.getMinutes(); | |
sec = glob_sec - plus | |
}; | |
if (minut > 59) { | |
minut = 0; | |
hour = hour + plus | |
}; | |
if (hour < 10) { | |
hour = '0' + hour | |
}; | |
if (minut < 10) { | |
minut = '0' + minut | |
}; | |
if (sec < 10) { | |
sec = ':' + '0' + sec | |
} else { | |
if (sec < 0) { | |
sec = 0 | |
} | |
}; | |
if (timer == 1) { | |
if (sec <= '45' && sec > '35') { | |
_0xf774x38.fillStyle = '#ffff00' | |
}; | |
if (sec <= '35' && sec > '30') { | |
_0xf774x38.fillStyle = '#ff0000' | |
} | |
} else { | |
if (sec >= '15' && sec < '25') { | |
_0xf774x38.fillStyle = '#ffff00' | |
}; | |
if (sec >= '25' && sec < '30') { | |
_0xf774x38.fillStyle = '#ff0000' | |
} | |
}; | |
_0xf774x38.fillText(_0xf774x3d[_0xf774x44][0], (($(_0xf774x37).width() / 100) * 20) - (_0xf774x3d[_0xf774x44][0].length * 8), (_0xf774x10 * _0xf774x44) + temp) | |
}; | |
_0xf774x41.hp = _0xf774x10 * _0xf774x44; | |
_0xf774x41.hh = _0xf774x10 - (_0xf774x10 / 100); | |
_0xf774x41.ww = _0xf774x3b * 100; | |
if (_0xf774x2d.lincen(_0xf774x41) || (_0xf774x2c == _0xf774x3d[_0xf774x44][0])) { | |
_0xf774x38.fillStyle = 'rgba(0, 33, 56, 0.61)'; | |
_0xf774x38.fillRect((($(_0xf774x37).width() / 100) * 15.2), (_0xf774x10 * _0xf774x44 + (_0xf774x10 / 2)), String(_0xf774x3d[_0xf774x44][0]).length * 10, 20); | |
_0xf774x38.fillStyle = 'rgba(86, 176, 104, 1)'; | |
if (_0xf774x3d[_0xf774x44][0] <= _0xf774x2d.data.data[0].close) { | |
_0xf774x38.fillStyle = 'rgba(210, 59, 59, 1)' | |
}; | |
_0xf774x38.fillRect((($(_0xf774x37).width() / 100) * 15.2), (_0xf774x10 * _0xf774x44 + (_0xf774x10 / 2)) - 20, String(_0xf774x3d[_0xf774x44][1]).length * 20, 20); | |
_0xf774x38.beginPath(); | |
_0xf774x38.strokeStyle = '#fff'; | |
_0xf774x38.moveTo(0, _0xf774x10 * _0xf774x44 + (_0xf774x10 / 2)); | |
_0xf774x38.lineTo(($(_0xf774x37).width() / 100) * 15.2, _0xf774x10 * _0xf774x44 + (_0xf774x10 / 2)); | |
_0xf774x38.stroke(); | |
_0xf774x38.fillStyle = '#fff'; | |
_0xf774x38.font = gis_size + 'px Verdana'; | |
if (odinak > 0) { | |
_0xf774x2c = _0xf774x3d[_0xf774x44][0] | |
}; | |
_0xf774x38.fillText(_0xf774x3d[_0xf774x44][0], (($(_0xf774x37).width() / 100) * 15.5), (_0xf774x10 * _0xf774x44 + (_0xf774x10 / 2)) + 14); | |
_0xf774x38.fillText(_0xf774x3d[_0xf774x44][1], (($(_0xf774x37).width() / 100) * 15.5), (_0xf774x10 * _0xf774x44 + (_0xf774x10 / 2)) - 5) | |
} | |
} | |
}; | |
this.risg = function (_0xf774x3d) { | |
fon_svecha = []; | |
X_price = [], Y_price = []; | |
if (window.location.hostname.length !== _0xf774x32.length) { | |
return | |
}; | |
var _0xf774x45 = $('#period').val(), | |
_0xf774x46 = 0; | |
for (var _0xf774x44 = 0; _0xf774x44 < _0xf774x45; _0xf774x44++) { | |
if (!_0xf774x3d[_0xf774x44].tick) { | |
break | |
}; | |
if (_0xf774x3d[_0xf774x44].tick.length > _0xf774x46) { | |
_0xf774x46 = _0xf774x3d[_0xf774x44].tick.length | |
} | |
}; | |
var _0xf774x40 = _0xf774x46 / 100, | |
_0xf774xf = ($(_0xf774x37).width() - 120) / _0xf774x45, | |
_0xf774x10 = (($(_0xf774x37).height() / 100) * 20) / 100; | |
var _0xf774x47 = 0, | |
_0xf774x48, _0xf774x49, _0xf774x4a, _0xf774x4b, _0xf774x4c; | |
open_sv = []; | |
for (var _0xf774x44 = 0; _0xf774x44 < _0xf774x45; _0xf774x44++) { | |
if (!_0xf774x3d[_0xf774x44].tick) { | |
break | |
}; | |
if (_0xf774x3d[_0xf774x44].tick) { | |
_0xf774x47 = _0xf774x3d[_0xf774x44].tick.length | |
}; | |
open_sv[_0xf774x44] = _0xf774x3d[_0xf774x44].open; | |
if (_0xf774x3d[_0xf774x44].close < _0xf774x3d[_0xf774x44].open) { | |
_0xf774x38.fillStyle = '#d75c48'; | |
fon_svecha[_0xf774x44] = 'red' | |
} else { | |
if (_0xf774x3d[_0xf774x44].close > _0xf774x3d[_0xf774x44].open) { | |
_0xf774x38.fillStyle = '#53a15f'; | |
fon_svecha[_0xf774x44] = 'green' | |
} else { | |
if (_0xf774x3d[_0xf774x44].close = _0xf774x3d[_0xf774x44].open) { | |
_0xf774x38.fillStyle = '#808080'; | |
fon_svecha[_0xf774x44] = 'grey' | |
} | |
} | |
}; | |
_0xf774x38.fillRect(_0xf774xf * ((_0xf774x45 - 1) - _0xf774x44), $(_0xf774x37).height(), _0xf774xf - (_0xf774xf / 100), 0 - (_0xf774x10 * (_0xf774x47 / _0xf774x40))); | |
_0xf774x38.fillStyle = '#fff'; | |
_0xf774x38.font = vremya_size + 'px Verdana'; | |
_0xf774x48 = new Date(_0xf774x3d[_0xf774x44].time * 1000); | |
_0xf774x4c = new Date(); | |
_0xf774x49 = _0xf774x48.getHours(); | |
if (_0xf774x34 == 'Binomo') { | |
plus = 1; | |
sec_0 = 59 | |
} else { | |
plus = 0; | |
sec_0 = 60 | |
}; | |
if (timer == 1) { | |
_0xf774x4a = (_0xf774x48.getMinutes() + plus); | |
if (_0xf774x44 < 1) { | |
_0xf774x4b = sec_0 - glob_sec + plus; | |
if (_0xf774x4b < -1) { | |
_0xf774x4b = 59 | |
}; | |
if (_0xf774x4b < -2) { | |
_0xf774x4b = 58 | |
}; | |
if (_0xf774x4b < 10) { | |
_0xf774x4b = '0' + _0xf774x4b | |
} | |
} else { | |
_0xf774x4b = ''; | |
_0xf774x38.font = vremya_size + 'px Verdana' | |
}; | |
if (_0xf774x4a < 10) { | |
_0xf774x4a = '0' + _0xf774x4a | |
}; | |
if (_0xf774x4a > 59) { | |
_0xf774x4a = '00'; | |
_0xf774x49 = (parseInt(_0xf774x49) + 1) | |
}; | |
if (_0xf774x49 < 10) { | |
_0xf774x49 = '0' + plus | |
}; | |
if (_0xf774x4b > 59) { | |
_0xf774x4b = '00' | |
}; | |
if (_0xf774x4b <= '45' && _0xf774x4b > '35') { | |
_0xf774x38.fillStyle = '#ffff00' | |
}; | |
if (_0xf774x4b <= '35' && _0xf774x4b > '30') { | |
_0xf774x38.fillStyle = '#ff0000' | |
} | |
} else { | |
_0xf774x4a = (_0xf774x48.getMinutes() + plus); | |
if (_0xf774x44 < 1) { | |
_0xf774x4b = glob_sec - plus; | |
if (_0xf774x4b < 10) { | |
_0xf774x4b = '0' + _0xf774x4b | |
} | |
} else { | |
_0xf774x4b = ''; | |
_0xf774x38.font = vremya_size + 'px Verdana' | |
}; | |
if (_0xf774x4a < 10) { | |
_0xf774x4a = '0' + _0xf774x4a | |
}; | |
if (_0xf774x4a > 59) { | |
_0xf774x4a = '00'; | |
_0xf774x49 = (parseInt(_0xf774x49) + plus) | |
}; | |
if (_0xf774x49 < 10) { | |
_0xf774x49 = '0' + _0xf774x49 | |
}; | |
if (_0xf774x4b > 59) { | |
_0xf774x4b = '00' | |
}; | |
if (_0xf774x4b >= '15' && _0xf774x4b < '25') { | |
_0xf774x38.fillStyle = '#ffff00' | |
}; | |
if (_0xf774x4b >= '25' && _0xf774x4b < '30') { | |
_0xf774x38.fillStyle = '#ff0000' | |
} | |
}; | |
if (_0xf774x44 < 1) { | |
_0xf774x4b = ':' + _0xf774x4b; | |
if (timer == 1) {} else { | |
_0xf774x4a = _0xf774x4a - 1 | |
} | |
}; | |
_0xf774x38.fillText(_0xf774x49 + ':' + _0xf774x4a + _0xf774x4b, _0xf774xf * ((_0xf774x45 - 1) - _0xf774x44), $(_0xf774x37).height() - (_0xf774x10 * (_0xf774x47 / _0xf774x40)) - 10); | |
X_price[_0xf774x44] = _0xf774xf * ((_0xf774x45 - 1) - _0xf774x44); | |
Y_price[_0xf774x44] = $(_0xf774x37).height() - (_0xf774x10 * (_0xf774x47 / _0xf774x40)); | |
_0xf774x47 = 0 | |
} | |
}; | |
this.rish = function (_0xf774x4d) { | |
var _0xf774x4e; | |
var _0xf774x4f = $('#period').val() * 1 + 1; | |
var _0xf774x50 = ($(_0xf774x37).width()) / (_0xf774x4f + 1.5); | |
var _0xf774x51 = 300; | |
var _0xf774x52 = ($(_0xf774x37).height() - _0xf774x51) / 2; | |
cena_sv = []; | |
cena_stolbik = 0, rash_up = 0; | |
var _0xf774x53, _0xf774x54 = [], | |
_0xf774x55 = 0, | |
_0xf774x56, _0xf774x57; | |
if (window.location.hostname.length !== _0xf774x32.length) { | |
return | |
}; | |
var _0xf774x45 = $('#period').val(), | |
_0xf774x58 = 0, | |
_0xf774x59 = 0, | |
_0xf774x46, _0xf774x5a = 0, | |
_0xf774x40, _0xf774x3f, _0xf774x5b = 0, | |
_0xf774x3d = [], | |
_0xf774x5c = [], | |
_0xf774x5d = [], | |
_0xf774x5e, _0xf774x5f, _0xf774x60 = [], | |
_0xf774x41 = []; | |
var _0xf774x47 = 0; | |
for (var _0xf774x44 = 0; _0xf774x44 < _0xf774x45; _0xf774x44++) { | |
if (!_0xf774x4d[_0xf774x44].tick) { | |
break | |
}; | |
if (_0xf774x4d[_0xf774x44].tick) { | |
_0xf774x47 = _0xf774x4d[_0xf774x44].tick.length | |
}; | |
_0xf774x5c = [], _0xf774x3f = _0xf774x4d[_0xf774x44].tick.length; | |
if (_0xf774x3f > _0xf774x5a) { | |
_0xf774x5a = _0xf774x3f | |
}; | |
for (var _0xf774x61 = 0; _0xf774x61 < _0xf774x3f; _0xf774x61++) { | |
if (!_0xf774x5c[_0xf774x4d[_0xf774x44].tick[_0xf774x61].close]) { | |
_0xf774x5c[_0xf774x4d[_0xf774x44].tick[_0xf774x61].close] = 1 | |
} else { | |
_0xf774x5c[_0xf774x4d[_0xf774x44].tick[_0xf774x61].close]++ | |
} | |
}; | |
var _0xf774x5d = []; | |
for (var _0xf774x62 in _0xf774x5c) { | |
_0xf774x5d.push([_0xf774x62, _0xf774x5c[_0xf774x62]]) | |
}; | |
var _0xf774x5e = _0xf774x5d.length, | |
_0xf774x5f, _0xf774x3d = []; | |
for (var _0xf774x63 = 0; _0xf774x63 < _0xf774x5e; _0xf774x63++) { | |
if (Number(_0xf774x5d[_0xf774x63][0]) > 0) { | |
_0xf774x5f = _0xf774x63; | |
_0xf774x5b = _0xf774x5d[_0xf774x63][0]; | |
for (var _0xf774x64 = 0; _0xf774x64 < _0xf774x5e; _0xf774x64++) { | |
if (Number(_0xf774x5d[_0xf774x64][0]) > _0xf774x5b) { | |
_0xf774x5b = _0xf774x5d[_0xf774x64][0]; | |
_0xf774x5f = _0xf774x64; | |
if (_0xf774x63 > 0) { | |
_0xf774x63-- | |
} | |
} | |
}; | |
_0xf774x3d.push([_0xf774x5b, _0xf774x5d[_0xf774x5f][1]]); | |
_0xf774x5d[_0xf774x5f][0] = 0 | |
} | |
}; | |
_0xf774x60.push(_0xf774x3d) | |
}; | |
var _0xf774x65 = _0xf774x60.length, | |
_0xf774x66; | |
var _0xf774x40 = _0xf774x5a / 100; | |
var _0xf774xf = ($(_0xf774x37).width() - 120) / _0xf774x45; | |
var _0xf774x67 = (($(_0xf774x37).height() / 100) * 20) / 100, | |
_0xf774x10 = 0, | |
_0xf774x68 = 0, | |
_0xf774x69 = 0; | |
var _0xf774x46; | |
candleLow = 0; | |
candleHigh = 0; | |
for (var _0xf774x44 = 0; _0xf774x44 < _0xf774x65; _0xf774x44++) { | |
_0xf774x66 = _0xf774x60[_0xf774x44].length; | |
_0xf774x10 = ((_0xf774x4d[_0xf774x44].tick.length / _0xf774x40) * _0xf774x67) / _0xf774x66; | |
_0xf774x69 = _0xf774x4d[_0xf774x44].tick[0].close; | |
_0xf774x46 = 0; | |
open[_0xf774x44] = open_sv[_0xf774x44]; | |
candleHigh = _0xf774x60[_0xf774x44][0][0]; | |
candleLow = _0xf774x60[_0xf774x44][_0xf774x66 - 1][0]; | |
for (var _0xf774x3f = 0; _0xf774x3f < _0xf774x66; _0xf774x3f++) { | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] > _0xf774x46) { | |
_0xf774x46 = _0xf774x60[_0xf774x44][_0xf774x3f][1] | |
} | |
}; | |
_0xf774x53 = 0; | |
_0xf774x54 = 0; | |
for (var _0xf774x3f = 0; _0xf774x3f < _0xf774x66; _0xf774x3f++) { | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= _0xf774x53) { | |
_0xf774x53 = _0xf774x60[_0xf774x44][_0xf774x3f][1]; | |
_0xf774x55 = _0xf774x66; | |
max_p_find = _0xf774x3f; | |
_0xf774x54 = _0xf774x60[_0xf774x44][_0xf774x3f][0]; | |
if (_0xf774x54 < _0xf774x69) { | |
color_text = '#008f1d' | |
}; | |
if (_0xf774x54 > _0xf774x69) { | |
color_text = '#d75c48' | |
}; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][0] == _0xf774x69) { | |
color_text = '#ffffff' | |
} | |
}; | |
if (invert == 1) { | |
_0xf774x38.fillStyle = '#930000'; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][0] <= _0xf774x69) { | |
_0xf774x38.fillStyle = '#005811' | |
}; | |
if (color == 1) { | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= 6) { | |
_0xf774x38.fillStyle = '#2e0000' | |
}; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= 4 && _0xf774x60[_0xf774x44][_0xf774x3f][1] < 6) { | |
_0xf774x38.fillStyle = '#610000' | |
}; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][0] <= _0xf774x69) { | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= 6) { | |
_0xf774x38.fillStyle = '#002908' | |
}; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= 4 && _0xf774x60[_0xf774x44][_0xf774x3f][1] < 6) { | |
_0xf774x38.fillStyle = '#005c12' | |
} | |
} | |
} | |
} else { | |
_0xf774x38.fillStyle = '#005811'; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][0] <= _0xf774x69) { | |
_0xf774x38.fillStyle = '#930000' | |
}; | |
if (color == 1) { | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= 6) { | |
_0xf774x38.fillStyle = '#002908' | |
}; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= 4 && _0xf774x60[_0xf774x44][_0xf774x3f][1] < 6) { | |
_0xf774x38.fillStyle = '#0a4500' | |
}; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][0] <= _0xf774x69) { | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= 6) { | |
_0xf774x38.fillStyle = '#2e0000' | |
}; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][1] >= 4 && _0xf774x60[_0xf774x44][_0xf774x3f][1] < 6) { | |
_0xf774x38.fillStyle = '#610000' | |
} | |
} | |
} | |
}; | |
_0xf774x68 = (_0xf774xf / 100) * (_0xf774x60[_0xf774x44][_0xf774x3f][1] / (_0xf774x46 / 100)); | |
_0xf774x38.fillRect(_0xf774xf * ((_0xf774x45 - 1) - _0xf774x44), $(_0xf774x37).height() - (_0xf774x10 * (_0xf774x66 - _0xf774x3f)), _0xf774x68 - ((_0xf774x68 / 100) * 10), _0xf774x10 - (_0xf774x10 / 100)); | |
_0xf774x41.hp = $(_0xf774x37).height() - (_0xf774x10 * (_0xf774x66 - _0xf774x3f)); | |
_0xf774x41.hh = _0xf774x10; | |
_0xf774x41.wp = _0xf774xf * ((_0xf774x45 - 1) - _0xf774x44); | |
_0xf774x41.ww = (_0xf774xf / 100) * (_0xf774x46 / (_0xf774x46 / 100)); | |
if (_0xf774x2d.lincen(_0xf774x41) || (_0xf774x2c == _0xf774x60[_0xf774x44][_0xf774x3f][0])) { | |
var _0xf774x6a = _0xf774x60[_0xf774x44][_0xf774x3f][0]; | |
_0xf774x38.fillStyle = 'rgba(0, 33, 56, 0.61)'; | |
_0xf774x38.fillRect((_0xf774xf * ((_0xf774x45 - 1) - _0xf774x44)) + _0xf774x41.ww - 1, _0xf774x41.hp + (_0xf774x41.hh / 2) - 20, _0xf774x6a.length * 10, 20); | |
_0xf774x38.fillStyle = 'rgba(86, 176, 104, 1)'; | |
if (_0xf774x60[_0xf774x44][_0xf774x3f][0] <= _0xf774x69) { | |
_0xf774x38.fillStyle = 'rgba(210, 59, 59, 1)' | |
}; | |
_0xf774x38.fillRect((_0xf774xf * ((_0xf774x45 - 1) - _0xf774x44)) + _0xf774x41.ww - 1, _0xf774x41.hp + (_0xf774x41.hh / 2) - 40, String(_0xf774x60[_0xf774x44][_0xf774x3f][1]).length * 15, 20); | |
_0xf774x38.beginPath(); | |
_0xf774x38.strokeStyle = '#fff'; | |
_0xf774x38.moveTo(_0xf774x41.wp, _0xf774x41.hp + (_0xf774x10 / 2)); | |
_0xf774x38.lineTo(_0xf774x41.wp + _0xf774x41.ww, _0xf774x41.hp + (_0xf774x10 / 2)); | |
_0xf774x38.stroke(); | |
_0xf774x38.fillStyle = '#fff'; | |
_0xf774x38.font = '14px Verdana'; | |
if (odinak > 0) { | |
_0xf774x2c = _0xf774x6a | |
}; | |
_0xf774x38.fillText(_0xf774x6a, (_0xf774xf * ((_0xf774x45 - 1) - _0xf774x44)) + _0xf774x41.ww, _0xf774x41.hp + (_0xf774x41.hh / 2) - 5); | |
_0xf774x38.fillText(_0xf774x60[_0xf774x44][_0xf774x3f][1], (_0xf774xf * ((_0xf774x45 - 1) - _0xf774x44)) + _0xf774x41.ww, _0xf774x41.hp + (_0xf774x41.hh / 2) - 25) | |
} | |
}; | |
x = X_price[_0xf774x44]; | |
y = Y_price[_0xf774x44]; | |
if (max_obj == 1) { | |
if (max_obj_color == 1) { | |
_0xf774x38.fillStyle = color_text | |
} else { | |
_0xf774x38.fillStyle = '#ffffff' | |
}; | |
_0xf774x54 = _0xf774x54.slice(obrez, 12); | |
_0xf774x38.font = max_size + 'px Verdana'; | |
_0xf774x38.fillText(_0xf774x54, x, y - (vremya_size * 2.2)); | |
_0xf774x38.fillText(_0xf774x53, x + (_0xf774x41.ww / 3), y - (parseFloat(vremya_size) + parseFloat(max_size) * 2.3)) | |
}; | |
if (strelki_procent == 1) { | |
_0xf774x38.fillStyle = color_text; | |
var _0xf774x6b = '⬈', | |
_0xf774x6c = '⬊', | |
_0xf774x6d = '⬍'; | |
procent_rassh = (max_p_find * 100 / _0xf774x55); | |
procent_rassh = parseFloat(procent_rassh.toFixed()); | |
_0xf774x38.font = str_min_size + 'px Verdana'; | |
if (fon_svecha[_0xf774x44] == 'red') { | |
if (procent_rassh < 50) { | |
_0xf774x56 = 'down' | |
} else { | |
if (procent_rassh > 50) { | |
_0xf774x56 = 'down' | |
} else { | |
if (procent_rassh = 50) { | |
_0xf774x56 = '0' | |
} | |
} | |
}; | |
procent_rassh = 100 - procent_rassh | |
}; | |
if (fon_svecha[_0xf774x44] == 'green') { | |
if (procent_rassh < 50) { | |
_0xf774x56 = 'up' | |
} else { | |
if (procent_rassh > 50) { | |
_0xf774x56 = 'up' | |
} else { | |
if (procent_rassh = 50) { | |
_0xf774x56 = '0' | |
} | |
} | |
} | |
}; | |
if (fon_svecha[_0xf774x44] == 'grey') { | |
if (procent_rassh < 50) { | |
_0xf774x56 = '0' | |
} else { | |
if (procent_rassh > 50) { | |
_0xf774x56 = '0' | |
} else { | |
if (procent_rassh = 50) { | |
_0xf774x56 = '0' | |
} | |
} | |
} | |
}; | |
if (_0xf774x56 == 'up') { | |
_0xf774x38.fillText(_0xf774x6b + procent_rassh, x + (_0xf774x41.ww / 4), y - (parseFloat(max_size) + parseFloat(vremya_size) + parseFloat(max_size) * 2.4)); | |
rash_up = procent_rassh; | |
rash_down = 100 - procent_rassh | |
} else { | |
if (_0xf774x56 == 'down') { | |
_0xf774x38.fillText(_0xf774x6c + procent_rassh, x + (_0xf774x41.ww / 4), y - (parseFloat(max_size) + parseFloat(vremya_size) + parseFloat(max_size) * 2.4)); | |
rash_up = 100 - procent_rassh; | |
rash_down = procent_rassh | |
} else { | |
if (_0xf774x56 == '0') { | |
_0xf774x38.fillText(_0xf774x6d + procent_rassh, x + (_0xf774x41.ww / 4), y - (parseFloat(max_size) + parseFloat(vremya_size) + parseFloat(max_size) * 2.4)); | |
rash_up = procent_rassh; | |
rash_down = procent_rassh | |
} | |
} | |
}; | |
po_up = 2; | |
po_down = 1 | |
}; | |
if (Strelki_On == 1) { | |
if (_0xf774x44 == 1) { | |
var _0xf774x6e = ($(_0xf774x37).width() / 2); | |
var _0xf774x6f = ($(_0xf774x37).height() / 10); | |
var _0xf774x70 = _0xf774x6e, | |
_0xf774x71 = _0xf774x6f; | |
arrow_down_x = _0xf774x6e, arrow_down_y = _0xf774x6f + 330; | |
_0xf774x38.font = ur_str_size + 'px Verdana'; | |
if (color_text == '#d75c48') { | |
ArrowDraw(_0xf774x38, 'up', _0xf774x70, _0xf774x71, 150, 150, 'green', 1, 'str'); | |
ArrowDraw(_0xf774x38, 'down', arrow_down_x, arrow_down_y, 150, 150, 'red', 1, 'fill'); | |
_0xf774x38.fillText(_0xf774x69, _0xf774x70 + 30, arrow_down_y / 1.6); | |
if (strelki_procent == 1) { | |
_0xf774x38.fillStyle = '#fff'; | |
_0xf774x38.fillText(rash_down + '%', _0xf774x70 + 50, arrow_down_y / po_up * 1.5); | |
_0xf774x38.fillText(rash_up + '%', _0xf774x70 + 50, arrow_down_y / po_up) | |
} | |
} else { | |
if (color_text == '#008f1d') { | |
ArrowDraw(_0xf774x38, 'up', _0xf774x70, _0xf774x71, 150, 150, 'green', 1, 'fill'); | |
ArrowDraw(_0xf774x38, 'down', arrow_down_x, arrow_down_y, 150, 150, 'red', 1, 'str'); | |
_0xf774x38.fillText(_0xf774x69, _0xf774x70 + 30, arrow_down_y / 1.6); | |
if (strelki_procent == 1) { | |
_0xf774x38.fillStyle = '#fff'; | |
_0xf774x38.fillText(rash_down + '%', _0xf774x70 + 50, arrow_down_y / po_up * 1.5); | |
_0xf774x38.fillText(rash_up + '%', _0xf774x70 + 50, arrow_down_y / po_up) | |
} | |
} else { | |
if (color_text == '#ffffff') { | |
ArrowDraw(_0xf774x38, 'up', _0xf774x70, _0xf774x71, 150, 150, 'green', 1, 'str'); | |
ArrowDraw(_0xf774x38, 'down', arrow_down_x, arrow_down_y, 150, 150, 'red', 1, 'str'); | |
_0xf774x38.fillText((_0xf774x69 + ' закр. на макс. объёме'), _0xf774x70 + 30, arrow_down_y / 1.6); | |
if (strelki_procent == 1) { | |
_0xf774x38.fillStyle = '#fff'; | |
_0xf774x38.fillText(rash_down + '%', _0xf774x70 + 50, arrow_down_y / po_up * 1.5); | |
_0xf774x38.fillText(rash_up + '%', _0xf774x70 + 50, arrow_down_y / po_up) | |
} | |
} | |
} | |
} | |
} | |
} | |
}; | |
if ($('.preload').is(':visible')) { | |
console.log('загрузка завершена'); | |
$('.preload').hide('fade') | |
} | |
}; | |
this.soc = function (_0xf774x72 = 'EURUSD', _0xf774x45 = 60) { | |
if (window.location.hostname.length !== _0xf774x32.length) { | |
return | |
}; | |
console.log('Загрузка данных'); | |
$('.preload').show('fade'); | |
if ($('#' + $('#pair').attr('val').replace(/[/]/g, '_')).attr('data') !== _0xf774x34 || !_0xf774x2e) { | |
_0xf774x34 = $('#' + $('#pair').attr('val').replace(/[/]/g, '_')).attr('data'); | |
if (_0xf774x2e) { | |
_0xf774x2e.close() | |
}; | |
if (_0xf774x34 == 'OlympTrade') { | |
console.log('OlympTrade'); | |
_0xf774x2e = new WebSocket('wss://olymptrade.com/ds/v4') | |
}; | |
if (_0xf774x34 == 'Binary') { | |
console.log('Binary'); | |
_0xf774x2e = new WebSocket('wss://blue.binaryws.com/websockets/v3?app_id=1&l=RU') | |
}; | |
if (_0xf774x34 == 'Binomo') { | |
console.log('Binomo'); | |
_0xf774x2e = new WebSocket('wss://as.binomo.com/') | |
}; | |
_0xf774x2e.onopen = function () { | |
if (_0xf774x34 == 'OlympTrade') { | |
send_olymp = '[{"t":2,"e":4,"d":[{"p":"' + _0xf774x72 + '","tf":' + _0xf774x45 + '}]}]'; | |
_0xf774x2e.send(send_olymp) | |
}; | |
if (_0xf774x34 == 'Binary') { | |
_0xf774x2e.send('{"ticks_history":"' + _0xf774x72 + '","style":"ticks","end":"latest","count":20,"subscribe":1,"req_id":1,"passthrough":{}}') | |
}; | |
if (_0xf774x34 == 'Binomo') { | |
_0xf774x2e.send('subscribe:' + _0xf774x72) | |
} | |
}; | |
_0xf774x2e.onclose = function () { | |
console.log('Connection closed...'); | |
_0xf774x2d.soc($('#pair').attr('val'), $('#size').val()) | |
}; | |
_0xf774x2e.onmessage = function (_0xf774x73) { | |
temppp = (JSON.parse(_0xf774x73.data)); | |
if (_0xf774x34 == 'Binomo') { | |
if (temppp.data[0].assets && temppp.data[0].assets[0].created_at) { | |
timer_temp = temppp.data[0].assets[0].created_at; | |
timer_test = new Date(timer_temp); | |
timer_glob_hour = timer_test.getHours(); | |
timer_glob_min = timer_test.getMinutes(); | |
timer_glob_sec = timer_test.getSeconds(); | |
kotirovka = temppp.data[0].assets[0].rate; | |
if (onetiksec_on == 1) { | |
if (prohod == 0) { | |
prohod = 1; | |
temp_data_t0 = _0xf774x73.data; | |
timer_glob_hour_t0 = timer_test.getHours(); | |
timer_glob_min_t0 = timer_test.getMinutes(); | |
timer_glob_sec_t0 = timer_test.getSeconds(); | |
kotirovka_t0 = temppp.data[0].assets[0].rate | |
} else { | |
if (prohod == 1) { | |
prohod = 0; | |
temp_data_t1 = _0xf774x73.data; | |
timer_glob_hour_t1 = timer_test.getHours(); | |
timer_glob_min_t1 = timer_test.getMinutes(); | |
timer_glob_sec_t1 = timer_test.getSeconds(); | |
kotirovka_t1 = temppp.data[0].assets[0].rate | |
} | |
}; | |
if (timer_glob_sec_temp != timer_test.getSeconds()) { | |
timer_glob_sec_temp = timer_test.getSeconds(); | |
if (prohod == 1) { | |
_0xf774x2d.predobrdata(temp_data_t0) | |
} else { | |
if (prohod == 0) { | |
_0xf774x2d.predobrdata(temp_data_t1) | |
} | |
} | |
} | |
} else { | |
_0xf774x2d.predobrdata(_0xf774x73.data) | |
} | |
} | |
} else { | |
if (_0xf774x34 == 'Binary') { | |
if (temppp.tick && temppp.tick.quote) { | |
timer_temp = (temppp.tick.epoch * 1000); | |
timer_test = new Date(timer_temp); | |
timer_glob_hour = timer_test.getHours(); | |
timer_glob_min = timer_test.getMinutes(); | |
timer_glob_sec = timer_test.getSeconds(); | |
kotirovka = temppp.tick.quote; | |
if (onetiksec_on == 1) { | |
if (prohod == 0) { | |
prohod = 1; | |
temp_data_t0 = _0xf774x73.data; | |
timer_glob_hour_t0 = timer_test.getHours(); | |
timer_glob_min_t0 = timer_test.getMinutes(); | |
timer_glob_sec_t0 = timer_test.getSeconds(); | |
kotirovka_t0 = temppp.tick.quote | |
} else { | |
if (prohod == 1) { | |
prohod = 0; | |
temp_data_t1 = _0xf774x73.data; | |
timer_glob_hour_t1 = timer_test.getHours(); | |
timer_glob_min_t1 = timer_test.getMinutes(); | |
timer_glob_sec_t1 = timer_test.getSeconds(); | |
kotirovka_t1 = temppp.tick.quote | |
} | |
}; | |
if (timer_glob_sec_temp != timer_test.getSeconds()) { | |
timer_glob_sec_temp = timer_test.getSeconds(); | |
if (prohod == 1) { | |
_0xf774x2d.predobrdata(temp_data_t0) | |
} else { | |
if (prohod == 0) { | |
_0xf774x2d.predobrdata(temp_data_t1) | |
} | |
} | |
} | |
} else { | |
_0xf774x2d.predobrdata(_0xf774x73.data) | |
} | |
} | |
} | |
}; | |
document.getElementById('tik').setAttribute('value', kotirovka) | |
} | |
} else { | |
if (_0xf774x34 == 'OlympTrade' && _0xf774x2e) { | |
if (!uuid) { | |
uuid = (Date.now().toString(36) + Math.random().toString(36).substr(2, 12)).toUpperCase() | |
}; | |
if (sub_uid === 'undefined') { | |
if (_0xf774x2e.readyState === WebSocket.OPEN) { | |
_0xf774x2e.close(); | |
_0xf774x2e = new WebSocket('wss://olymptrade.com/ds/v4') | |
}; | |
_0xf774x2e.onopen = function () { | |
send_olymp = '[{"t":2,"e":4,"d":[{"p":"' + _0xf774x72 + '","tf":' + _0xf774x45 + '}]}]'; | |
_0xf774x2e.send(send_olymp) | |
} | |
} else { | |
send_sub_uid = '[{"t":2,"e":5,"uuid":"' + uuid + '","d":[{"sub_uid":"' + sub_uid + '"}]}]'; | |
_0xf774x2e.send(send_sub_uid); | |
send_olymp = '[{"t":2,"e":4,"uuid":"' + uuid + '","d":[{"p":"' + _0xf774x72 + '","tf":' + _0xf774x45 + '}]}]'; | |
_0xf774x2e.send(send_olymp) | |
} | |
}; | |
if (_0xf774x34 == 'Binary') { | |
_0xf774x2e.send('{"forget_all":["ticks","candles"],"passthrough":{}}'); | |
_0xf774x2e.send('{"ticks_history":"' + _0xf774x72 + '","style":"ticks","end":"latest","count":20,"subscribe":1,"req_id":1,"passthrough":{}}') | |
}; | |
if (_0xf774x34 == 'Binomo') { | |
console.log('Binomo22'); | |
if (sub_bin == 'undefined') { | |
if (_0xf774x2e.readyState === WebSocket.OPEN) { | |
_0xf774x2e.close(); | |
_0xf774x2e = new WebSocket('wss://as.binomo.com/') | |
}; | |
_0xf774x2e.onopen = function () { | |
_0xf774x2e.send('subscribe:' + _0xf774x72); | |
console.log('subscribe:' + _0xf774x72) | |
} | |
} else { | |
_0xf774x2e.send('unsubscribe:' + _0xf774x2d.data.pair); | |
console.log('unsubscribe:' + _0xf774x2d.data.pair); | |
_0xf774x2e.send('subscribe:' + _0xf774x72); | |
console.log('subscribe:' + _0xf774x72) | |
} | |
}; | |
_0xf774x36 = 0 | |
} | |
}; | |
this.predobrdata = function (_0xf774x4d) { | |
var _0xf774x4d = JSON.parse(_0xf774x4d); | |
uuid = (Date.now().toString(36) + Math.random().toString(36).substr(2, 12)).toUpperCase(); | |
if (_0xf774x34 == 'OlympTrade') { | |
sub_bin = 'undefined'; | |
var _0xf774x74 = {}, | |
_0xf774x48; | |
if (_0xf774x35 == 0 && _0xf774x4d[5]) { | |
if (_0xf774x35 == 0 && _0xf774x4d[5].e == 4) { | |
sub_uid = _0xf774x4d[5].d[0].sub_uid | |
} | |
} else { | |
if (_0xf774x4d[0].d[0].sub_uid) { | |
sub_uid = _0xf774x4d[0].d[0].sub_uid | |
} else { | |
if (_0xf774x4d[5]) { | |
if (_0xf774x4d[5].e == 4) { | |
if (_0xf774x4d[5].d[0]) { | |
sub_uid = _0xf774x4d[5].d[0].sub_uid | |
} | |
} | |
} | |
} | |
}; | |
if (_0xf774x35 == 0 && _0xf774x4d[0].e == 1) { | |
_0xf774x35 = _0xf774x4d[0].d[0].q | |
}; | |
if (_0xf774x4d[0].d) { | |
if (_0xf774x35 == _0xf774x4d[0].d[0].close) { | |
_0xf774x36++ | |
} | |
}; | |
if (_0xf774x4d[0].e == 1) { | |
_0xf774x4d = _0xf774x4d[0].d[0]; | |
_0xf774x48 = _0xf774x4d.t; | |
test_time = new Date(_0xf774x48 * 1000); | |
glob_hour = test_time.getHours(); | |
glob_min = test_time.getMinutes(); | |
glob_sec = test_time.getSeconds(); | |
if (_0xf774x2f == true) { | |
_0xf774x74.pair = _0xf774x4d.p; | |
_0xf774x74.time = +_0xf774x48; | |
_0xf774x74.open = +_0xf774x4d.q; | |
_0xf774x74.low = +_0xf774x4d.q; | |
_0xf774x74.high = +_0xf774x4d.q; | |
_0xf774x74.close = +_0xf774x4d.q | |
} else { | |
if (_0xf774x2f == false) { | |
_0xf774x74.barsize = +$('#size').val(); | |
_0xf774x74.data = []; | |
_0xf774x74.pair = _0xf774x4d.p; | |
var _0xf774x75 = {}; | |
_0xf774x75.pair = _0xf774x4d.p; | |
_0xf774x75.time = _0xf774x48 - (_0xf774x48 % $('#size').val()); | |
_0xf774x75.open = +_0xf774x4d.q; | |
_0xf774x75.low = +_0xf774x4d.q; | |
_0xf774x75.high = +_0xf774x4d.q; | |
_0xf774x75.close = +_0xf774x4d.q; | |
for (var _0xf774x44 = 0; _0xf774x44 < 72; _0xf774x44++) { | |
_0xf774x74.data.push(_0xf774x75); | |
_0xf774x75.time = _0xf774x48 - $('#size').val() | |
} | |
} | |
} | |
}; | |
_0xf774x2d.obr(_0xf774x74) | |
}; | |
if (_0xf774x34 == 'Binary') { | |
sub_bin = 'undefined'; | |
var _0xf774x74 = {}, | |
_0xf774x48; | |
if (_0xf774x35 == 0 && _0xf774x4d.tick) { | |
_0xf774x35 = _0xf774x4d.tick.quote | |
}; | |
if (_0xf774x4d.tick) { | |
if (_0xf774x35 == _0xf774x4d.tick.quote) { | |
_0xf774x36++ | |
} | |
}; | |
if (_0xf774x4d.tick) { | |
_0xf774x4d = _0xf774x4d.tick; | |
_0xf774x48 = _0xf774x4d.epoch; | |
if (okrugl_on == 1) { | |
num = _0xf774x4d.quote; | |
KF = Math.pow(10, okrugl); | |
_0xf774x4d.quote = Math.trunc(num * KF) / KF | |
}; | |
test_time = new Date(_0xf774x48 * 1000); | |
glob_hour = test_time.getHours(); | |
glob_min = test_time.getMinutes(); | |
glob_sec = test_time.getSeconds(); | |
if (_0xf774x2f == true) { | |
_0xf774x74.pair = _0xf774x4d.symbol; | |
_0xf774x74.time = +_0xf774x48; | |
_0xf774x74.open = +_0xf774x4d.quote; | |
_0xf774x74.low = +_0xf774x4d.quote; | |
_0xf774x74.high = +_0xf774x4d.quote; | |
_0xf774x74.close = +_0xf774x4d.quote | |
} else { | |
if (_0xf774x2f == false) { | |
_0xf774x74.barsize = +$('#size').val(); | |
_0xf774x74.data = []; | |
_0xf774x74.pair = _0xf774x4d.symbol; | |
var _0xf774x75 = {}; | |
_0xf774x75.pair = _0xf774x4d.symbol; | |
_0xf774x75.time = _0xf774x48 - (_0xf774x48 % $('#size').val()); | |
_0xf774x75.open = +_0xf774x4d.quote; | |
_0xf774x75.low = +_0xf774x4d.quote; | |
_0xf774x75.high = +_0xf774x4d.quote; | |
_0xf774x75.close = +_0xf774x4d.quote; | |
for (var _0xf774x44 = 0; _0xf774x44 < 72; _0xf774x44++) { | |
_0xf774x74.data.push(_0xf774x75); | |
_0xf774x75.time = _0xf774x48 - $('#size').val() | |
} | |
} | |
} | |
}; | |
_0xf774x2d.obr(_0xf774x74) | |
}; | |
if (_0xf774x34 == 'Binomo') { | |
sub_uid = 'undefined'; | |
sub_bin = 0; | |
var _0xf774x74 = {}, | |
_0xf774x48; | |
if (_0xf774x35 == 0 && _0xf774x4d.data[0].action) { | |
if (_0xf774x4d.data[0].action == 'subscribe') { | |
sub_bin = 123 | |
} | |
}; | |
if (_0xf774x35 == 0 && _0xf774x4d.data[0].assets) { | |
_0xf774x35 = _0xf774x4d.data[0].assets[0].rate | |
}; | |
if (_0xf774x4d.data[0].assets) { | |
if (_0xf774x35 == _0xf774x4d.data[0].assets[0].rate) { | |
_0xf774x36++ | |
} | |
}; | |
if (_0xf774x4d.errors[0]) { | |
_0xf774x74 = { | |
"servertime": 1234567890 | |
} | |
} else { | |
if (_0xf774x4d.data[0].assets) { | |
_0xf774x4d = _0xf774x4d.data[0].assets[0]; | |
if (okrugl_on == 1) { | |
num = _0xf774x4d.rate; | |
KF = Math.pow(10, okrugl); | |
_0xf774x4d.rate = Math.trunc(num * KF) / KF | |
}; | |
_0xf774x48 = String(Date.parse(_0xf774x4d.created_at)); | |
tim_00 = (Date.parse(_0xf774x4d.created_at)); | |
test_time = new Date(tim_00); | |
glob_sec = test_time.getSeconds(); | |
glob_min = test_time.getMinutes(); | |
glob_hour = test_time.getHours(); | |
_0xf774x48 = Number(_0xf774x48.substring(0, _0xf774x48.length - 3)); | |
if (_0xf774x2f == true) { | |
_0xf774x74.pair = _0xf774x4d.ric; | |
_0xf774x74.time = +_0xf774x48; | |
_0xf774x74.open = +_0xf774x4d.rate; | |
_0xf774x74.low = +_0xf774x4d.rate; | |
_0xf774x74.high = +_0xf774x4d.rate; | |
_0xf774x74.close = +_0xf774x4d.rate | |
} else { | |
if (_0xf774x2f == false) { | |
_0xf774x74.barsize = +$('#size').val(); | |
_0xf774x74.data = []; | |
_0xf774x74.pair = _0xf774x4d.ric; | |
var _0xf774x75 = {}; | |
_0xf774x75.pair = _0xf774x4d.ric; | |
_0xf774x75.time = _0xf774x48 - (_0xf774x48 % $('#size').val()); | |
_0xf774x75.open = +_0xf774x4d.rate; | |
_0xf774x75.low = +_0xf774x4d.rate; | |
_0xf774x75.high = +_0xf774x4d.rate; | |
_0xf774x75.close = +_0xf774x4d.rate; | |
for (var _0xf774x44 = 0; _0xf774x44 < 72; _0xf774x44++) { | |
_0xf774x74.data.push(_0xf774x75); | |
_0xf774x75.time = _0xf774x48 - $('#size').val() | |
} | |
} | |
} | |
} | |
}; | |
_0xf774x2d.obr(_0xf774x74) | |
}; | |
Menu() | |
}; | |
this.indi = function () { | |
if (!_0xf774x2d.data) { | |
return | |
}; | |
if (window.location.hostname.length !== _0xf774x32.length) { | |
return | |
}; | |
var _0xf774x4d = _0xf774x2d.data.data; | |
if (!_0xf774x4d[0].tick) { | |
return | |
}; | |
var _0xf774x45 = $('#period').val(), | |
_0xf774x5c = [], | |
_0xf774x76 = 0, | |
_0xf774x5d = []; | |
for (var _0xf774x44 = 0; _0xf774x44 < _0xf774x45; _0xf774x44++) { | |
if (!_0xf774x4d[_0xf774x44].tick) { | |
break | |
}; | |
for (var _0xf774x3f = 0; _0xf774x3f < _0xf774x4d[_0xf774x44].tick.length; _0xf774x3f++) { | |
if (!_0xf774x5c[_0xf774x4d[_0xf774x44].tick[_0xf774x3f].close]) { | |
_0xf774x5c[_0xf774x4d[_0xf774x44].tick[_0xf774x3f].close] = 1 | |
} else { | |
_0xf774x5c[_0xf774x4d[_0xf774x44].tick[_0xf774x3f].close]++ | |
} | |
} | |
}; | |
for (var _0xf774x62 in _0xf774x5c) { | |
if (_0xf774x5c[_0xf774x62] > _0xf774x76) { | |
_0xf774x76 = _0xf774x5c[_0xf774x62] | |
}; | |
_0xf774x5d.push([_0xf774x62, _0xf774x5c[_0xf774x62]]) | |
}; | |
var _0xf774x61 = _0xf774x5d.length, | |
_0xf774x5f, _0xf774x3d = []; | |
for (var _0xf774x44 = 0; _0xf774x44 < _0xf774x61; _0xf774x44++) { | |
if (Number(_0xf774x5d[_0xf774x44][0]) > 0) { | |
_0xf774x5f = _0xf774x44; | |
ky = _0xf774x5d[_0xf774x44][0]; | |
for (var _0xf774x3f = 0; _0xf774x3f < _0xf774x61; _0xf774x3f++) { | |
if (Number(_0xf774x5d[_0xf774x3f][0]) > ky) { | |
ky = _0xf774x5d[_0xf774x3f][0]; | |
_0xf774x5f = _0xf774x3f; | |
if (_0xf774x44 > 0) { | |
_0xf774x44-- | |
} | |
} | |
}; | |
_0xf774x3d.push([ky, _0xf774x5d[_0xf774x5f][1]]); | |
_0xf774x5d[_0xf774x5f][0] = 0 | |
} | |
}; | |
_0xf774x38.clearRect(0, 0, $(_0xf774x37).width(), $(_0xf774x37).height()); | |
_0xf774x2d.risv(_0xf774x3d, _0xf774x76); | |
_0xf774x2d.risg(_0xf774x4d); | |
_0xf774x2d.rish(_0xf774x4d) | |
}; | |
if (window.location.hostname.length !== _0xf774x32.length) { | |
return | |
}; | |
this.obr = function (_0xf774x4d) { | |
_0xf774x2c = 0; | |
if ($('.preload').is(':visible')) {}; | |
if (_0xf774x4d.servertime) { | |
_0xf774x31++ | |
}; | |
if (_0xf774x4d.time) { | |
_0xf774x31 = 0; | |
var _0xf774x3c = _0xf774x4d.time % _0xf774x2d.data.barsize; | |
if (_0xf774x3c == 0 || Math.floor(_0xf774x4d.time / _0xf774x2d.data.barsize) > Math.floor(_0xf774x2d.data.data[0].time / _0xf774x2d.data.barsize)) { | |
if (_0xf774x4d.time > _0xf774x30) { | |
_0xf774x30 = _0xf774x4d.time + 10; | |
_0xf774x2d.data.data.unshift(_0xf774x4d); | |
localStorage.setItem('data', JSON.stringify(_0xf774x2d.data)) | |
} | |
} else { | |
if (_0xf774x4d.close) { | |
_0xf774x31 = 0; | |
if (_0xf774x2d.data.data[0].high < _0xf774x4d.high) { | |
_0xf774x2d.data.data[0].high = _0xf774x4d.high | |
}; | |
if (_0xf774x2d.data.data[0].low > _0xf774x4d.low) { | |
_0xf774x2d.data.data[0].low = _0xf774x4d.low | |
}; | |
document.getElementById('tikokrugl').setAttribute('value', _0xf774x2d.data.data[0].close); | |
if (_0xf774x2d.data.data[0].close != _0xf774x4d.close) { | |
_0xf774x2d.data.data[0].close = _0xf774x4d.close; | |
if (!_0xf774x2d.data.data[0].tick) { | |
_0xf774x2d.data.data[0].tick = []; | |
_0xf774x2d.data.data[0].tick.push(_0xf774x4d) | |
} else { | |
_0xf774x2d.data.data[0].tick.unshift(_0xf774x4d) | |
} | |
} | |
} | |
}; | |
requestAnimationFrame(_0xf774x2d.indi) | |
} else { | |
if (_0xf774x4d.data) { | |
if (!_0xf774x2f) { | |
var _0xf774x77 = JSON.parse(localStorage.getItem('data')); | |
if (_0xf774x77) { | |
if (_0xf774x77.pair == _0xf774x4d.pair && _0xf774x77.barsize == _0xf774x4d.barsize) { | |
_0xf774x2d.data = _0xf774x77 | |
} else { | |
_0xf774x2d.data = _0xf774x4d | |
} | |
} else { | |
_0xf774x2d.data = _0xf774x4d | |
}; | |
_0xf774x2f = true | |
} | |
} | |
}; | |
if (_0xf774x31 > 2 || _0xf774x36 > 20) { | |
var _0xf774x10 = $(_0xf774x37).height(), | |
_0xf774xf = $(_0xf774x37).width(); | |
_0xf774x38.clearRect(0, 0, _0xf774xf, _0xf774x10); | |
_0xf774x38.strokeStyle = '#fff'; | |
_0xf774x38.font = ((_0xf774xf / 100) * 4) + 'px Verdana'; | |
var _0xf774x78 = 'Котировки ' + $('#pair').text() + ' недоступны'; | |
_0xf774x38.strokeText(_0xf774x78, (_0xf774xf / _0xf774x78.length) * 4, _0xf774x10 / 2); | |
_0xf774x35 = 0; | |
_0xf774x36 = 0; | |
if ($('.preload').is(':visible')) { | |
console.log('preload4'); | |
$('.preload').hide('fade') | |
} | |
} | |
}; | |
this.pairchange = function () { | |
_0xf774x2f = false; | |
var _0xf774x79 = 0; | |
if (_0xf774x39.aff) { | |
_0xf774x79 = _0xf774x39.aff | |
}; | |
var _0xf774x74 = { | |
aff: _0xf774x79, | |
pair: $('#pair').attr('val'), | |
period: $('#period').val(), | |
size: $('#size').val(), | |
date: _0xf774x39.date | |
}; | |
_0xf774x31 = 0; | |
localStorage.setItem('dsav', JSON.stringify(_0xf774x74)); | |
_0xf774x2d.soc($('#pair').attr('val'), $('#size').val()) | |
}; | |
$('#size').change(function () { | |
_0xf774x2d.pairchange() | |
}); | |
$('#pair').click(function () { | |
if (!$('.divscrol').is(':visible')) { | |
$('.divscrol').show('blind') | |
} else { | |
$('.divscrol').hide('blind') | |
} | |
}); | |
$('#valx').click(function () { | |
if ($('.divscrol').is(':visible')) { | |
$('.divscrol').hide('blind') | |
} | |
}); | |
$('.sels').click(function () { | |
if ($(this).attr('val') !== $('#pair').attr('val')) { | |
$('#pair').attr('val', $(this).attr('val')); | |
$('#pair').html($(this).html()); | |
_0xf774x2d.pairchange() | |
}; | |
$('.divscrol').hide('blind') | |
}); | |
$('#period').change(function () { | |
if ($(this).val() < 2) { | |
$(this).val(2) | |
}; | |
if ($(this).val() > 72) { | |
$(this).val(72) | |
}; | |
var _0xf774x79 = 0; | |
if (_0xf774x39.aff) { | |
_0xf774x79 = _0xf774x39.aff | |
}; | |
var _0xf774x74 = { | |
aff: _0xf774x79, | |
pair: $('#pair').attr('val'), | |
period: $('#period').val(), | |
size: $('#size').val(), | |
date: _0xf774x39.date | |
}; | |
localStorage.setItem('dsav', JSON.stringify(_0xf774x74)) | |
}); | |
_0xf774x39 = JSON.parse(localStorage.getItem('dsav')); | |
var _0xf774x7a = new Date(); | |
_0xf774x7a = _0xf774x7a.getTime(); | |
if (_0xf774x39) { | |
if (_0xf774x39.pair) { | |
$('#pair').attr('val', _0xf774x39.pair); | |
$('#pair').html($('#' + _0xf774x39.pair.replace(/[/]/g, '_')).html()) | |
}; | |
if (_0xf774x39.period) { | |
$('#period').val(_0xf774x39.period) | |
}; | |
if (_0xf774x39.size) { | |
$('#size>option:eq(2)').removeAttr('selected'); | |
$('#' + _0xf774x39.size).attr('selected', 'selected') | |
} | |
} else { | |
var _0xf774x74 = { | |
aff: 'null', | |
pair: $('#pair').val(), | |
period: $('#period').val(), | |
size: $('#size').val(), | |
date: _0xf774x7a | |
}; | |
localStorage.setItem('dsav', JSON.stringify(_0xf774x74)); | |
_0xf774x39 = _0xf774x74 | |
}; | |
var _0xf774x7b = document.createElement('a'); | |
_0xf774x7b.setAttribute('href', 'https://t.me/VA_MOD'); | |
var _0xf774x7c = document.createElement('LABEL'); | |
var _0xf774x7d = document.createElement('img'); | |
_0xf774x7d.setAttribute('src', 'https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Telegram_logo.svg/80px-Telegram_logo.svg.png'); | |
_0xf774x7d.style.position = 'absolute'; | |
_0xf774x7d.style.bottom = '90px'; | |
_0xf774x7d.style.right = '25px'; | |
_0xf774x7d.style.height = '30px'; | |
_0xf774x7d.style.width = '30px'; | |
_0xf774x7b.appendChild(_0xf774x7d); | |
_0xf774x7c.textContent = ' Ver 7.3.8 '; | |
_0xf774x7c.style.right = '15px'; | |
_0xf774x7c.style.bottom = '5px'; | |
_0xf774x7c.style.position = 'absolute'; | |
_0xf774x7b.appendChild(_0xf774x7c); | |
_0xf774x7d.setAttribute('title', 'Группа для обсуждения и загрузки последней версии'); | |
document.body.appendChild(_0xf774x7b); | |
var _0xf774x7e = document.createElement('a'); | |
_0xf774x7e.setAttribute('href', 'qiwi.com/n/MRDIV'); | |
var _0xf774x7f = document.createElement('img'); | |
_0xf774x7f.setAttribute('src', 'https://static.qiwi.com/img/qiwi_com/header/qiwi-wallet-logo.svg'); | |
_0xf774x7f.style.position = 'absolute'; | |
_0xf774x7f.style.bottom = '40px'; | |
_0xf774x7f.style.right = '5px'; | |
_0xf774x7f.style.width = '70px'; | |
_0xf774x7f.style.height = '32px'; | |
_0xf774x7e.appendChild(_0xf774x7f); | |
_0xf774x7f.setAttribute('title', 'Окажи помощь в развитии проекта'); | |
document.body.appendChild(_0xf774x7e); | |
if (window.location.hostname.length !== _0xf774x32.length) { | |
return | |
}; | |
_0xf774x2d.soc($('#pair').attr('val'), $('#size').val()) | |
}; | |
window.onload = Sign() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hola, como puede ejecutarse?