Что вы знаете о Чапаеве

ПОЛИТИКА

<meta charset="utf-8"/><meta content="" name="description"/><meta content="True" name="HandheldFriendly"/><meta content="320" name="MobileOptimized"/><meta content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1, maximum-scale=1" name="viewport"/><meta content="on" http-equiv="cleartype"/><meta content="yes" name="mobile-web-app-capable"/><meta content="yes" name="apple-mobile-web-app-capable"/><meta content="black" name="apple-mobile-web-app-status-bar-style"/><meta content="" name="apple-mobile-web-app-title"/><meta content="184860593907" property="fb:pages"/><meta content="Ведомости" property="al:ios:app_name"/><meta content="521051076" property="al:ios:app_store_id"/><meta content="app-id=521051076, app-argument=http://www.vedomosti.ru/politics/test/2017/01/26/675052-chto-vi-znaete-o-chapaeve" name="apple-itunes-app"/><meta content="http://www.vedomosti.ru/politics/test/2017/01/26/675052-chto-vi-znaete-o-chapaeve" property="al:ios:url"/><link href="/assets/vedomosti_180x180.png" rel="apple-touch-icon"/><link href="/assets/touch-icon-ipad.png" rel="apple-touch-icon" sizes="76x76"/><link href="/assets/touch-icon-iphone-retina.png" rel="apple-touch-icon" sizes="120x120"/><link href="/assets/touch-icon-ipad-retina.png" rel="apple-touch-icon" sizes="152x152"/><link color="#fff6f1" href="/assets/safari-pinned-tab.svg" rel="mask-icon"/><link href="/assets/vedomosti.png" rel="icon" sizes="16x16" type="image/png"/><meta content="#fff6f1" name="theme-color"/><link href="http://www.vedomosti.ru/politics/test/2017/01/26/675052-chto-vi-znaete-o-chapaeve" rel="canonical"/><!-- og:tags begin --><meta content="summary_large_image" property="twitter:card"/><meta content="@vedomosti" property="twitter:site"/><meta content="Ведомости" name="author"/><meta content="https://www.facebook.com/Vedomosti/" property="article:author"/><meta content="https://www.facebook.com/Vedomosti/" property="article:publisher"/><meta content="705298649558221" property="fb:app_id"/><meta content="1180141861" property="fb:admins"/><meta content="article" property="og:type"/><meta content="http://www.vedomosti.ru/politics/test/2017/01/26/675052-chto-vi-znaete-o-chapaeve" property="og:url"/><link href="http://sharing.vedomosti.ru/vedomosti.ru/politics/test/2017/01/26/675052-chto-vi-znaete-o-chapaeve.jpg?1485533212" rel="image_src"/><meta content="http://sharing.vedomosti.ru/vedomosti.ru/politics/test/2017/01/26/675052-chto-vi-znaete-o-chapaeve.jpg?1485533212" property="og:image"/><meta content="1200" property="og:image:width"/><meta content="630" property="og:image:height"/><meta content="http://sharing.vedomosti.ru/vedomosti.ru/politics/test/2017/01/26/675052-chto-vi-znaete-o-chapaeve.jpg?1485533212" property="twitter:image"/><meta content="Тест: Что вы знаете о Чапаеве" property="og:title"/><meta content="Тест: Что вы знаете о Чапаеве" property="twitter:title"/><meta content="Тест к 130-летию со дня рождения Василия Ивановича" property="og:description"/><meta content="Тест к 130-летию со дня рождения Василия Ивановича" property="twitter:description"/><!-- og:tags end --><link rel="stylesheet" media="all" href="https://cdn.vedomosti.ru/assets/m/fonts-fb4654141eed136aff1272fcde0e4b04.css"/><link rel="stylesheet" media="all" href="https://cdn.vedomosti.ru/assets/m/application-f5bdac062183c4cd10257b0967890110.css"/><noscript/></head><body class="b-page b-page_test" ng-app="Sea" id="readabilityBody" readability="40.775956284153"></p> <div id="root"> <div class="b-document b-document_article" id="document" readability="26.0390625"> <div class="body" readability="27.766666666667"> <p> Что вы ведаете о Чапаеве </p> <p> Тест к 130-летию со дня рождения Василия Ивановича </p> <p> 27.01.2017 </p></div> <p> <img alt="Что вы знаете о Чапаеве" class="b-main-image" src="http://z1v.ru/wp-content/uploads/2017/01/mobile_low-u8z.png"/></p> <div class="image-credits" readability="7"> <p> Фото: Кадр из кинофильма «Чапаев» </p></div> <div class="b-button__wrapper"> <p> Начать тест </p></div> </div> </div> <p> <!-- Google Tag Manager --><br /> <noscript/><br /> <!-- End Google Tag Manager --><!-- Yandex.Metrika counter --><noscript></p> <div></div> <p></noscript><br /> <!-- /Yandex.Metrika counter --><br /> <!-- Google Analytics --><br /> <!-- End Google Analytics --><!-- tns-counter.ru --><noscript><br /> <span itemprop="image" itemscope itemtype="https://schema.org/ImageObject"><img itemprop="url image" loading="lazy" src="//www.tns-counter.ru/V13a****imbusiness_ru/ru/UTF-8/tmsec=vedomosti_other/" width="0" height="0" alt="Что вы знаете о Чапаеве"/><meta itemprop="width" content="0"><meta itemprop="height" content="0"></span></noscript><br /> <!--/ tns-counter.ru --><br /> <!-- rambler top100 --><br /> <img loading="lazy" src="//counter.rambler.ru/top100.cnt?123323" width="1" height="1"/><!-- /rambler top100 --><!-- Rating@Mail.ru counter --><noscript></p> <div> <img loading="lazy" src="//top-fwz1.mail.ru/counter?id=371008;js=na" height="1" width="1" alt="Рейтинг@Mail.ru"/></div> <p></noscript><br /> <!-- //Rating@Mail.ru counter --><!--LiveInternet counter--><!--/LiveInternet--></body></p> <!-- toc empty --><script> if (typeof jsInputerLaunch === 'undefined') {var jsInputerLaunch = 15;} else {jsInputerLaunch = 15;} if (typeof launchAsyncFunctionLauncher === "undefined") { function launchAsyncFunctionLauncher() { if (typeof asyncFunctionLauncher !== "undefined" && typeof asyncFunctionLauncher === "function") { asyncFunctionLauncher(); } else { setTimeout(function () { launchAsyncFunctionLauncher(); }, 100) } } } launchAsyncFunctionLauncher(); </script><script> var cachedBlocksArray = []; </script> </div><!-- .entry-content --> </article> <div class="rating-box"> <div class="rating-box__header">Оцените статью</div> <div class="wp-star-rating js-star-rating star-rating--score-0" data-post-id="98596" data-rating-count="0" data-rating-sum="0" data-rating-value="0"><span class="star-rating-item js-star-rating-item" data-score="1"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span><span class="star-rating-item js-star-rating-item" data-score="2"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span><span class="star-rating-item js-star-rating-item" data-score="3"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span><span class="star-rating-item js-star-rating-item" data-score="4"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span><span class="star-rating-item js-star-rating-item" data-score="5"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span></div> </div> <div class="entry-social"> <div class="social-buttons"><span class="social-button social-button--vkontakte" data-social="vkontakte" data-image="https://z1v.ru/wp-content/uploads/2017/01/mobile_low-u8z-100x100.png"></span><span class="social-button social-button--facebook" data-social="facebook"></span><span class="social-button social-button--telegram" data-social="telegram"></span><span class="social-button social-button--odnoklassniki" data-social="odnoklassniki"></span><span class="social-button social-button--twitter" data-social="twitter"></span><span class="social-button social-button--sms" data-social="sms"></span><span class="social-button social-button--whatsapp" data-social="whatsapp"></span></div> </div> <meta itemscope itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" itemid="https://z1v.ru/chto-vy-znaete-o-chapaeve/" content="Что вы знаете о Чапаеве"> <meta itemprop="dateModified" content="2017-01-27"> <div itemprop="publisher" itemscope itemtype="https://schema.org/Organization" style="display: none;"><div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject"><img itemprop="url image" src="https://z1v.ru/wp-content/uploads/2021/04/logo.png" alt="Z1V.RU - Актуальные новости России и Мира"></div><meta itemprop="name" content="Z1V.RU - Актуальные новости России и Мира"><meta itemprop="telephone" content="Z1V.RU - Актуальные новости России и Мира"><meta itemprop="address" content="https://z1v.ru"></div> <div id="comments" class="comments-area"> <div id="respond" class="comment-respond"> <div id="reply-title" class="comment-reply-title">Добавить комментарий <small><a rel="nofollow" id="cancel-comment-reply-link" href="/chto-vy-znaete-o-chapaeve/#respond" style="display:none;">Отменить ответ</a></small></div><form action="https://z1v.ru/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="comment-form-author"><label class="screen-reader-text" for="author">Имя <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" required='required' placeholder="Имя" /></p> <p class="comment-form-email"><label class="screen-reader-text" for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" required='required' placeholder="Email" /></p> <p class="comment-form-comment"><label class="screen-reader-text" for="comment">Комментарий</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required" placeholder="Комментарий" ></textarea></p><p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /> <label for="wp-comment-cookies-consent">Сохранить моё имя, email и адрес сайта в этом браузере для последующих моих комментариев.</label></p> <p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Отправить комментарий" /> <input type='hidden' name='comment_post_ID' value='98596' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="539b288f1c" /></p><input type="hidden" id="ak_js" name="ak_js" value="226"/><textarea name="ak_hp_textarea" cols="45" rows="8" maxlength="100" style="display: none !important;"></textarea></form> </div><!-- #respond --> </div><!-- #comments --> </main><!-- #main --> </div><!-- #primary --> <aside id="secondary" class="widget-area" itemscope itemtype="http://schema.org/WPSideBar"> <div class="sticky-sidebar js-sticky-sidebar"> <div id="text-11" class="widget widget_text"><div class="widget-header">Верните деньги с покупок!</div> <div class="textwidget"><p><a href="http://epngo.bz/cashback_index/7iqs23" target="_blank" rel="nofolow noopener" data-mce-href="http://epngo.bz/cashback_index/7iqs23"><br /><img loading="lazy" title="Как совершать покупки на AliExpress с двойным кэшбэком" src="http://z1v.ru/wp-content/uploads/2017/07/keshbek_servis_dlya_aliexpress-300-250-1.jpg" alt="Как совершать покупки на AliExpress с двойным кэшбэком" width="300" height="250" border="0" data-mce-src="http://z1v.ru/wp-content/uploads/2017/07/keshbek_servis_dlya_aliexpress-300-250-1.jpg"><br /></a></p> </div> </div><div id="text-5" class="widget widget_text"><div class="widget-header">Создай свой дизайн одежды!</div> <div class="textwidget"><p><noindex><a href="http://oziprint.myprintbar.ru" target="_blank" rel="nofolow noopener"><img src="https://printbar.ru/upload/partners/images/banners/5030a.gif" /></a></noindex></p> </div> </div><div id="text-13" class="widget widget_text"> <div class="textwidget"><p><!-- Yandex.RTB R-A-322016-3 --></p> <div id="yandex_rtb_R-A-322016-3"></div> <p><script type="text/javascript"> (function(w, d, n, s, t) { w[n] = w[n] || []; w[n].push(function() { Ya.Context.AdvManager.render({ blockId: "R-A-322016-3", renderTo: "yandex_rtb_R-A-322016-3", async: true }); }); t = d.getElementsByTagName("script")[0]; s = d.createElement("script"); s.type = "text/javascript"; s.src = "//an.yandex.ru/system/context.js"; s.async = true; t.parentNode.insertBefore(s, t); })(this, this.document, "yandexContextAsyncCallbacks"); </script></p> </div> </div> <div id="recent-posts-2" class="widget widget_recent_entries"> <div class="widget-header">Свежие записи</div> <ul> <li> <a href="https://z1v.ru/v-belorussii-sravnili-sanktsii-protiv-belavia-s-bezzubym-ukusom/">В Белоруссии сравнили санкции против «Белавиа» с «беззубым укусом»</a> </li> <li> <a href="https://z1v.ru/gosudarstvo-obespechit-posleprodazhnuyu-podderzhku-eksportirovannoy-tehniki/">Государство обеспечит послепродажную поддержку экспортированной техники</a> </li> <li> <a href="https://z1v.ru/vlasti-ispanii-prizvali-razreshit-privitym-sputnikom-v-vezd-v-evrosoyuz/">Власти Испании призвали разрешить привитым «Спутником V» въезд в Евросоюз</a> </li> <li> <a href="https://z1v.ru/sud-nad-fbk-priznayut-li-nko-inoagenta-ekstremistskoy-organizatsiey/">Суд над ФБК: признают ли НКО-иноагента экстремистской организацией</a> </li> <li> <a href="https://z1v.ru/andrey-kozlov-druz-prilip-k-chto-gde-kogda-nikak-ego-ne-ottsepish/">Андрей Козлов: «Друзь прилип к «Что? Где? Когда?», никак его не отцепишь»</a> </li> </ul> </div><div id="custom_html-4" class="widget_text widget widget_custom_html"><div class="widget-header">ЗНАКОМИМСЯ ТУТ:</div><div class="textwidget custom-html-widget"><style> .t_online {height: 14px; text-align: center; white-space: nowrap; position: relative; margin: -18px auto 2px; background: orange; color: #fff !important; padding: 0 0 2px;} #teaser_more a { display: block; padding: 70px 15px 0; background: url(//s.mylove.ru/i/interactive/reload.png) no-repeat 4px 18px; color: #999;} .t_img:hover .t_baloon {display: block; position: absolute; z-index:2; opacity: 0.9; margin: -45px 0 0 10px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background: #fff; border: 1px solid #ccc; padding: 6px 8px;} .t_baloon {display: none;} .mylove_teaser span {color: #000; display: block;} .mylove_teaser a {text-decoration: none; color: #2491cf;} .mylove_teaser{font: 12px tahoma; display: inline-block; padding: 18px 15px 10px; border: 1px solid #555;} .mylove_teaser div { float: left; margin: 0 3px 5px 3px; } .mylove_teaser .t_online { width: 70px; } .mylove_teaser img { border: none; } #clear {clear: both; height: 0; overflow: hidden; float: none !important;} </style> <script src="//mylove.ru/js/i/inter1.js"></script> <script language="JavaScript"> mylove_teaser({ blank: "_blank", promo: "p34379278", domain: "heartlove.ru", size: "avatar", count: "8", more: "true"}); </script></div></div><div id="categories-2" class="widget widget_categories"><div class="widget-header">Рубрики</div> <ul> <li class="cat-item cat-item-14"><a href="https://z1v.ru/category/avto/">АВТО</a> </li> <li class="cat-item cat-item-18"><a href="https://z1v.ru/category/aktualno/">Актуально</a> </li> <li class="cat-item cat-item-1"><a href="https://z1v.ru/category/bez-rubriki/">Без рубрики</a> </li> <li class="cat-item cat-item-6"><a href="https://z1v.ru/category/biznes/">БИЗНЕС</a> </li> <li class="cat-item cat-item-21"><a href="https://z1v.ru/category/v-mire/">В МИРЕ</a> </li> <li class="cat-item cat-item-8"><a href="https://z1v.ru/category/zdorove-i-krasota/">ЗДОРОВЬЕ И КРАСОТА</a> </li> <li class="cat-item cat-item-5"><a href="https://z1v.ru/category/nauka-i-tekhnika/">НАУКА и ТЕХНИКА</a> </li> <li class="cat-item cat-item-4"><a href="https://z1v.ru/category/novosti/">НОВОСТИ</a> </li> <li class="cat-item cat-item-9"><a href="https://z1v.ru/category/obshhestvo/">ОБЩЕСТВО</a> </li> <li class="cat-item cat-item-17"><a href="https://z1v.ru/category/poleznye-sovety/">ПОЛЕЗНЫЕ СОВЕТЫ</a> </li> <li class="cat-item cat-item-10"><a href="https://z1v.ru/category/politika/">ПОЛИТИКА</a> </li> <li class="cat-item cat-item-13"><a href="https://z1v.ru/category/raznoe/">РАЗНОЕ</a> </li> <li class="cat-item cat-item-7"><a href="https://z1v.ru/category/tekushhie-sobytiya/">ТЕКУЩИЕ СОБЫТИЯ</a> </li> <li class="cat-item cat-item-12"><a href="https://z1v.ru/category/shoubiz/">ШОУБИЗ</a> </li> <li class="cat-item cat-item-11"><a href="https://z1v.ru/category/yekonomika-i-finansy/">ЭКОНОМИКА И ФИНАНСЫ</a> </li> </ul> </div><div id="text-4" class="widget widget_text"><div class="widget-header">ЧУДО ТОВАРЫ, ПОДАРКИ!</div> <div class="textwidget"><!-- admitad.banner: 6f000d69c0b3138b051ad20a29805c MELEON --> <a target="_blank" rel="nofollow noopener" href="https://ad.admitad.com/g/6f000d69c0b3138b051ad20a29805c/?i=4&subid=z1vru"><img width="300" height="250" border="0" src="https://ad.admitad.com/b/6f000d69c0b3138b051ad20a29805c/" alt="MELEON"/></a> <!-- /admitad.banner --></div> </div><div id="text-12" class="widget widget_text"> <div class="textwidget"><p><iframe data-aa='546959' src='//ad.a-ads.com/546959?size=300x250' scrolling='no' style='width:100%; height:250px; border:0px; padding:0;overflow:hidden' allowtransparency='true'></iframe></p> </div> </div><div id="recent-comments-2" class="widget widget_recent_comments"><div class="widget-header">Свежие комментарии</div><ul id="recentcomments"><li class="recentcomments"><span class="comment-author-link">Алексей</span> к записи <a href="https://z1v.ru/strigut-dengi-uchastnik-stoloto-o-trudnostyah-polucheniya-vyigrysha/#comment-6509">«Стригут деньги»: участник «Столото» о трудностях получения выигрыша</a></li><li class="recentcomments"><span class="comment-author-link">Юлия</span> к записи <a href="https://z1v.ru/biologicheskaya-mat-boretsya-za-doch-ko/#comment-6450">Биологическая мать борется за дочь, которую увезли жить в Италию</a></li><li class="recentcomments"><span class="comment-author-link">RETY TRET</span> к записи <a href="https://z1v.ru/ivana-okhlobystina-pytalis-zastreli/#comment-6059">Ивана Охлобыстина пытались застрелить в центре Москвы</a></li><li class="recentcomments"><span class="comment-author-link">Арсений</span> к записи <a href="https://z1v.ru/startap-razrabotal-programmu-dlya-slezhki-za-udalennymi-sotrudnikami/#comment-5908">Стартап разработал программу для слежки за удаленными сотрудниками</a></li><li class="recentcomments"><span class="comment-author-link">Natalia</span> к записи <a href="https://z1v.ru/nargiz-zakirova-skandaly-magiya-i-muzhch/#comment-4710">Наргиз Закирова: скандалы, магия и мужчины в жизни певицы</a></li></ul></div> </div> </aside><!-- #secondary --> <div id="related-posts" class="related-posts fixed"><div class="related-posts__header">Вам также может понравиться</div><div class="post-cards post-cards--vertical"> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://z1v.ru/rossiyskiy-posol-v-kitae-my-umnee-chem-dumayut-amerikantsy/"><img width="335" height="220" src="https://z1v.ru/wp-content/uploads/2021/06/e06786df-1677-4cb3-bbf8-daee834c7dd0-335x220.jpeg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" loading="lazy" /></a></div><div class="post-card__title"><a href="https://z1v.ru/rossiyskiy-posol-v-kitae-my-umnee-chem-dumayut-amerikantsy/">Российский посол в Китае: «Мы умнее, чем думают американцы»</a></div><div class="post-card__description">Владимир Путин и Джо Байден встретятся в Женеве 16</div><div class="post-card__meta"><span class="post-card__comments">0</span><span class="post-card__views">1</span></div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://z1v.ru/mogut-li-rossiya-i-yaponiya-nakonets-dostich-mira-na-tihom-okeane/"><img width="335" height="220" src="https://z1v.ru/wp-content/uploads/2021/06/thediplomat-2021-06-08-10-335x220.jpg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" loading="lazy" /></a></div><div class="post-card__title"><a href="https://z1v.ru/mogut-li-rossiya-i-yaponiya-nakonets-dostich-mira-na-tihom-okeane/">Могут ли Россия и Япония наконец достичь мира на Тихом океане</a></div><div class="post-card__description">Месяц назад тысячи военнослужащих, танков и ракетных</div><div class="post-card__meta"><span class="post-card__comments">0</span><span class="post-card__views">4</span></div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://z1v.ru/global-times-sammit-baydena-putina-obnazhit-ogromnuyu-propast-mezhdu-rossiey-i-ssha/"><img width="335" height="220" src="https://z1v.ru/wp-content/uploads/2021/06/4e222980-3b72-49bc-94a6-937c7747715e-335x220.jpeg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" loading="lazy" /></a></div><div class="post-card__title"><a href="https://z1v.ru/global-times-sammit-baydena-putina-obnazhit-ogromnuyu-propast-mezhdu-rossiey-i-ssha/">Global Times: Саммит Байдена-Путина обнажит огромную пропасть между Россией и США</a></div><div class="post-card__description">Президент США Джо Байден и его российский коллега Владимир</div><div class="post-card__meta"><span class="post-card__comments">0</span><span class="post-card__views">4</span></div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://z1v.ru/psihologicheskie-operatsii-pentagona-vokrug-nlo-podpityvayut-ugrozu-voyny-s-rossiey-i-kitaem/"><img width="335" height="220" src="https://z1v.ru/wp-content/uploads/2021/05/unnamed-file-2-335x220.jpg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" loading="lazy" srcset="https://z1v.ru/wp-content/uploads/2021/05/unnamed-file-2-335x220.jpg 335w, https://z1v.ru/wp-content/uploads/2021/05/unnamed-file-2.jpg 600w" sizes="(max-width: 335px) 100vw, 335px" /></a></div><div class="post-card__title"><a href="https://z1v.ru/psihologicheskie-operatsii-pentagona-vokrug-nlo-podpityvayut-ugrozu-voyny-s-rossiey-i-kitaem/">Психологические операции Пентагона вокруг НЛО подпитывают угрозу войны с Россией и Китаем</a></div><div class="post-card__description">После десятилетий замалчивания и блокирования этой</div><div class="post-card__meta"><span class="post-card__comments">0</span><span class="post-card__views">2</span></div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://z1v.ru/damask-i-moskva-vyigrali-voynu-no-amerika-uzakonivaet-razgrablenie-sirii/"><img width="335" height="220" src="https://z1v.ru/wp-content/uploads/2021/05/3750154-335x220.jpg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" loading="lazy" /></a></div><div class="post-card__title"><a href="https://z1v.ru/damask-i-moskva-vyigrali-voynu-no-amerika-uzakonivaet-razgrablenie-sirii/">Дамаск и Москва выиграли войну, но Америка узаконивает разграбление Сирии</a></div><div class="post-card__description">Ирландский борец за мир доктор Деклан Хейс объясняет</div><div class="post-card__meta"><span class="post-card__comments">0</span><span class="post-card__views">2</span></div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://z1v.ru/pepe-eskobar-blinken-ukazal-zelenskomu-ego-mesto/"><img width="335" height="220" src="https://z1v.ru/wp-content/uploads/2021/05/unnamed-file-335x220.jpg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" loading="lazy" /></a></div><div class="post-card__title"><a href="https://z1v.ru/pepe-eskobar-blinken-ukazal-zelenskomu-ego-mesto/">Пепе Эскобар: Блинкен указал Зеленскому его место?</a></div><div class="post-card__description">Что же на самом деле произошло во время визита госсекретаря</div><div class="post-card__meta"><span class="post-card__comments">0</span><span class="post-card__views">2</span></div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://z1v.ru/russkie-ne-pridut/"><img width="335" height="220" src="https://z1v.ru/wp-content/uploads/2021/05/us-russia-ukraine-flags-335x220.jpg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" loading="lazy" /></a></div><div class="post-card__title"><a href="https://z1v.ru/russkie-ne-pridut/">Русские не придут</a></div><div class="post-card__description">Газета New York Times весьма странным образом сообщила</div><div class="post-card__meta"><span class="post-card__comments">0</span><span class="post-card__views">3</span></div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://z1v.ru/reaktsiya-moskvy-na-provokatsionnoe-povedenie-pragi-vernula-poslednyuyu-k-realnosti/"><img width="335" height="220" src="https://z1v.ru/wp-content/uploads/2021/04/unnamed-file-2-335x220.jpg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" loading="lazy" /></a></div><div class="post-card__title"><a href="https://z1v.ru/reaktsiya-moskvy-na-provokatsionnoe-povedenie-pragi-vernula-poslednyuyu-k-realnosti/">Реакция Москвы на провокационное поведение Праги вернула последнюю к реальности</a></div><div class="post-card__description">На прошлой неделе между Чехией, Евросоюзом и Россией</div><div class="post-card__meta"><span class="post-card__comments">0</span><span class="post-card__views">4</span></div> </div> </div></div> </div><!--.site-content-inner--> </div><!--.site-content--> <div class="site-footer-container "> <div class="footer-navigation fixed" itemscope itemtype="http://schema.org/SiteNavigationElement"> <div class="main-navigation-inner full"> <div class="menu-footer-location-container"><ul id="footer_menu" class="menu"><li id="menu-item-1045" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1045"><a href="https://z1v.ru/glavnaya/">ГЛАВНАЯ</a></li> <li id="menu-item-20594" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20594"><a href="https://z1v.ru/kontakty/">Контакты</a></li> <li id="menu-item-281609" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-281609"><a href="https://z1v.ru/otkaz-ot-otvetstvennosti/">Отказ от ответственности</a></li> </ul></div> </div> </div><!--footer-navigation--> <footer id="colophon" class="site-footer site-footer--style-gray full"> <div class="site-footer-inner fixed"> <div class="footer-bottom"> <div class="footer-info"> © 2021 Z1V.RU - Актуальные новости России и Мира </div> <div class="footer-counters"><noindex> <!-- Yandex.Metrika informer --> <a href="https://metrika.yandex.ru/stat/?id=36241715&from=informer" target="_blank" rel="nofollow"><img src="https://informer.yandex.ru/informer/36241715/3_0_20532CFF_00330CFF_1_pageviews" style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" class="ym-advanced-informer" data-cid="36241715" data-lang="ru" /></a> <!-- /Yandex.Metrika informer --> <!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(36241715, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/36241715" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> </noindex> </div></div> </div> </footer><!--.site-footer--> </div> <button type="button" class="scrolltop js-scrolltop"></button> </div><!-- #page --> <script type="text/javascript"> <!-- var _acic={dataProvider:15};(function(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src="//www2.acint.net/aci.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})() //--> </script><script>var pseudo_links = document.querySelectorAll(".pseudo-clearfy-link");for (var i=0;i<pseudo_links.length;i++ ) { pseudo_links[i].addEventListener("click", function(e){ window.open( e.target.getAttribute("data-uri") ); }); }</script><script>if (typeof rb_ajaxurl==='undefined') {var rb_ajaxurl = 'https://z1v.ru/wp-admin/admin-ajax.php';}if (typeof endedSc==='undefined') {var endedSc = false;} if (typeof endedCc==='undefined') {var endedCc = false;} if (typeof usedAdBlocksArray==='undefined') {var usedAdBlocksArray = [];} if (typeof usedBlockSettingArrayIds==='undefined') {var usedBlockSettingArrayIds = [];} if (typeof sameElementAfterWidth==='undefined') {var sameElementAfterWidth = false;} if (typeof sameElementAfterExcClassId==='undefined') {var sameElementAfterExcClassId = false;} if (typeof sameElementAfterFromConstruction==='undefined') {var sameElementAfterFromConstruction = false;} if (typeof rb_tempElement_check==='undefined') {var rb_tempElement_check = false;} if (typeof rb_tempElement==='undefined') {var rb_tempElement = null;} if (typeof jsInputerLaunch==='undefined') {var jsInputerLaunch = -1;} function launchUpdateRbDisplays() { if ((typeof updateRbDisplays !== 'undefined')&&(typeof updateRbDisplays === 'function')) { updateRbDisplays(); } else { setTimeout(function () { launchUpdateRbDisplays(); }, 200); } } /* "sc" in variables - mark for shortcode variable */ function shortcodesInsert() { let gatheredBlocks = document.querySelectorAll('.percentPointerClass.scMark'), scBlockId = -1, scAdId = -1, blockStatus = '', dataFull = -1, gatheredBlockChild, okStates = ['done','refresh-wait','no-block','fetched'], scContainer, sci, i1 = 0, skyscraperCheck = [], skyscraperStatus = false, splitedSkyscraper = [], gatheredBlockChildSkyParts = [], stickyStatus = false, stickyCheck = [], stickyFixedStatus = false, stickyFixedCheck = [], overflowCheck = [], overflowStatus = false, repeatableIdentifier = "", dataCidIdentifier = null, divCidElement = ''; if (typeof scArray !== 'undefined') { if (scArray&&scArray.length > 0&&gatheredBlocks&&gatheredBlocks.length > 0&&typeof window.rulvW5gntb !== 'undefined') { dataCidIdentifier = window.rulvW5gntb; for (let i = 0; i < gatheredBlocks.length; i++) { gatheredBlockChild = gatheredBlocks[i].children[0]; if (!gatheredBlockChild) { continue; } scAdId = -3; blockStatus = null; scContainer = null; dataFull = -1; skyscraperStatus = false; splitedSkyscraper = []; gatheredBlockChildSkyParts = []; stickyStatus = false; stickyCheck = []; stickyFixedStatus = false; stickyFixedCheck = []; repeatableIdentifier = ""; divCidElement = null; scAdId = gatheredBlockChild.getAttribute('data-aid'); scBlockId = gatheredBlockChild.getAttribute('data-id'); blockStatus = gatheredBlockChild.getAttribute('data-state'); dataFull = gatheredBlockChild.getAttribute('data-full'); if (scBlockId&&scAdId > 0) { sci = -1; for (i1 = 0; i1 < scArray.length; i1++) { if (scBlockId == scArray[i1]['blockId']&&scAdId == scArray[i1]['adId']) { sci = i1; } } if (sci > -1) { if (blockStatus&&okStates.includes(blockStatus)) { if (blockStatus=='no-block') { gatheredBlockChild.innerHTML = ''; } else if ((blockStatus=='fetched'&&dataFull==1)||!['no-block','fetched'].includes(blockStatus)) { for (let cl1 = 0; cl1 < gatheredBlocks[i].classList.length; cl1++) { if (gatheredBlocks[i].classList[cl1].includes("repeatable-mark")) { repeatableIdentifier = gatheredBlocks[i].classList[cl1]; } } if (repeatableIdentifier) { divCidElement = document.querySelectorAll(".percentPointerClass.scMark."+repeatableIdentifier+' div[data-cid="'+dataCidIdentifier+'"]'); } else { divCidElement = gatheredBlockChild.querySelectorAll('div[data-cid="'+dataCidIdentifier+'"]'); } if (divCidElement&&divCidElement.length > 0) { for (let i2 = 0; i2 < divCidElement.length; i2++) { jQuery(divCidElement[i2]).html(scArray[sci]['text']); } } else { jQuery(gatheredBlockChild).html(scArray[sci]['text']); } launchUpdateRbDisplays(); } if (blockStatus!='fetched'||(blockStatus=='fetched'&&dataFull==1)) { for (i1 = 0; i1 < scArray.length; i1++) { if (scBlockId == scArray[i1]['blockId']) { scArray.splice(i1, 1); i1--; } } gatheredBlocks[i].classList.remove('scMark'); } } } } else if (scBlockId&&scAdId < 1&&['no-block','fetched'].includes(blockStatus)) { for (i1 = 0; i1 < scArray.length; i1++) { if (scBlockId == scArray[i1]['blockId']) { scArray.splice(i1, 1); i1--; } } gatheredBlocks[i].classList.remove('scMark'); } } } else if (!scArray||(scArray&&scArray.length < 1)) { endedSc = true; } } else { endedSc = true; } if (!endedSc) { setTimeout(function () { shortcodesInsert(); }, 200); } } function clearUnsuitableCache(cuc_cou) { let scAdId = -1; let ccRepeat = false; let gatheredBlocks = document.querySelectorAll('.percentPointerClass .content_rb, .percentPointerClass .cnt32_rl_bg_str'); if (gatheredBlocks&&gatheredBlocks.length > 0) { for (let i = 0; i < gatheredBlocks.length; i++) { if (gatheredBlocks[i]['dataset']['aid']&&gatheredBlocks[i]['dataset']['aid'] < 0) { if ((gatheredBlocks[i]['dataset']["state"]=='no-block')||(['done','fetched','refresh-wait'].includes(gatheredBlocks[i]['dataset']["state"]))) { gatheredBlocks[i]['innerHTML'] = ''; } else { ccRepeat = true; } } else if (!gatheredBlocks[i]['dataset']['aid']) { ccRepeat = true; } } if (cuc_cou < 50) { if (ccRepeat) { setTimeout(function () { clearUnsuitableCache(cuc_cou+1); }, 100); } } else { endedCc = true; } } else { endedCc = true; } } function blocksRepositionUse(containerString, blType, searchType, contentElement) { let blocksInContainer; let blLocal = blType; let currentBlock; let currentBlockId; let currentBlockPosition; let currentContainer; let i = 0; let j = 0; let blockStrJs = ' .percentPointerClass.marked'; let blockStrPhp = ' .percentPointerClass:not(.marked)'; let blockStr = ' .percentPointerClass'; let checkPointer = null; let blockRepeatEnd = false; if (searchType) { if (searchType == 'marked') { while (!blockRepeatEnd) { blLocal = blLocal.parentElement; if (blLocal) { checkPointer = blLocal.querySelector("#content_pointer_id"); if (!checkPointer) { blocksInContainer = jQuery(blLocal).parent(containerString); if (blocksInContainer && blocksInContainer.length > 0) { /* checkPointer = blocksInContainer.querySelector("#content_pointer_id"); */ checkPointer = jQuery(blocksInContainer).find("#content_pointer_id"); if (checkPointer && checkPointer.length > 0) { blocksInContainer = null; } blockRepeatEnd = true; } } else { blockRepeatEnd = true } } else { blockRepeatEnd = true } } /* blocksInContainer = jQuery(blType).parent(containerString); */ if (blocksInContainer&&blocksInContainer.length > 0) { /* blocksInContainer.parentNode.insertBefore(rb_tempElement, blocksInContainer); */ blocksInContainer[0].parentNode.insertBefore(rb_tempElement, blocksInContainer[0]); sameElementAfterExcClassId = false; return blocksInContainer[0]; } return blType; } else if (searchType == 'non-marked') { blocksInContainer = document.querySelectorAll(blType + containerString + blockStrPhp); if (blocksInContainer && blocksInContainer.length > 0 && usedBlockSettingArray && usedBlockSettingArray.length > 0) { for (i = 0; i < blocksInContainer.length; i++) { currentBlock = blocksInContainer[i]; currentBlockId = currentBlock.querySelector('.content_rb, .cnt32_rl_bg_str').getAttribute('data-id'); currentContainer = null; for (j = 0; j < usedBlockSettingArray.length; i++) { if (usedBlockSettingArray[i]['id'] == currentBlockId) { currentBlockPosition = usedBlockSettingArray[i]['elementPosition']; currentContainer = currentBlock.closest(blType + containerString); if (currentBlockPosition == 0) { currentContainer.parentNode.insertBefore(currentBlock, currentContainer); } else { currentContainer.parentNode.insertBefore(currentBlock, currentContainer.nextSibling); } break; } } } } } } return false; } function createStyleElement(blockNumber, localElementCss) { let htmlToAdd = ''; let marginString; let textAlignString; let contPoi; let emptyValues = false; let elementToAddStyleLocal = document.querySelector('#blocksAlignStyle'); if (!elementToAddStyleLocal) { contPoi = document.querySelector('#content_pointer_id'); if (!contPoi) { return false; } elementToAddStyleLocal = document.createElement('style'); elementToAddStyleLocal.setAttribute('id', 'blocksAlignStyle'); contPoi.parentNode.insertBefore(elementToAddStyleLocal, contPoi); } switch (localElementCss) { case 'left': emptyValues = false; marginString = '0 auto 0 0'; textAlignString = 'left'; break; case 'right': emptyValues = false; marginString = '0 0 0 auto'; textAlignString = 'right'; break; case 'center': emptyValues = false; marginString = '0 auto'; textAlignString = 'center'; break; case 'default': emptyValues = true; marginString = 'default'; textAlignString = 'default'; /** here will be css */ break; } if (!emptyValues) { htmlToAdd = '#content_rb_'+blockNumber+' > * {\n' + ' margin: '+marginString+';\n' + '}\n' + '#cnt_rb_'+blockNumber+' > * {\n' + ' margin: '+marginString+';\n' + '}\n'; } elementToAddStyleLocal.innerHTML += htmlToAdd; return textAlignString; } function initTargetToInsert(position, type, currentElement) { let posCurrentElement; let usedElement; if (type == 'element') { if (position == 0) { posCurrentElement = currentElement; if (!(typeof obligatoryMargin!=='undefined'&&obligatoryMargin===1)) { currentElement.classList.add('rfwp_removedMarginTop'); } } else { posCurrentElement = currentElement.nextSibling; if (!(typeof obligatoryMargin!=='undefined'&&obligatoryMargin===1)) { currentElement.classList.add('rfwp_removedMarginBottom'); } } currentElement.style.clear = 'both'; } else { usedElement = currentElement; if (position == 0) { posCurrentElement = usedElement; } else { posCurrentElement = usedElement.nextSibling; } } return posCurrentElement; } function checkAdsWidth(content_pointer, posCurrentElement, currentElement) { let widthChecker = document.querySelector('#widthChecker'); let widthCheckerStyle = null; let content_pointerStyle = getComputedStyle(content_pointer); /* let getPositionForTempElement = null; let testImgDetected = false; let testImg; let testImageCompWidth; let testImgCou = 0 let figureChilds; let figureComWidth; let fcCou = 0; */ let content = content_pointer.parentElement; if (!widthChecker) { widthChecker = document.createElement("div"); widthChecker.setAttribute('id','widthChecker'); widthChecker.style.display = 'flex'; } if (content) { posCurrentElement = initTargetToInsert(posCurrentElement, 'term', currentElement); currentElement.parentNode.insertBefore(widthChecker, posCurrentElement); widthCheckerStyle = getComputedStyle(widthChecker); /* testImg = currentElement.previousSibling; if (testImg) { while (!testImgDetected&&testImgCou<4) { if (testImg&&testImg.nodeName.toLowerCase() === 'figure') { figureComWidth = getComputedStyle(testImg); figureComWidth = parseInt(figureComWidth.width); figureChilds = testImg.childNodes; if (figureChilds&&figureChilds.length > 0) { while (!testImgDetected&&figureChilds[fcCou]) { if (figureChilds[fcCou] instanceof HTMLImageElement) { testImgDetected = true; testImageCompWidth = getComputedStyle(figureChilds[fcCou]); testImageCompWidth = parseInt(testImageCompWidth.width); console.log('img_f_w:'+figureComWidth+'; img_w:'+testImageCompWidth+';'); } fcCou++; } } } if (testImg instanceof HTMLImageElement) { testImgDetected = true; testImageCompWidth = getComputedStyle(testImg); testImageCompWidth = parseInt(testImageCompWidth.width); console.log('img_w:'+testImageCompWidth+';'); } if (!testImg.previousSibling) { break; } testImg = testImg.previousSibling; testImgCou++; } } console.log('cp_w:'+parseInt(content_pointerStyle.width)+'; wc_w:'+parseInt(widthCheckerStyle.width)+';'); */ if (parseInt(widthCheckerStyle.width) > (parseInt(content_pointerStyle.width) - 20)) { return true; } } currentElement.parentNode.insertBefore(rb_tempElement, currentElement.nextSibling); rb_tempElement_check = true; return false; } /* function currentElementReceiver(revert, curSum, elList, currentElement) { let origCurrentElement = currentElement; let content_pointer = document.querySelector("#content_pointer_id"); let sameElementAfterWidth = false; let testCou = 0; while (elList[curSum]&&sameElementAfterWidth==false&&testCou < 5) { currentElement = elList[curSum]; try { sameElementAfterWidth=true; sameElementAfterWidth = checkAdsWidth(content_pointer, 0, currentElement); } catch (ex) { console.log(ex.message); } revert? curSum--: curSum++; testCou++; } return currentElement?currentElement:origCurrentElement; } */ function currentElementReceiverSpec(revert, curSum, elList, currentElement) { let origCurrentElement = currentElement; let content_pointer = document.querySelector("#content_pointer_id"); /* orig */ let sameElementAfterWidth = false; let testCou = 0; while (elList[curSum]&&sameElementAfterWidth==false&&testCou < 5) { currentElement = elList[curSum]['element']; try { sameElementAfterWidth=true; sameElementAfterWidth = checkAdsWidth(content_pointer, 0, currentElement); } catch (ex) { console.log(ex.message); } revert? curSum--: curSum++; testCou++; } return currentElement?currentElement:origCurrentElement; } function excIdClUnpacker() { let excArr = [], cou = 0, currExcStr = '', curExcFirst = ''; excArr['id'] = []; excArr['class'] = []; excArr['tag'] = []; if (excIdClass&&excIdClass.length > 0) { while (excIdClass[cou]) { currExcStr = excIdClass[cou]; if (currExcStr.length > 0) { curExcFirst = currExcStr.substring(0,1); switch (curExcFirst) { case '#': if (currExcStr.length > 1) { currExcStr = currExcStr.substring(1); excArr['id'].push(currExcStr); } break; case '.': if (currExcStr.length > 1) { currExcStr = currExcStr.substring(1); excArr['class'].push(currExcStr); } break; default: excArr['tag'].push(currExcStr); break; } cou++; } } } return excArr; } function asyncBlocksInsertingFunction(blockSettingArray) { try { var content_pointer = document.querySelector("#content_pointer_id"); /* orig */ var parent_with_content = content_pointer.parentElement; var lordOfElements = parent_with_content; parent_with_content = parent_with_content.parentElement; var newElement = document.createElement("div"); var elementToAdd; var elementToAddStyle; var poolbackI = 0; var counter = 0; var currentElement; var repeatableCurrentElement; var repeatableSuccess; var reCou; var curFirstPlace; var curElementCount; var curElementStep; var backElement = 0; var sumResult = 0; var curSumResult = 0; var repeat = false; var currentElementChecker = false; let containerFor6th = []; let containerFor7th = []; var posCurrentElement; var block_number; let contentLength = content_pointer.getAttribute('data-content-length'); let rejectedBlocks = content_pointer.getAttribute('data-rejected-blocks'); if (rejectedBlocks&&rejectedBlocks.length > 0) { rejectedBlocks = rejectedBlocks.split(','); } let widthCheck = false; let currentElementList; var testElement1 = null; var termorarity_parent_with_content = parent_with_content; var termorarity_parent_with_content_length = 0; var headersList = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']; for (var hc1 = 0; hc1 < headersList.length; hc1++) { termorarity_parent_with_content_length += termorarity_parent_with_content.getElementsByTagName(headersList[hc1]).length; } let detailedElementList; let ExcStrCou = 1; let detailedQueryString; let usedElement; let tagList = []; let localSumResult; let binderName; var removeClearing; var repeatableBlockIdentifier = 0 var i; if (contentLength < 1) { contentLength = parent_with_content.innerText.length } rb_tempElement = document.querySelector('#rb_tempElement'); if (!rb_tempElement) { rb_tempElement = document.createElement('span'); rb_tempElement.setAttribute('id', 'rb_tempElement'); } function getFromConstructions(currentElement) { let penyok_stoparik = 0; if (currentElement.parentElement.tagName.toLowerCase() == "blockquote") { currentElement = currentElement.parentElement; /* initTargetToInsert(blockSettingArray, 'element', currentElement); */ currentElement.parentNode.insertBefore(rb_tempElement, currentElement); rb_tempElement_check = true; sameElementAfterFromConstruction=false; } else if (["tr","td","th","thead","tbody","table"].includes(currentElement.parentElement.tagName.toLowerCase())) { currentElement = currentElement.parentElement; while (["tr","td","th","thead","tbody","table"].includes(currentElement.parentElement.tagName.toLowerCase())) { currentElement = currentElement.parentElement; } currentElement.parentNode.insertBefore(rb_tempElement, currentElement); rb_tempElement_check = true; sameElementAfterFromConstruction=false; } return currentElement; } function directClassElementDetecting(blockSettingArray, directElement) { let findQuery = 0; let directClassElementResult = []; currentElement = document.querySelectorAll(directElement); if (currentElement.length > 0) { if (blockSettingArray[i]['elementPlace'] > 1) { if (currentElement.length >= blockSettingArray[i]['elementPlace']) { currentElement = currentElement[blockSettingArray[i]['elementPlace']-1]; } else if (currentElement.length < blockSettingArray[i]['elementPlace']) { currentElement = currentElement[currentElement.length - 1]; } else { findQuery = 1; } } else if (blockSettingArray[i]['elementPlace'] < 0) { if ((currentElement.length + blockSettingArray[i]['elementPlace'] + 1) > 0) { currentElement = currentElement[currentElement.length + blockSettingArray[i]['elementPlace']]; } else { findQuery = 1; } } else { findQuery = 1; } } else { findQuery = 1; } directClassElementResult['findQuery'] = findQuery; directClassElementResult['currentElement'] = currentElement; return directClassElementResult; } function placingToH1(usedElement, elementTagToFind) { let uselessLet; currentElement = usedElement.querySelectorAll(elementTagToFind); if (currentElement.length < 1) { if (usedElement.parentElement) { uselessLet = placingToH1(usedElement.parentElement, elementTagToFind); } } return currentElement; } function elementsCleaning(excArr, elList, pwcLocal, gatherString) { let markedClass = 'rb_m_inc'; let markedClassBad = 'rb_m_exc'; let cou = 0; let cou1 = 0; let finalArr = []; let finalArrClear = []; let checkNearest; let outOfRangeCheck; let gatherRejected; let allower; try { while (elList[cou]) { allower = true; if (!elList[cou].classList.contains(markedClassBad)) { if (excArr&&excArr.length > 0) { cou1 = 0; while (excArr[cou1]) { checkNearest = elList[cou].parentElement.closest(excArr[cou1]); if (checkNearest) { checkNearest.classList.add('currClosest'); outOfRangeCheck = pwcLocal.querySelector('.currClosest'); if (outOfRangeCheck) { allower = false; checkNearest.classList.add(markedClass); gatherRejected = checkNearest.querySelectorAll(gatherString); if (gatherRejected.length > 0) { for (let i1 = 0; i1 < gatherRejected.length; i1++) { gatherRejected[i1].classList.add(markedClassBad); } } } checkNearest.classList.remove('currClosest'); } cou1++; } } if (allower===true) { elList[cou].classList.add(markedClass); /* finalArr.push(elList[cou]); */ } } cou++; } finalArr = pwcLocal.querySelectorAll('.'+markedClass+':not('+markedClassBad+')'); finalArrClear = pwcLocal.querySelectorAll('.'+markedClass+',.'+markedClassBad); if (finalArrClear&&finalArrClear.length > 0) { for (let i1 = 0; i1 < finalArrClear.length; i1++) { finalArrClear[i1].classList.remove(markedClass,markedClassBad); } } } catch (er) { console.log(er.message); } return finalArr; } function cureentElementsGather(usedElement, loopLimit = 2, localPwc = parent_with_content) { let curElementSearchRepeater = true; let curElementSearchCounter = 0; let currentElementLoc = null; let ExcludedStringBegin = ''; let ExcludedString = ''; let ExcludedStringEnd = ''; let tagListString = ''; let tagListStringExc = ''; let cou = 0; /* let excArr = excIdClUnpacker(); */ let tagListCou = 0; if (usedElement=='h1') { currentElementLoc = placingToH1(localPwc, usedElement); } else { if (usedElement=='h2-4') {tagList = ['h2','h3','h3'];} else {tagList = [usedElement]; } while (tagList[tagListCou]) { tagListString += ((cou++>0)?',':'')+tagList[tagListCou]; tagListStringExc += ':not('+tagList[tagListCou]+')'; tagListCou++; } ExcludedString = ''; if (excIdClass&&excIdClass.length > 0) { for (let i2 = 0; i2 < excIdClass.length; i2++) { if (excIdClass[i2].length > 0) { ExcludedString += (i2>0?',':'')+excIdClass[i2]+tagListStringExc; } } } detailedQueryString += tagListString+','+ExcludedString; /* console.log(detailedQueryString); */ while (curElementSearchRepeater&&curElementSearchCounter < loopLimit) { try { currentElementLoc = localPwc.querySelectorAll(tagListString); } catch (e1) {console.log(e1.message);} if (!currentElementLoc) { if (localPwc.parentElement) { localPwc = localPwc.parentElement; } else { break; } } else { currentElementLoc = elementsCleaning(excIdClass, currentElementLoc, localPwc, detailedQueryString); curElementSearchRepeater = false; } curElementSearchCounter++; } } return currentElementLoc; } function currentElementReceiver(revert, localCurEl = currentElement) { let origCurEl = localCurEl; curSumResult = sumResult; detailedElementList = localCurEl; sameElementAfterWidth = false; let testCou = 0; while (detailedElementList[curSumResult]&&sameElementAfterWidth==false&&testCou < 8) { localCurEl = detailedElementList[curSumResult]; try { sameElementAfterWidth=true; sameElementAfterWidth = checkAdsWidth(content_pointer, blockSettingArray[i]["elementPosition"], localCurEl); } catch (ex) { console.log(ex.message); } revert? curSumResult--: curSumResult++; testCou++; } if (localCurEl) { currentElementChecker = true; } return localCurEl?localCurEl:origCurEl; } function endingActions(block_number) { usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; } for (i = 0; i < blockSettingArray.length; i++) { currentElement = null; currentElementChecker = false; sameElementAfterWidth = false; sameElementAfterExcClassId = false; sameElementAfterFromConstruction = false; tagListCou = 0; poolbackI = 0; detailedQueryString = ''; binderName = elementBinderNameGenerator(); try { if (!blockSettingArray[i]["text"] ||(blockSettingArray[i]["text"]&&blockSettingArray[i]["text"].length < 1) ||(rejectedBlocks&&rejectedBlocks.includes(blockSettingArray[i]["id"])) ||((blockSettingArray[i]["maxHeaders"] > 0)&&(blockSettingArray[i]["maxHeaders"] < termorarity_parent_with_content_length)) ||((blockSettingArray[i]["maxSymbols"] > 0)&&(blockSettingArray[i]["maxSymbols"] < contentLength) ||(content_pointer.classList.contains("hard-content")&&blockSettingArray[i]["setting_type"]!=3)) ) { blockSettingArray.splice(i--, 1); poolbackI = 1; continue; } block_number = 0; elementToAdd = document.createElement("div"); elementToAdd.classList.add("percentPointerClass"); elementToAdd.classList.add("marked"); if (blockSettingArray[i]["sc"]==1) { elementToAdd.classList.add("scMark"); } elementToAdd.innerHTML = blockSettingArray[i]["text"]; elementToAdd.dataset.rbinder = binderName; block_number = elementToAdd.children[0].attributes['data-id'].value; if (blockDuplicate == 'no') { if (usedBlockSettingArrayIds.length > 0) { for (let i1 = 0; i1 < usedBlockSettingArrayIds.length; i1++) { if (block_number==usedBlockSettingArrayIds[i1]) { blockSettingArray.splice(i--, 1); poolbackI = 1; break; } } if (poolbackI == 1) { continue; } } } elementToAddStyle = createStyleElement(block_number, blockSettingArray[i]["elementCss"]); if (elementToAddStyle&&elementToAddStyle!='default') { elementToAdd.style.textAlign = elementToAddStyle; } if ((blockSettingArray[i]["minHeaders"] > 0)&&(blockSettingArray[i]["minHeaders"] > termorarity_parent_with_content_length)) {continue;} if (blockSettingArray[i]["minSymbols"] > contentLength) {continue;} if (blockSettingArray[i]["setting_type"] == 1) { currentElement = cureentElementsGather(blockSettingArray[i]["element"].toLowerCase()); if (currentElement) { if (blockSettingArray[i]["elementPlace"] < 0) { sumResult = currentElement.length + blockSettingArray[i]["elementPlace"]; if (sumResult >= 0 && sumResult < currentElement.length) { currentElement = currentElementReceiver(true); } } else { sumResult = blockSettingArray[i]["elementPlace"] - 1; if (sumResult < currentElement.length) { currentElement = currentElementReceiver(false); } } } if (currentElement != undefined && currentElement != null && currentElementChecker) { posCurrentElement = initTargetToInsert(blockSettingArray[i]["elementPosition"], 'element', currentElement); currentElement.parentNode.insertBefore(elementToAdd, posCurrentElement); currentElement.classList.add('rbinder-'+binderName); elementToAdd.classList.remove('coveredAd'); usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; rb_tempElement_check = false; } else { repeat = true; } } else if (blockSettingArray[i]["setting_type"] == 2) { if (blockDuplicate == 'no') { blockSettingArray[i]["elementCount"] = 1; } repeatableCurrentElement = []; reCou = 0; curFirstPlace = blockSettingArray[i]["firstPlace"]; curElementCount = blockSettingArray[i]["elementCount"]; curElementStep = blockSettingArray[i]["elementStep"]; repeatableSuccess = false; elementToAddStyle = createStyleElement(block_number, blockSettingArray[i]["elementCss"]); repeatableCurrentElement = cureentElementsGather(blockSettingArray[i]["element"].toLowerCase()); if (repeatableCurrentElement) { for (let i1 = 0; i1 < blockSettingArray[i]["elementCount"]; i1++) { currentElementChecker = false; let repElementToAdd = document.createElement("div"); repElementToAdd.classList.add("percentPointerClass"); repElementToAdd.classList.add("marked"); if (blockSettingArray[i]["sc"]==1) { repElementToAdd.classList.add("scMark"); } repElementToAdd.classList.add("repeatable-mark-"+repeatableBlockIdentifier); repElementToAdd.innerHTML = blockSettingArray[i]["text"]; if (elementToAddStyle&&elementToAddStyle!='default') { repElementToAdd.style.textAlign = elementToAddStyle; } sumResult = Math.round(parseInt(blockSettingArray[i]["firstPlace"]) + (i1*parseInt(blockSettingArray[i]["elementStep"])) - 1); if (sumResult < repeatableCurrentElement.length) { currentElement = currentElementReceiver(false, repeatableCurrentElement); } if (currentElement != undefined && currentElement != null && currentElementChecker) { posCurrentElement = initTargetToInsert(blockSettingArray[i]["elementPosition"], 'element', currentElement); currentElement.parentNode.insertBefore(repElementToAdd, posCurrentElement); currentElement.classList.add('rbinder-'+binderName); repElementToAdd.classList.remove('coveredAd'); curFirstPlace = sumResult + parseInt(blockSettingArray[i]["elementStep"]) + 1; curElementCount--; repeatableSuccess = true; } else { repeatableSuccess = false; break; } } } if (repeatableSuccess==true) { usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; repeatableBlockIdentifier++; } else { if (!blockSettingArray[i]["unsuccess"]) { blockSettingArray[i]["unsuccess"] = 1; } else { blockSettingArray[i]["unsuccess"] = Math.round(blockSettingArray[i]["unsuccess"] + 1); } if (blockSettingArray[i]["unsuccess"] > 10) { usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; } else { blockSettingArray[i]["firstPlace"] = curFirstPlace; blockSettingArray[i]["elementCount"] = curElementCount; blockSettingArray[i]["elementStep"] = curElementStep; repeat = true; } } } else if (blockSettingArray[i]["setting_type"] == 3) { let elementTypeSymbol = ''; let elementSpaceSymbol = ''; let elementName = ''; let elementType = ''; let elementTag = ''; let findQuery = 0; let directClassResult = []; let directElement = blockSettingArray[i]["directElement"].trim(); if (directElement.search('#') > -1) { findQuery = 1; } else if ((directElement.search('#') < 0)&&(directElement.search('.') > -1)) { directClassResult = directClassElementDetecting(blockSettingArray, directElement); findQuery = directClassResult['findQuery']; currentElement = directClassResult['currentElement']; } if (findQuery == 1) { currentElement = document.querySelector(directElement); } if (currentElement) { currentElementChecker = true; } if (currentElement != undefined && currentElement != null && currentElementChecker) { posCurrentElement = initTargetToInsert(blockSettingArray[i]["elementPosition"], 'element', currentElement); currentElement.parentNode.insertBefore(elementToAdd, posCurrentElement); elementToAdd.classList.remove('coveredAd'); currentElement.classList.add('rbinder-'+binderName); usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; } else { repeat = true; } } else if (blockSettingArray[i]["setting_type"] == 4) { document.querySelector("#content_pointer_id").parentElement.append(elementToAdd); usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; } else if (blockSettingArray[i]["setting_type"] == 5) { let currentElementList = cureentElementsGather('p', 1, content_pointer.parentElement); if (currentElementList&¤tElementList.length > 0) { let pCount = currentElementList.length; let elementNumber = Math.round(pCount/2); if (pCount > 1) { currentElement = currentElementList[elementNumber+1]; } if (currentElement != undefined && currentElement != null) { if (pCount > 1) { currentElement.parentNode.insertBefore(elementToAdd, currentElement); } else { currentElement.parentNode.insertBefore(elementToAdd, currentElement.nextSibling); } elementToAdd.classList.remove('coveredAd'); currentElement.classList.add('rbinder-'+binderName); usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; } else { repeat = true; } } else { repeat = true; } } else if (blockSettingArray[i]["setting_type"] == 6) { if (containerFor6th.length > 0) { for (let j = 0; j < containerFor6th.length; j++) { if (containerFor6th[j]["elementPlace"]<blockSettingArray[i]["elementPlace"]) { /* continue; */ if (j == containerFor6th.length-1) { containerFor6th.push(blockSettingArray[i]); /* usedAdBlocksArray.push(checkIfBlockUsed); */ usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; break; } } else { for (let k = containerFor6th.length-1; k > j-1; k--) { containerFor6th[k + 1] = containerFor6th[k]; } containerFor6th[j] = blockSettingArray[i]; /* usedAdBlocksArray.push(checkIfBlockUsed); */ usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; break; } } } else { containerFor6th.push(blockSettingArray[i]); usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; } /* vidpravutu v vidstiinuk dlya 6ho tipa */ } else if (blockSettingArray[i]["setting_type"] == 7) { if (containerFor7th.length > 0) { for (let j = 0; j < containerFor7th.length; j++) { if (containerFor7th[j]["elementPlace"]<blockSettingArray[i]["elementPlace"]) { /* continue; */ if (j == containerFor7th.length-1) { containerFor7th.push(blockSettingArray[i]); usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; break; } } else { for (let k = containerFor7th.length-1; k > j-1; k--) { containerFor7th[k + 1] = containerFor7th[k]; } containerFor7th[j] = blockSettingArray[i]; usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; break; } } } else { containerFor7th.push(blockSettingArray[i]); usedBlockSettingArrayIds.push(block_number); blockSettingArray.splice(i--, 1); poolbackI = 1; } /* vidpravutu v vidstiinuk dlya 7ho tipa */ } } catch (e) { console.log(e.message); } } if (containerFor6th.length > 0) { percentInserter(lordOfElements, containerFor6th); } if (containerFor7th.length > 0) { symbolInserter(lordOfElements, containerFor7th); } shortcodesInsert(); let stopper = 0; window.addEventListener('load', function () { if (repeat = true) { setTimeout(function () { /* asyncBlocksInsertingFunction(blockSettingArray, contentLength) */ asyncBlocksInsertingFunction(blockSettingArray); }, 100); } }); } catch (e) { console.log(e.message); } } function asyncFunctionLauncher() { if (window.jsInputerLaunch !== undefined &&[15, 10].includes(jsInputerLaunch) &&(typeof asyncBlocksInsertingFunction !== 'undefined' ) &&(typeof asyncBlocksInsertingFunction === 'function') &&typeof endedSc!=='undefined'&& typeof endedCc!=='undefined'&& typeof usedAdBlocksArray!=='undefined'&& typeof usedBlockSettingArrayIds!=='undefined'&& typeof sameElementAfterWidth!=='undefined'&& typeof sameElementAfterExcClassId!=='undefined'&& typeof sameElementAfterFromConstruction!=='undefined'&& typeof rb_tempElement_check!=='undefined'&& typeof rb_tempElement!=='undefined'&& typeof jsInputerLaunch!=='undefined') { /* asyncBlocksInsertingFunction(blockSettingArray, contentLength); */ asyncBlocksInsertingFunction(blockSettingArray); if (!endedSc) { shortcodesInsert(); } if (!endedCc) { /* clearUnsuitableCache(0); */ } /* blocksReposition(); cachePlacing(); symbolMarkersPlaced(); */ } else { setTimeout(function () { asyncFunctionLauncher(); }, 50); } } /* asyncFunctionLauncher(); */ function asyncInsertingsInsertingFunction(insertingsArray) { let currentElementForInserting = 0; let currentElementToMove = 0; let positionElement = 0; let position = 0; let insertToAdd = 0; let postId = 0; let repeatSearch = 0; if (insertingsArray&&insertingsArray.length > 0) { for (let i = 0; i < insertingsArray.length; i++) { if (!insertingsArray[i]['used']||(insertingsArray[i]['used']&&insertingsArray[i]['used']==0)) { positionElement = insertingsArray[i]['position_element']; position = insertingsArray[i]['position']; insertToAdd = insertingsArray[i]['content']; postId = insertingsArray[i]['postId']; currentElementForInserting = document.querySelector(positionElement); currentElementToMove = document.querySelector('.coveredInsertings[data-id="'+postId+'"]'); if (currentElementForInserting) { if (position==0) { currentElementForInserting.parentNode.insertBefore(currentElementToMove, currentElementForInserting); currentElementToMove.classList.remove('coveredInsertings'); insertingsArray[i]['used'] = 1; } else { currentElementForInserting.parentNode.insertBefore(currentElementToMove, currentElementForInserting.nextSibling); currentElementToMove.classList.remove('coveredInsertings'); insertingsArray[i]['used'] = 1; } } else { repeatSearch = 1; } } } } if (repeatSearch == 1) { setTimeout(function () { asyncInsertingsInsertingFunction(insertingsArray); }, 100) } } function insertingsFunctionLaunch() { if (window.jsInsertingsLaunch !== undefined&&jsInsertingsLaunch == 25) { asyncInsertingsInsertingFunction(insertingsArray); } else { setTimeout(function () { insertingsFunctionLaunch(); }, 100) } } function setLongCache() { let xhttp = new XMLHttpRequest(); let sendData = 'action=setLongCache&type=longCatching'; xhttp.onreadystatechange = function(redata) { if (this.readyState == 4 && this.status == 200) { console.log('long cache deployed'); } }; xhttp.open("POST", rb_ajaxurl, true); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.send(sendData); } function cachePlacing(alert_type, errorInfo=null) { let adBlocks = document.querySelectorAll('.percentPointerClass .content_rb, .percentPointerClass .cnt32_rl_bg_str'); let curAdBlock; let okStates = ['done','refresh-wait','no-block','fetched']; /* let adId = -1; */ let blockStatus = null; let blockId; if (typeof cachedBlocksArray !== 'undefined'&&cachedBlocksArray&&cachedBlocksArray.length > 0&&adBlocks&&adBlocks.length > 0) { for (let i = 0; i < adBlocks.length; i++) { blockStatus = null; blockStatus = adBlocks[i]['dataset']['state']; if (!blockStatus) { blockId = adBlocks[i]['dataset']['id']; if (cachedBlocksArray[blockId]) { /* adBlocks[i].innerHTML = cachedBlocksArray[blockId]; */ jQuery(adBlocks[i]).html(cachedBlocksArray[blockId]); } } } } if (alert_type&&alert_type=='high') { setLongCache(); } } function symbolInserter(lordOfElements, containerFor7th) { try { var textLength; let tlArray = []; let tlArrayCou = 0; var currentChildrenLength = 0; /* var possibleTagsArray = ["P", "H1", "H2", "H3", "H4", "H5", "H6", "DIV", "OL", "UL", "LI", "BLOCKQUOTE", "INDEX", "TABLE", "ARTICLE"]; */ var possibleTagsArray; if (typeof tagsListForTextLength!=="undefined") { possibleTagsArray = tagsListForTextLength; } else { possibleTagsArray = ["P", "H1", "H2", "H3", "H4", "H5", "H6", "DIV", "BLOCKQUOTE", "INDEX", "ARTICLE"]; } let possibleTagsInCheck = ["DIV", "INDEX"]; let previousBreak = 0; let needleLength; let currentSumLength; let elementToAdd; let elementToBind; let elementToAddStyle; let block_number; let excArr = []; let binderName; function textLengthGathererNew(lordOfElementsLoc, excArr) { let allowed; let cou1; try { for (let i = 0; i < lordOfElementsLoc.children.length; i++) { if (possibleTagsArray.includes(lordOfElementsLoc.children[i].tagName) &&!lordOfElementsLoc.children[i].classList.contains("percentPointerClass") &&lordOfElementsLoc.children[i].id!="toc_container" ) { if (possibleTagsInCheck.includes(lordOfElementsLoc.children[i].tagName) &&(lordOfElementsLoc.children[i].children.length > 1) ) { allowed = true; if (lordOfElementsLoc.children[i].id&&excArr['id'].length > 0) { cou1 = 0; while (excArr['id'][cou1]) { if (lordOfElementsLoc.children[i].id.toLowerCase()==excArr['id'][cou1].toLowerCase()) { allowed = false; break; } cou1++; } } if (lordOfElementsLoc.children[i].classList.length > 0&&excArr['class'].length > 0) { cou1 = 0; while (excArr['class'][cou1]) { if (lordOfElementsLoc.children[i].classList.contains(excArr['class'][cou1])) { allowed = false; break; } cou1++; } } if (excArr['tag'].length > 0) { cou1 = 0; while (excArr['tag'][cou1]) { if (lordOfElementsLoc.children[i].tagName.toLowerCase()==excArr['tag'][cou1].toLowerCase()) { allowed = false; break; } cou1++; } } if (allowed==true) { textLengthGathererNew(lordOfElementsLoc.children[i], excArr); continue; } } textLength = textLength + lordOfElementsLoc.children[i].innerText.length; tlArray[tlArrayCou] = []; tlArray[tlArrayCou]['tag'] = lordOfElementsLoc.children[i].tagName; tlArray[tlArrayCou]['length'] = lordOfElementsLoc.children[i].innerText.length; tlArray[tlArrayCou]['element'] = lordOfElementsLoc.children[i]; tlArrayCou++; } } } catch (er) { console.log(er.message); } return true; } function possibleTagsInCheckConfirmer(possibleTagsArray, possibleTagsInCheck) { if (possibleTagsArray.includes("LI")) { if (possibleTagsArray.includes("UL")) { possibleTagsInCheck.push("UL"); } if (possibleTagsArray.includes("OL")) { possibleTagsInCheck.push("OL"); } } return false; } if (!document.getElementById("markedSpan1")) { textLength = 0; possibleTagsInCheckConfirmer(possibleTagsArray, possibleTagsInCheck); excArr = excIdClUnpacker(); textLengthGathererNew(lordOfElements, excArr); for (let i = 0; i < containerFor7th.length; i++) { previousBreak = 0; currentChildrenLength = 0; currentSumLength = 0; needleLength = Math.abs(containerFor7th[i]['elementPlace']); binderName = elementBinderNameGenerator(); elementToAdd = document.createElement("div"); elementToAdd.classList.add("percentPointerClass"); elementToAdd.classList.add("marked"); if (containerFor7th[i]["sc"]==1) { elementToAdd.classList.add("scMark"); } elementToAdd.dataset.rbinder = binderName; elementToAdd.innerHTML = containerFor7th[i]["text"]; block_number = elementToAdd.children[0].attributes['data-id'].value; if (!elementToAdd) { continue; } elementToAddStyle = createStyleElement(block_number, containerFor7th[i]["elementCss"]); if (elementToAddStyle&&elementToAddStyle!='default') { elementToAdd.style.textAlign = elementToAddStyle; } if (containerFor7th[i]['elementPlace'] < 0) { for (let j = tlArray.length-1; j > -1; j--) { currentSumLength = currentSumLength + tlArray[j]['length']; if (needleLength < currentSumLength) { elementToBind = tlArray[j]['element']; elementToBind = currentElementReceiverSpec(true, j, tlArray, elementToBind); elementToBind.parentNode.insertBefore(elementToAdd, elementToBind); elementToBind.classList.add('rbinder-'+binderName); elementToAdd.classList.remove('coveredAd'); break; } } } else if (containerFor7th[i]['elementPlace'] == 0) { elementToBind = tlArray[0]['element']; elementToBind.parentNode.insertBefore(elementToAdd, elementToBind); elementToBind.classList.add('rbinder-'+binderName); elementToAdd.classList.remove('coveredAd'); } else { for (let j = 0; j < tlArray.length; j++) { currentSumLength = currentSumLength + tlArray[j]['length']; if (needleLength < currentSumLength) { elementToBind = tlArray[j]['element']; elementToBind = currentElementReceiverSpec(false, j, tlArray, elementToBind); elementToBind.parentNode.insertBefore(elementToAdd, elementToBind.nextSibling); elementToBind.classList.add('rbinder-'+binderName); elementToAdd.classList.remove('coveredAd'); break; } } } } var spanMarker = document.createElement("span"); spanMarker.setAttribute("id", "markedSpan1"); lordOfElements.prepend(spanMarker); } } catch (e) { console.log(e); } } function percentInserter(lordOfElements, containerFor6th) { try { var textLength; var textNeedyLength = 0; var arrCouLast = []; var possibleTagsArray; if (typeof tagsListForTextLength!=="undefined") { possibleTagsArray = tagsListForTextLength; } else { possibleTagsArray = ["P", "H1", "H2", "H3", "H4", "H5", "H6", "DIV", "OL", "UL", "LI", "BLOCKQUOTE", "INDEX", "TABLE", "ARTICLE"]; } var possibleTagsInCheck = ["DIV", "INDEX"]; let elementToAdd; var elementToBind; let elementToAddStyle; let block_number; let tlArray = []; let tlArrayCou = 0; let excArr = []; var binderName; /* var checkIfBlockUsed = 0; */ function textLengthGathererNew(lordOfElementsLoc, excArr) { let allowed; let cou1; try { for (let i = 0; i < lordOfElementsLoc.children.length; i++) { if (possibleTagsArray.includes(lordOfElementsLoc.children[i].tagName) &&!lordOfElementsLoc.children[i].classList.contains("percentPointerClass") &&lordOfElementsLoc.children[i].id!="toc_container" ) { if (possibleTagsInCheck.includes(lordOfElementsLoc.children[i].tagName) &&(lordOfElementsLoc.children[i].children.length > 1) ) { allowed = true; if (lordOfElementsLoc.children[i].id&&excArr['id'].length > 0) { cou1 = 0; while (excArr['id'][cou1]) { if (lordOfElementsLoc.children[i].id.toLowerCase()==excArr['id'][cou1].toLowerCase()) { allowed = false; break; } cou1++; } } if (lordOfElementsLoc.children[i].classList.length > 0&&excArr['class'].length > 0) { cou1 = 0; while (excArr['class'][cou1]) { if (lordOfElementsLoc.children[i].classList.contains(excArr['class'][cou1])) { allowed = false; break; } cou1++; } } if (excArr['tag'].length > 0) { cou1 = 0; while (excArr['tag'][cou1]) { if (lordOfElementsLoc.children[i].tagName.toLowerCase()==excArr['tag'][cou1].toLowerCase()) { allowed = false; break; } cou1++; } } if (allowed==true) { textLengthGathererNew(lordOfElementsLoc.children[i], excArr); continue; } } textLength = textLength + lordOfElementsLoc.children[i].innerText.length; tlArray[tlArrayCou] = []; tlArray[tlArrayCou]['tag'] = lordOfElementsLoc.children[i].tagName; tlArray[tlArrayCou]['tlength'] = lordOfElementsLoc.children[i].innerText.length; tlArray[tlArrayCou]['lengthSum'] = textLength; tlArray[tlArrayCou]['element'] = lordOfElementsLoc.children[i]; tlArrayCou++; } } } catch (er) { console.log(er.message); } return true; } function possibleTagsInCheckConfirmer(possibleTagsArray, possibleTagsInCheck) { if (possibleTagsArray.includes("LI")) { if (possibleTagsArray.includes("UL")) { possibleTagsInCheck.push("UL"); } if (possibleTagsArray.includes("OL")) { possibleTagsInCheck.push("OL"); } } return false; } function insertByPercents() { let localMiddleValue = 0; for (let j = 0; j < containerFor6th.length; j++) { textNeedyLength = Math.round(textLength * (containerFor6th[j]["elementPlace"]/100)); for (let i = 0; i < tlArray.length; i++) { if (tlArray[i]['lengthSum'] >= textNeedyLength) { binderName = elementBinderNameGenerator(); elementToAdd = document.createElement("div"); elementToAdd.classList.add("percentPointerClass"); elementToAdd.classList.add("marked"); if (containerFor6th[j]["sc"]==1) { elementToAdd.classList.add("scMark"); } elementToAdd.dataset.rbinder = binderName; elementToAdd.innerHTML = containerFor6th[j]["text"]; if (!elementToAdd) { break; } block_number = elementToAdd.children[0].attributes['data-id'].value; elementToAddStyle = createStyleElement(block_number, containerFor6th[j]["elementCss"]); if (elementToAddStyle&&elementToAddStyle!='default') { elementToAdd.style.textAlign = elementToAddStyle; } if (i > 0) { localMiddleValue = tlArray[i]['lengthSum'] - Math.round(tlArray[i]['tlength']/2); } else { localMiddleValue = Math.round(tlArray[i]['tlength']/2); } elementToBind = tlArray[i]['element']; currentElementReceiverSpec(false, i, tlArray, elementToBind); if (textNeedyLength < localMiddleValue) { elementToBind.parentNode.insertBefore(elementToAdd, elementToBind); } else { elementToBind.parentNode.insertBefore(elementToAdd, elementToBind.nextSibling); } elementToBind.classList.add('rbinder-'+binderName); elementToAdd.classList.remove('coveredAd'); break; } } } return false; } function clearTlMarks() { let marksForDeleting = document.querySelectorAll('.textLengthMarker'); if (marksForDeleting.length > 0) { for (let i = 0; i < marksForDeleting.length; i++) { marksForDeleting[i].remove(); } } } if (!document.getElementById("markedSpan")) { textLength = 0; excArr = excIdClUnpacker(); possibleTagsInCheckConfirmer(possibleTagsArray, possibleTagsInCheck); textLengthGathererNew(lordOfElements, excArr); insertByPercents(); clearTlMarks(); var spanMarker = document.createElement("span"); spanMarker.setAttribute("id", "markedSpan"); lordOfElements.prepend(spanMarker); } } catch (e) { console.log(e.message); } } function saveContentBlock(contentContainer) { try { console.log('content gather save function entered'); let xhttp = new XMLHttpRequest(); let sendData = 'action=RFWP_saveContentContainer&type=gatherContentBlock&data='+contentContainer; /* let sendData = 'action=test123&type=gatherContentBlock'; */ xhttp.onreadystatechange = function(redata) { if (this.readyState == 4 && this.status == 200) { console.log('content gather succeed'); } else { console.log('content gather gone wrong'); } }; xhttp.open("POST", rb_ajaxurl, true); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.send(sendData); } catch (er) { console.log('content gather error: '+er+';'); } } function gatherContentBlock() { let cPointer = null, cPointerParent = null, cPointerParentString = null, classWords = ['content','entry','post','wrap','description','taxonomy'], classChoosed = false; cPointer = document.querySelector('#content_pointer_id'); if (cPointer) { if (jsInputerLaunch!==15) { return false; } cPointerParent = cPointer.parentElement; if (cPointerParent) { if (cPointerParent.id) { cPointerParentString = '#'+cPointerParent.id; } else { if (cPointerParent.classList.length > 0) { cPointerParentString = '.'+cPointerParent.classList[0]; for (let j = 0; j < classWords.length; j++) { for (let i = 0; i < cPointerParent.classList.length; i++) { if (cPointerParent.classList[i].includes(classWords[j])) { cPointerParentString = '.'+cPointerParent.classList[i]; classChoosed = true; break; } } if (classChoosed===true) { break; } } } } if (cPointerParentString) { console.log('content gather content block detected'); /* cPointerParentString = JSON.stringify(cPointerParentString); */ saveContentBlock(cPointerParentString); } } } else { console.log('content gather delayed'); setTimeout(function () { gatherContentBlock(); }, 500); } } function removeMarginClass(blockObject) { if (blockObject&&(typeof jsInputerLaunch==='object')) { let binderName, neededElement, currentDirection, seekerIterationCount, currentSubling; binderName = blockObject.dataset.rbinder; if (binderName) { seekerIterationCount = 0; currentDirection = 'before'; do { seekerIterationCount++; currentSubling = blockObject.previousSibling; if (currentSubling&¤tSubling.classList.contains('rbinder-'+binderName)) { neededElement = currentSubling; } } while (currentSubling&&!neededElement&&seekerIterationCount < 5); if (!neededElement) { seekerIterationCount = 0; currentDirection = 'after'; do { seekerIterationCount++; currentSubling = blockObject.previousSibling; if (currentSubling&¤tSubling.classList.contains('rbinder-'+binderName)) { neededElement = currentSubling; } } while (currentSubling&&!neededElement&&seekerIterationCount < 5); } // neededElement = document.querySelector('.rfwp_removedMarginTop.rbinder-'+binderName+', .rfwp_removedMarginBottom.rbinder-'+binderName); if (neededElement) { if (currentDirection === 'before') { neededElement.classList.remove('rfwp_removedMarginTop'); } else { neededElement.classList.remove('rfwp_removedMarginBottom'); } } } } return false; } function elementBinderNameGenerator() { let binderName = '', checkedElements, passed = false; while (passed===false) { binderName = Math.floor(Math.random()*100000); checkedElements = document.querySelectorAll('[data-rbinder="'+binderName+'"]'); if (checkedElements.length < 1) { passed = true; } } return binderName; } /* if ((typeof jsInputerLaunch!=='undefined'&&[10,15].includes(jsInputerLaunch))&&(document.readyState === "complete" || (document.readyState !== "loading" && !document.documentElement.doScroll))) { gatherContentBlock(); } else { setTimeout(gatherContentBlock,100); } /**/</script><script>if (typeof rb_ajaxurl==='undefined') {var rb_ajaxurl = 'https://z1v.ru/wp-admin/admin-ajax.php';}var nReadyBlock = false; var fetchedCounter = 0; function sendReadyBlocksNew(blocks) { let xhttp = new XMLHttpRequest(); let sendData = 'action=saveAdBlocks&type=blocksGethering&data='+blocks; xhttp.onreadystatechange = function(redata) { if (this.readyState == 4 && this.status == 200) { console.log('cache succeed'); } }; xhttp.open("POST", rb_ajaxurl, true); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.send(sendData); } function gatherReadyBlocks() { let blocks = {}; let counter1 = 0; let gatheredBlocks = document.getElementsByClassName('content_rb cnt32_rl_bg_str'); let checker = 0; let adContent = ''; let curState = ''; let thisData = []; let sumData = []; let newBlocks = ''; let thisDataString = ''; if (gatheredBlocks.length > 0) { blocks.data = {}; for (let i = 0; i < gatheredBlocks.length; i++) { curState = gatheredBlocks[i]['dataset']["state"].toLowerCase(); checker = 0; if (curState&&gatheredBlocks[i]['innerHTML'].length > 0&&gatheredBlocks[i]['dataset']['aid'] > 0&&curState!='no-block') { if (gatheredBlocks[i]['innerHTML'].length > 0) { checker = 1; } if (checker==1) { blocks.data[counter1] = {id:gatheredBlocks[i]['dataset']['id'],code:gatheredBlocks[i]['dataset']['aid']}; counter1++; } } } blocks = JSON.stringify(blocks); sendReadyBlocksNew(blocks); } } function timeBeforeGathering() { let gatheredBlocks = document.getElementsByClassName('content_rb cnt32_rl_bg_str'); let okStates = ['done','refresh-wait','no-block','fetched']; let curState = ''; for (let i = 0; i < gatheredBlocks.length; i++) { if (!gatheredBlocks[i]['dataset']["state"]) { nReadyBlock = true; break; } else { curState = gatheredBlocks[i]['dataset']["state"].toLowerCase(); if (!okStates.includes(curState)) { nReadyBlock = true; break; } else if (curState=='fetched'&&fetchedCounter < 3) { fetchedCounter++; nReadyBlock = true; break; } } } if (nReadyBlock == true) { nReadyBlock = false; setTimeout(timeBeforeGathering,2000); } else { gatherReadyBlocks(); } } function launchTimeBeforeGathering() { if (document.readyState === "complete" || (document.readyState !== "loading" && !document.documentElement.doScroll)) { timeBeforeGathering(); } else { setTimeout(launchTimeBeforeGathering,100); } } launchTimeBeforeGathering(); </script><script src='https://z1v.ru/wp-includes/js/dist/vendor/wp-polyfill.js' id='wp-polyfill-js'></script> <script id='wp-polyfill-js-after'> ( 'fetch' in window ) || document.write( '<script src="https://z1v.ru/wp-includes/js/dist/vendor/wp-polyfill-fetch.js"></scr' + 'ipt>' );( document.contains ) || document.write( '<script src="https://z1v.ru/wp-includes/js/dist/vendor/wp-polyfill-node-contains.js"></scr' + 'ipt>' );( window.DOMRect ) || document.write( '<script src="https://z1v.ru/wp-includes/js/dist/vendor/wp-polyfill-dom-rect.js"></scr' + 'ipt>' );( window.URL && window.URL.prototype && window.URLSearchParams ) || document.write( '<script src="https://z1v.ru/wp-includes/js/dist/vendor/wp-polyfill-url.js"></scr' + 'ipt>' );( window.FormData && window.FormData.prototype.keys ) || document.write( '<script src="https://z1v.ru/wp-includes/js/dist/vendor/wp-polyfill-formdata.js"></scr' + 'ipt>' );( Element.prototype.matches && Element.prototype.closest ) || document.write( '<script src="https://z1v.ru/wp-includes/js/dist/vendor/wp-polyfill-element-closest.js"></scr' + 'ipt>' );( 'objectFit' in document.documentElement.style ) || document.write( '<script src="https://z1v.ru/wp-includes/js/dist/vendor/wp-polyfill-object-fit.js"></scr' + 'ipt>' ); </script> <script type='text/javascript' id='contact-form-7-js-extra'> /* <![CDATA[ */ var wpcf7 = {"api":{"root":"https:\/\/z1v.ru\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"}; /* ]]> */ </script> <script src='https://z1v.ru/wp-content/plugins/contact-form-7/includes/js/index.js' id='contact-form-7-js'></script> <script type='text/javascript' id='reboot-scripts-js-extra'> /* <![CDATA[ */ var settings_array = {"rating_text_average":"\u0441\u0440\u0435\u0434\u043d\u0435\u0435","rating_text_from":"\u0438\u0437","lightbox_display":"1","sidebar_fixed":"1"}; var wps_ajax = {"url":"https:\/\/z1v.ru\/wp-admin\/admin-ajax.php","nonce":"7bb3570f42"}; var wpshop_views_counter_params = {"url":"https:\/\/z1v.ru\/wp-admin\/admin-ajax.php","nonce":"7bb3570f42","is_postviews_enabled":"","post_id":"98596"}; /* ]]> */ </script> <script src='https://z1v.ru/wp-content/themes/reboot/assets/js/scripts.min.js' id='reboot-scripts-js'></script> <script src='https://z1v.ru/wp-includes/js/comment-reply.js' id='comment-reply-js'></script> <script async="async" src='https://z1v.ru/wp-content/plugins/akismet/_inc/form.js' id='akismet-form-js'></script> <style>.clearfy-cookie { position:fixed; left:0; right:0; bottom:0; padding:12px; color:#555555; background:#ffffff; -webkit-box-shadow:0 0 15px rgba(0,0,0,.2); -moz-box-shadow:0 0 15px rgba(0,0,0,.2); box-shadow:0 0 15px rgba(0,0,0,.2); z-index:9999; font-size: 13px; transition: .3s; }.clearfy-cookie--left { left: 20px; bottom: 20px; right: auto; max-width: 400px; margin-right: 20px; }.clearfy-cookie--right { left: auto; bottom: 20px; right: 20px; max-width: 400px; margin-left: 20px; }.clearfy-cookie.clearfy-cookie-hide { transform: translateY(150%) translateZ(0); opacity: 0; }.clearfy-cookie-container { max-width:1170px; margin:0 auto; text-align:center; }.clearfy-cookie-accept { background:#4b8e2c; color:#fff; border:0; padding:.4em .8em; margin: 0 .5em; font-size: 13px; cursor: pointer; }.clearfy-cookie-accept:hover,.clearfy-cookie-accept:focus { opacity: .9; }</style><div id="clearfy-cookie" class="clearfy-cookie clearfy-cookie-hide clearfy-cookie--bottom"> <div class="clearfy-cookie-container"> Этот сайт использует cookie для хранения данных. Продолжая использовать сайт, Вы даете свое согласие на работу с этими файлами. <button id="clearfy-cookie-accept" class="clearfy-cookie-accept">OK</button> </div></div><script>var cookie_clearfy_hide = document.cookie.replace(/(?:(?:^|.*;\s*)clearfy_cookie_hide\s*\=\s*([^;]*).*$)|^.*$/, "$1");if ( ! cookie_clearfy_hide.length ) { document.getElementById("clearfy-cookie").classList.remove("clearfy-cookie-hide");} document.getElementById("clearfy-cookie-accept").onclick = function() { document.getElementById("clearfy-cookie").className += " clearfy-cookie-hide"; var clearfy_cookie_date = new Date(new Date().getTime() + 31536000 * 1000); document.cookie = "clearfy_cookie_hide=yes; path=/; expires=" + clearfy_cookie_date.toUTCString(); setTimeout(function() { document.getElementById("clearfy-cookie").parentNode.removeChild( document.getElementById("clearfy-cookie") ); }, 300);}</script> </body> </html> <!-- Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/ Object Caching 202/236 objects using disk Page Caching using disk Минификация с использованием disk Database Caching 127/150 queries in 0.592 seconds using disk Served from: z1v.ru @ 2021-06-13 23:05:56 by W3 Total Cache -->