$('.el1--closed').one('click', function() {
$(this)
.siblings()
.slideToggle();
});
$('.block').on('click', '.el1--closed', function() {
$(this)
.removeClass('el1--closed')
.siblings()
.slideToggle();
});
<?php
$logo_img = '';
if ($custom_logo_id = get_theme_mod('custom_logo')) {
$logo_img = wp_get_attachment_image($custom_logo_id, 'full', false, array(
'class' => 'logo-footer', // здесь Ваш class
'alt' => get_bloginfo('name'),
'itemprop' => 'logo',
));
}
?>
<a href="<?php echo esc_url(home_url('/')); ?>" rel="home" class="logo">
<?php echo $logo_img; ?>
</a>
function dbget(table, ind, key) {
return new Promise((resolve) => {
let openRequest = indexedDB.open('FV', 6);
openRequest.onsuccess = function() {
let db = openRequest.result;
let transaction = db.transaction(table, 'readonly');
let labs = transaction.objectStore(table);
let index = labs.index(ind);
let request = index.getAll(key);
request.onsuccess = function() {
let res = request.result;
resolve(res);
};
};
});
}