(await models.User.checkPassword(password));const user = await models.User.findOne({ login });(user.checkPassword(password)); // js
document.getElementById('image').src = res.y;
// jquery
$('#image').attr('src', res.y) .prop('checked', false).trigger('change')var changeTitle = function() {
this.title = function () {
var title = document.title;
document.title = (title == "hello" ? "" : "hello");
}
};
changeTitle.prototype.start = function() {
this.timer = setInterval(this.title, 1000);
};
changeTitle.prototype.stop = function() {
clearInterval(this.timer)
};
var timerTitle = new changeTitle();
window.onblur = function() {
timerTitle.start();
};
window.onfocus = function() {
timerTitle.stop();
};