<div class="slider">
<div class="img curry" style="display: block">1</div>
<div class="img" style="display: none">2</div>
<div class="img" style="display: none">3</div>
<div class="img" style="display: none">4</div>
<div class="img" style="display: none">5</div>
<div class="img" style="display: none">6</div>
</div>
.img[style],
.img.curry {
display: block;
}
client.pop('games:wait')
client.hgetall('games:wait:' + token)
client.hgetall('account:' + player1)
client.pop('games:wait')
.then((token) => client.hgetall('games:wait:' + token))
.then(({gameInfo: player1}) => client.hgetall('account:' + player1)
.then((accountInfo) => console.log(accountInfo))
.catch((error) => console.error(error));
@media
в CSS, которые автоматически меняют стили в зависимости от ширины экрана.<a href="mailto:info@rekmedia.ru">info@rekmedia.ru</a>
- открывает клиент по умочанию на телефоне иликомпе.<a href="tel:+74953748281" class="teldiv"><span class="telcodediv">(495)</span>374-82-81</ a>
- с компа никто не нажимает номер))), а просто вводят в телефон. А при открытии в планшете просто нажимается номер и попадает в набор ;) $(".popup").outerHeight()//Получить высоту элмента
$(".popup").offset().top//Получить y(top) координату
const arr = [
[ 2, 7, 2 ],
[ 2, 5, 4 ],
[ 2, 1, 5 ],
[ 3, 1, 2 ],
];
const [ val, iRow, iCol ] = arr
.map((n, i) => n.reduce((min, m, j) => min[0] <= m ? min : [ m, i, j ], [ Infinity, -1 ]))
.reduce((min, n) => min[0] <= n[0] ? min : n);
const arr = [
[ 2, 7, 2, [ 5, [ 4, [ 3 ], 2 ] ] ],
[ 2, 5, [ 2, 6, 5, 2 ], 4 ],
[ 2, 1, [ [ [ 9, 0, 1 ], [ [ [ 1 ] ] ], -1 ] ], 5 ],
[ 3, 1, 2 ],
];
const minElemWithIndex = arr =>
arr.reduce((min, n, i) => {
const m = n instanceof Array
? minElemWithIndex(n)
: [ n, [] ];
m[1].unshift(i);
return m[0] < min[0] ? m : min;
}, [ Infinity, [] ]);
const [ val, indices ] = minElemWithIndex(arr);