<div class="content-inner" style="display: none;"> <div class="content-inner active" style="display: block;"><script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
var hash = location.hash.substr(1);
if(hash){ $('#tab1').removeClass('active');}
hash && document.getElementById(hash).classList.add('active') && document.querySelecrorAll('.content-inner')[n].classList.add('active')
history.replaceState(null, null, window.location.href.replace(/#.*$/, ''));//replace state
})
</script><script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
var hash = location.hash.substr(1);
if(hash){ $('#tab1').removeClass('active');}
hash && document.getElementById(hash).classList.add('active')
history.replaceState(null, null, window.location.href.replace(/#.*$/, ''));//replace state
})
</script><div class="content-inner">? <p>текст</p>. А между блоками можно <hr> вставить.<div class="pagination">
<a href="#">«</a>
<a href="/страница1">1</a>
<a href="/страница2">2</a>
<a href="/страница3">3</a>
<a href="/страница4">4</a>
<a href="#">»</a>
</div>https://toko-tebe.ru/pozdravleniya/RewriteCond %{REQUEST_URI} ^/spir
RewriteRule ^.*$ https://www.monitor-ltd.ru/funkczionalnaya-diagnostika? [R=301,L]https://www.monitor-ltd.ru/spirograf-s-vstroennyim-termoprinteromhttps://www.monitor-ltd.ru/kompyuternyij-elektrokardiograf-krp-01 на https://www.monitor-ltd.ru/spirkompyuternyij-elektrokardiograf-krp-01 и также произойдет редирект.
И в таком случае ничего не происходит.
Я правильно понимаю, что этот код
document.querySelecror('.content-inner').classList.add('active')
нужно добавить в эту строку
hash && document.getElementById(hash).classList.add('active') через &&?
То есть так:
hash && document.getElementById(hash).classList.add('active') && document.querySelecror('.content-inner').classList.add('active')