var isStreamOnline = false;
, а проверку typeof на 'undefined' - уберите, достаточно одного !isStreamOnline. SELECT
item_id,
I.price * COALESCE(R.rate, 1) price_in_byr
FROM Items AS I
LEFT JOIN Rates AS R ON
I.currency = R.currency AND
R.date = (SELECT MAX(date) FROM Rates WHERE Rates.currency = I.currency)
WHERE
item_id = 5;
$this->dec(...
$this->hex(...
$dec = function() {
...
};
$hex = function() {
...
};
<button>click me</button>
button {
background: green;
}
@keyframes xxx {
0% { background-color: red; }
100% { background-color: transparent; }
}
.xxx {
animation: xxx 2s;
}
$('button').on({
click() {
$(this).addClass('xxx');
},
animationend() {
$(this).removeClass('xxx');
},
});
for (var i = 0; i < 10; i++) {
setTimeout(function() {
alert(+this);
}.bind(i), 100);
}
for (let i = 0; i < 10; i++) {
setTimeout(function() {
alert(i);
}, 100);
}
for (var i = 0; i < 10; i++) {
setTimeout(alert, 100, i);
}
for (var i = 0; i < 10; i++) {
setTimeout(new Function(`alert(${i})`), 100);
}
for (var i = 0; i < 10; i++) {
setTimeout(function() {
alert(i++);
}, 100);
}
i = 0;
$('body').on('click', function(e) {
var
$target = $(e.target),
isMark = $target.hasClass('mark'),
isActive = $target.hasClass('active');
if (!isMark || !isActive) {
$('.mark.active +.tooltip').fadeOut();
$('.mark.active').removeClass('active');
}
if (isMark && !isActive) {
$target.addClass('active');
$('.mark.active +.tooltip').fadeIn();
}
});
он не работает
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole, color);