$(document).ready(function(){
$(".callfunc" ).click(function(){
var get_id = $(this).attr('id');
});
});
var img = document.getElementById('myImg');
<img class ="myImg" src="img_snow.jpg" alt="Snow" style="width:100%;max-width:300px">
<img class ="myImg" src="img_snow.jpg" alt="Snow" style="width:100%;max-width:300px">
<!-- The Modal -->
<div id="myModal" class="modal">
<span class="close">×</span>
<img class="modal-content" id="img01">
<div id="caption"></div>
</div>
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
var imgs = document.querySelectorAll('.myImg');
imgs.forEach(img) {
img.onclick = function(){
modal.style.display = "block";
modalImg.src = this.src;
captionText.innerHTML = this.alt;
}
var length = route.getActiveRoute().properties.get("distance");
if (length.value > 50000) {
balloonContentLayout = ymaps.templateLayoutFactory.createClass(
'<span>Вы находитесь слишком далеко от завода- Вам придется приехать</span><br/>');
} else {
balloonContentLayout = ymaps.templateLayoutFactory.createClass(
'<span>Расстояние от завода: ' + length.text + '.</span><br/>' +
'<span style="font-weight: bold; font-style: italic">'+price+'</span>');
}
let url = 'http://res.cloudinary.com/doea7ahfk/image/upload/v1621580890/Avatar/f8uq8dqrhllrby30ohxw.jpg';
url = url.replace('upload', 'upload/h_200,w_200,c_crop');
$(".idspoiler-"+DbNumberID).each(function(){
$(this).css("display", "block");
})
<li class="brand sign__up">
<a href="ТУТ ССЫЛКА">
<img src="/jpc/content/shared/images/Games/jpc/logo.png">
</a>
var mySwiper = new Swiper('.swiper-container', {
speed: 400,
spaceBetween: 100
});
var htmlText = document.body.innerHTML;
document.body.innerHTML = newHtmlText;
$(document).on('click', '.arrow', function(event) {
event.preventDefault();
$(this).closest('.new-list').find('.new-list-description').slideToggle('slow');
});