.nav-profile
задать следующее:position: fixed;
right: 0;
display: inline-block;
float: right
и margin-right: 82px
- вырезать. var
alphabet = 'абвгдеёжзийклмнопрстуфхцчшщъыьэюя',
randomString = '';
while (randomString.length < 6) {
randomString += alphabet[Math.floor(Math.random() * alphabet.length)];
}
console.log(randomString);
lenght
вместо length
(randomSymbol в результате всегда изначально равен 0).;
после условия в цикле while, что делало цикл бесконечным.$arr = [ 'fbb450', 'fff', 'span2', 'AAAAAAAAA!!!!!' ];
$arrHex = preg_grep('/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', $arr);
const classes = {
test1: 'div1',
test2: 'div2'
};
container.innerHTML = response.map(n => `<div class="${classes[n.Title]}"></div>`).join('');
$('.typeahead').typeahead({
minLength: 0,
}, {
name: 'stocks',
displayKey: 'company_name',
source: function(q, sync) {
if (q === '') {
sync(stocks.all());
} else {
stocks.search(q, sync);
}
},
}).on('typeahead:selected', function(event, data) {
$('.typeahead').val(data.code);
});
$("body").on("click", "#mobile-menu a", function() { $wrapper.css({overflow:"auto"}); $("body").removeClass( 'js-nav' ); $( "#slide-out-open" ).removeClass('slide-out-close').addClass('slide-out-open'); return false; });
return false
в конце выглядит подозрительным. Что если его вырезать? промисы же сами по себе асинхронны
if (intval($a1) === 14 || intval($a1) === 12) {
echo ' равно <br>';
} else {
echo ' no равно <br>';
}
if (intval($a1) !== 14 && intval($a1) !== 12) {
echo ' no равно <br>';
} else {
echo ' равно <br>';
}
Если такой возможности нет, поделитесь ссылками на хорошие календари.
constructor({ closable = true }) {
this.isClosable = closable;
}
this.isClosable = props.hasOwnProperty('closable') ? props.closable : true;
this.isClosable = props.closable === undefined ? true : props.closable;
this.isClosable = typeof props.closable !== 'boolean' || props.closable;
var decodedOuter
jwt.verify(token, process.env.SECRET, function(err, decoded) {
decodedOuter = decoded
if (err) {
res.status(401).send({
message: 'Unable to verify email. Probably, your token is expired.'
})
return
}
})
function insert(selector, html, offset) {
var el = document.querySelector(selector);
var text = el.innerText;
el.innerHTML = text.slice(0, offset) + html + text.slice(offset);
}
insert('#text', '<span class="red">###</span>', 15);
<div id="text">0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ</div>
.red {
color: red;
}