newContainer
HTMLElement of the new container. (with visibility: hidden;)
Please note, it's undefined until newContainerLoading is resolved!
var HideShowTransition = Barba.BaseTransition.extend({
start: function() {
this.newContainerLoading.then(this.finish.bind(this));
},
finish: function() {
this.newContainer; // теперь newContainer должен быть доступен
this.done();
}
});
var townHovers = document.getElementsByClassName('town_hover');
Array.from(townHovers).forEach((btn) => {
btn.addEventListener('click', () => alert('thx'));
});
var variable = 1;
var prev;
function check(value) {
var f = value == prev;
prev = value;
return f;
}
setInterval(function() {
variable = Math.random() > 0.5 ? 1 : 0;
}, 2500);
setInterval(function() {
console.log(prev, variable, prev == variable)
console.log('check', check(variable))
}, 5000);
bcdedit /set hypervisorlaunchtype off