orange8031, удаление s-contacts-map при наличии .contacts-left.g-mini
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.s-contacts-map {
background-color: #FF0000;
}
</style>
<script>
window.addEventListener('DOMContentLoaded', function() {
[].filter.call(document.querySelectorAll('.s-contacts-map'), function(item) {
return item.querySelector('.contacts-left.g-mini')
}).forEach(function(el) {
el.classList.remove('s-contacts-map')
});
});
</script>
</head>
<body>
<div id="map" class="s-contacts-map">
<div class="contacts-left g-mini">
<div class="contacts-left__content-wrap g-hide" style="display: none;">
<h2 class="s-contacts__title">Как добраться</h2>
<div class="s-contacts__info-wrap">
<p class="s-contacts__info"></p>
<p class="s-contacts__info"></p>
<p class="s-contacts__info"></p>
<p class="s-contacts__info"></p>
<p class="s-contacts__info"></p>
<p class="s-contacts__phone"></p>
<p class="s-contacts__phone"></p>
</div>
</div>
<div class="contacts-left__close-button rotate-close"><тут есть contacts-left g-mini</div>
</div>
</div>
<div id="map" class="s-contacts-map">
<div class="">
<div class="contacts-left__content-wrap g-hide" style="display: none;">
<h2 class="s-contacts__title">Как добраться</h2>
<div class="s-contacts__info-wrap">
<p class="s-contacts__info"></p>
<p class="s-contacts__info"></p>
<p class="s-contacts__info"></p>
<p class="s-contacts__info"></p>
<p class="s-contacts__info"></p>
<p class="s-contacts__phone"></p>
<p class="s-contacts__phone"></p>
</div>
</div>
<div class="contacts-left__close-button rotate-close"><тут нет contacts-left g-mini</div>
</div>
</div>
</body>
</html>