const str = $('.list li')
.get()
.map(n => $(n).text())
.join(' ');
const str = Array
.from(document.querySelectorAll('.list li'), n => n.innerText)
.join` `;
const str = Array.prototype.reduce.call(
document.querySelector('.list').children,
(acc, n, i) => acc + (i ? ' ' : '') + n.textContent,
''
);
map.setOptions({
center: marker.getPosition(),
zoom: 17
});
$(".cart-info").html("");
$(".cart-total span").html("0");
$("#total-hidden-charges").val(0);
Arrays.splice(0, Arrays.length);
<div class="parent1"> <!-- тут поставьте position:relative; -->
<div class="children-absolute">А этот блок будет абсолютный. Так как он выше, он будет перекрывать children-hidden</div>
<div class="children-hidden">Вот тут сохранится overflow:hidden;</div>
</div>
$(".arctform").each(function() {
let $form = $(this);
$form.validate(...);
});
const locations = [
{ latlng: [55.692222,37.532778] },
{ latlng: [55.743889,37.4975] },
{ latlng: [55.793611,37.5875] },
{ latlng: [55.73852,37.61734] },
{ latlng: [55.7408,37.7469] },
];
const iconDefault = 'https://icons.iconarchive.com/icons/icons-land/vista-map-markers/32/Map-Marker-Marker-Outside-Pink-icon.png';
const iconActive = 'https://icons.iconarchive.com/icons/icons-land/vista-map-markers/32/Map-Marker-Marker-Outside-Chartreuse-icon.png';
function onClick() {
locations.forEach(n => n.marker.setIcon(n.marker !== this ? iconDefault : iconActive));
}
google.maps.event.addDomListener(window, 'load', function() {
const map = new google.maps.Map(document.querySelector('#map'), {
zoom: 11,
center: new google.maps.LatLng(55.74, 37.58),
});
locations.forEach(n => {
n.marker = new google.maps.Marker({
position: new google.maps.LatLng(...n.latlng),
map: map,
icon: iconDefault
});
n.marker.addListener('click', onClick);
});
});
for (let i = 0; i < locations.length; i++) {
let marker = new google.maps.Marker({
position: locations[i].position,
map: map,
});
let infowindow = new google.maps.InfoWindow({
content: locations[i].popupContent
});
marker.addListener('click', function () {
infowindow.open(map, marker);
});
}