$(this).parents(".accordeon").find("dd").slideUp().prev().removeClass("active");
if(document.documentElement.clientWidth < 640){
$(this).parents(".accordeon").find("dd").slideUp().prev().removeClass("active");
}
for (let i =0; i < count; i++) {
li = createGameElement(newArr[i])
ul.append(li.item);
li.item.addEventListener('click',function(){
});
}
function checkDiv(element){
let cssObj = window.getComputedStyle(element);
if (cssObj.getPropertyValue("visibility") == 'visible') {
alert('div is NOT display!!!');
}
}
let element = document.getElementById('address_confirm');
setInterval(() => checkDiv(element), 1000);
"web_accessible_resources": [
{
"resources": [ "inner.js", "test.css" ],
"matches": [ "https://www.youtube.com/*", "https://m.youtube.com/*" ],
"extension_ids": []
}
],
"host_permissions": [
"https://www.youtube.com/*",
],
и он работает
const injectJS = document.createElement('script');
injectJS.type='text/javascript';
injectJS.src=chrome.runtime.getURL("inner.js");
document.body.appendChild(injectJS);
<div class="t994__slidecontainer t-slds__items-wrapper" data-auto-correct-mobile-width="false" data-slide-pos="6" data-slider-paused="no" data-slide-offset="0" data-slider-with-cycle="false" style="height: 570px; transform: translate(-2166px, 0px); transition-duration: 0.3s;" data-slider-timeout="5000" data-slider-autoplay-initted="yes">
data-slider-timeout="5000" data-slider-autoplay-initted="no" data-slider-stopped="yes"
isAutoplayInitted = container.attr('data-slider-autoplay-initted') == 'yes';
console.dir(location)
<input type="hidden" name="back-side__input" id="back-side__input" value="<?php echo 'Этот текст хочу отобразить в письме'; ?>">
document.querySelector('#back-side__input').value
= document.querySelector('#back-side__title').innerText.trim();
$some_text = trim($_POST["back-side__input"]); // Этот текст хочу отобразить в письме
$message = "
Название блока формы: $calendar <br>
Форма: $formname <br>
Имя: $name <br>
Телефон: $phone<br>
E-mail: $mail
Текст: " . $some_text;
$results = $this->model_catalog_product->getProducts($filter_data); // <-- вы получили продукты
foreach ($results as $result) {
$data['products'][] = array(
'loc_use' => utf8_substr(trim(strip_tags(html_entity_decode($result['loc_use'], ENT_QUOTES, 'UTF-8'))), 0, $this->config->get('theme_' . $this->config->get('config_theme') . '_product_description_length')) . '..',
}
}
'loc_use' => utf8_substr(trim(strip_tags(html_entity_decode($data['loc_use'], ENT_QUOTES, 'UTF-8'))), 0, $this->config->get('theme_' . $this->config->get('config_theme') . '_product_description_length')) . '..',
$data['loc_use'] = html_entity_decode($category_info['loc_use'], ENT_QUOTES, 'UTF-8');
// сюда
foreach ($results as $result) {