fix holiday bug
This commit is contained in:
parent
3decb0d788
commit
4dfef3e226
@ -1,7 +1,7 @@
|
||||
const holidayDescrBtn = document.querySelector('.holiday-descr .turn'),
|
||||
addingService = document.querySelector('.adding-service');
|
||||
|
||||
if(holidayDescrBtn && document.querySelector('.ent-container strong')){
|
||||
if(holidayDescrBtn && document.querySelector('.ent-container h2')){
|
||||
const holidayDescr = holidayDescrBtn.closest('.holiday-descr').querySelector('.holiday-descr__text').offsetHeight;
|
||||
holidayDescrBtn.closest('.holiday-descr').querySelector('.holiday-descr__text').style.height = holidayDescr/3 + 'px';
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
if(is_page('24')){?>
|
||||
<script>
|
||||
|
||||
document.querySelector('.ent-container strong').textContent = '<?php the_field('step-head-1', 24)?>';
|
||||
document.querySelector('.ent-container h2').textContent = '<?php the_field('step-head-1', 24)?>';
|
||||
let descr = document.createElement('p');
|
||||
descr.textContent = `<?php the_field('step-descr-1', 24)?>`;
|
||||
document.querySelector('.ent-container h2').insertAdjacentElement('afterend', descr)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user