`title` like '%ZebraHead%'
const connection = mysql.createConnection({
host: 'localhost',
user: 'root',
password: 'password',
database: 'my_db' <===============
});
<img src="01.png" id="user_new_image1" class="user_new_image arcticmodal-close">
<img src="02.png" id="user_new_image2" class="user_new_image arcticmodal-close">
$('#user_change_image_window').on('click','.user_new_image',function() { ... });
<script id="objects" type="text/x-handlebars-template">
{{#each objects}}
<h3>{{title}}</h3>
<p>{{description}}
<a href="{{link}}">Ссылка</a>
</p>
{{/each}}
</script>
<div class="hand">
</div>
$(document).ready(function () {
var hand = $('.hand');
$.ajax({
url: 'data.json'
}).done(function(data){
var json = JSON.parse(data),
source = $("#objects").html(),
template = Handlebars.compile(source),
html = template(json);
$('.hand').append( html ); //-- было template(data)
})
});
<div class="contacts_header col-lg-5 col-md-4 col-sm-12 col-xs-12">
<div class="">
Москва, Ладожская ул., д. 1/2 <i class="fa fa-map-marker"></i>
<br>
<a href="tel:+74957751401"> +7 (495) 775-14-01</a> <i class="fa fa-mobile"></i>
<br>
Пон- Сб 11:00 - 23:30 <i class="fa fa-clock-o"></i><br>
Вс 13:00 - 23:30 <i class="fa fa-clock-o"></i>
</div>
</div>
<head>
...
<script ...>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.2.0/imagesloaded.pkgd.min.js"></script>
...
</head>
<body>
...
...
<img src=" image.png ">
...
...
<script>
var imgLoad = imagesLoaded( 'img' );
function onAlways( instance ) {
console.log('all images are loaded');
}
// bind with .on()
imgLoad.on( 'always', onAlways );
// unbind with .off()
imgLoad.off( 'always', onAlways );
</script>
</body>