function calc(evt) {
evt.preventDefault();
salaryYear.value = salaryMonth.value * 12;
if (salaryYear > 200000) {
info.innerHTML = "текст";
} else if (salaryYear < 200000) {
info.innerHTML = "текст 2";
}
};
.profile {
margin: 0;
padding: 0;
margin-top: 40px;
margin-left: auto;
margin-right: auto;
margin-bottom: 51px;
display: grid;
max-width: 880px;
grid-template-areas: "image title edit addb" "image subtitle edit addb";
grid-template-columns: 150px 312px 1fr 150px;
}
@media (max-width: 740px) {
.profile {
grid-template-areas: "image title edit" "image subtitle edit" "addb addb addb";
grid-template-columns: 150px 312px 1fr;
}
}
@media (max-width: 680px) {
.profile {
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 120px 1fr 1fr 1fr;
grid-template-areas: "image image image" "title title edit" "subtitle subtile subtitle" "addb addb addb";
}
}
function openPhotoAddForm() {
openPopup(popUpPhoto);
isValid(formElement, inputElement);
}