xxxxxxxxxx
document.getElementById("idName").style.filter = "blur(10px)";
xxxxxxxxxx
var form = document.getElementById("form");
form.addEventListener("focus", function( event ) {
event.target.style.background = "pink";
}, true);
form.addEventListener("blur", function( event ) {
event.target.style.background = "green";
}, true);
xxxxxxxxxx
function solution(image) {
let result = [];
for (let i = 0; i < image.length - 2; i++) {
let row = [];
for (let j = 0; j < image[i].length - 2; j++) {
let sum = 0;
for (let k = 0; k < 3; k++) {
for (let l = 0; l < 3; l++) {
sum += image[i + k][j + l];
}
}
row.push(Math.floor(sum / 9));
}
result.push(row);
}
return result;
}
xxxxxxxxxx
What is blur () method?
blur() method removes keyboard focus from the current element.
xxxxxxxxxx
function hover(btnId,other) {
var button = document.getElementById(btnId);
var otherButton = document.getElementById(other);
button.addEventListener('mouseover', () => {
otherButton.style.filter = 'blur(5px)';
});
button.addEventListener('mouseout', () => {
otherButton.style.filter = 'blur(0px)';
});
}
function visitPage(page) {
window.open(page,'_blank');
}