The second day I can not figure it out. On the site at the beginning of the body is connected arcticmodal-0.3.min.js

There is also a popup, which is called once a day for one user and it works. Here is his code

(function ($) { $(function () { // Проверим, есть ли запись в куках о посещении посетителя // Если запись есть - ничего не делаем if (!$.cookie('was')) { // Покажем всплывающее окно $('#boxUserFirstInfo').arcticmodal({ closeOnOverlayClick: true , closeOnEsc: true }); } // Запомним в куках, что посетитель к нам уже заходил $.cookie('was', true, { expires: 1 , path: '/' }); }) })(jQuery) 

But I'm trying to make some more pop-up pop-up pop-ups and hang on the element

onclick="$('.pop-b').arcticmodal();"

In fact - I have a lot of popups with the .pop-b class. Here is the code:

 <ul class="on_ul"> <li onclick="$('.pop-b').arcticmodal();"><span>Сбор информации и Анализ существующей ситуации с отходами, подготовка концептуального предложения и разработка дорожной карты</span> </li> <div style="display: none;"> <div class="box-modal pop-b" id="boxUserFirstInfo1"> <div class="box-modal_close arcticmodal-close"></div> <h3><span class="green">ПОСЛЕДНИЕ Н<span class="line">ОВОС</span>ТИ</span> КОМПАНИИ</h3> <div class="popup-news-h"> У России появится новый орган – мусорный.</div> <p> В МИНПРОМТОРГЕ разрабатывают долгосрочную Стратегию развития промышленности по переработке и утилизации отходов до 2030 года. Газета «Ведомости» приводит сегодня обзор основных положений этого документа. Основными сдерживающими факторами создания индустрии отходов эксперты называют отсутствие раздельного сбора</p> <a href="http://www.eco-tm.ru/u-rossii-poyavitsya-novyj-organ-musornyj/" class="popup-permalink" target="_blank">читать дальше &gt;</a> <div><a target="_blank" href="http://www.eco-tm.ru/category/novosti/" class="all-news">ВСЕ НОВОСТИ</a> </div> </div> </div> <li onclick="$('.pop-b').arcticmodal();"><span>Проведение исследований морфологического состава отходов</span> </li> <div style="display: none;"> <div class="box-modal pop-b" id="boxUserFirstInfo1"> <div class="box-modal_close arcticmodal-close"></div> <h3><span class="green">ПОСЛЕДНИЕ Н<span class="line">ОВОС</span>ТИ</span> КОМПАНИИ</h3> <div class="popup-news-h"> У России появится новый орган – мусорный.</div> <p> В МИНПРОМТОРГЕ разрабатывают долгосрочную Стратегию развития промышленности по переработке и утилизации отходов до 2030 года. Газета «Ведомости» приводит сегодня обзор основных положений этого документа. Основными сдерживающими факторами создания индустрии отходов эксперты называют отсутствие раздельного сбора</p> <a href="http://www.eco-tm.ru/u-rossii-poyavitsya-novyj-organ-musornyj/" class="popup-permalink" target="_blank">читать дальше &gt;</a> <div><a target="_blank" href="http://www.eco-tm.ru/category/novosti/" class="all-news">ВСЕ НОВОСТИ</a> </div> </div> </div> <li onclick="$('.pop-b').arcticmodal();"><span>Определение нормативов накопления отходов</span> </li> <div style="display: none;"> <div class="box-modal pop-b" id="boxUserFirstInfo1"> <div class="box-modal_close arcticmodal-close"></div> <h3><span class="green">ПОСЛЕДНИЕ Н<span class="line">ОВОС</span>ТИ</span> КОМПАНИИ</h3> <div class="popup-news-h"> У России появится новый орган – мусорный.</div> <p> В МИНПРОМТОРГЕ разрабатывают долгосрочную Стратегию развития промышленности по переработке и утилизации отходов до 2030 года. Газета «Ведомости» приводит сегодня обзор основных положений этого документа. Основными сдерживающими факторами создания индустрии отходов эксперты называют отсутствие раздельного сбора</p> <a href="http://www.eco-tm.ru/u-rossii-poyavitsya-novyj-organ-musornyj/" class="popup-permalink" target="_blank">читать дальше &gt;</a> <div><a target="_blank" href="http://www.eco-tm.ru/category/novosti/" class="all-news">ВСЕ НОВОСТИ</a> </div> </div> </div> <li onclick="$('.pop-b').arcticmodal();"><span>Разработка бизнес-планов</span> </li> <div style="display: none;"> <div class="box-modal pop-b" id="boxUserFirstInfo1"> <div class="box-modal_close arcticmodal-close"></div> <h3><span class="green">ПОСЛЕДНИЕ Н<span class="line">ОВОС</span>ТИ</span> КОМПАНИИ</h3> <div class="popup-news-h"> У России появится новый орган – мусорный.</div> <p> В МИНПРОМТОРГЕ разрабатывают долгосрочную Стратегию развития промышленности по переработке и утилизации отходов до 2030 года. Газета «Ведомости» приводит сегодня обзор основных положений этого документа. Основными сдерживающими факторами создания индустрии отходов эксперты называют отсутствие раздельного сбора</p> <a href="http://www.eco-tm.ru/u-rossii-poyavitsya-novyj-organ-musornyj/" class="popup-permalink" target="_blank">читать дальше &gt;</a> <div><a target="_blank" href="http://www.eco-tm.ru/category/novosti/" class="all-news">ВСЕ НОВОСТИ</a> </div> </div> </div> </ul> 

Those. when I click on li, the popup following it should open and I understand that the intellectuals need to be rewritten, but the point is that by clicking now it does not reveal anything at all.

When you click on it in the console throws an error that the title of the topic.

Here is the site where the problem is observed http://www.eco-tm.ru/

  • "Here is the site on which the problem is observed," at least write what to click to see the problem. - Andrew B
  • in the block "PREPROJECTIONAL UNIT" you need to click "learn more" - there will be a list and when you click on the list item pop up pop-up - Russian Bear
  • one
    At the time of executing the code to display a pop-up window (for a new visitor), the $.fn.arcticmodal function exists. When the page is loaded to the end - the function disappears. You wipe it somewhere or restart jQuery again. ZY The main page weighs 30 megabytes - it is simply not the real value, considering that there is no functionality at all. At a speed of 3 megabits / s page loads a whole minute . - Andrew B
  • Function like should not be overwritten anywhere. Connected only arcticmodal with of. The site and the piece of code that I threw above is relevant to it. Where can jQuery reload? - Russian Bear
  • one
    I could not find a problem place, because There are a lot of scripts on the site, besides compressed. Take the source and look for the problem, disabling scripts and checking the loss of function. - Andrew B

0