Перейти к содержимому


Ошибка Js


  • Авторизуйтесь для ответа в теме
Сообщений в теме: 4

#1 jakarda

jakarda

    Пользователь

  • Пользователи
  • PipPip
  • 31 сообщений

Отправлено 13 Март 2014 - 23:47

Не могу понять что за ошибка, помогите пожалуйста! И как сделать так, что бы слайдер был только на главной странице?
Аккаунт : SL-276086

#2 Vaccina

Vaccina

    Активный участник

  • Модераторы
  • 24 353 сообщений

Отправлено 14 Март 2014 - 02:13

В шаблоне HTML найдите и удалите:
{% IF JAVASCRIPT_BUG_HUNTING_URL %}
	<script type="text/javascript" src="{JAVASCRIPT_BUG_HUNTING_URL}"></script>
  {% ENDIF %}

Далее найдите:
<div id="da-slider" class="da-slider">
	<div class="da-slide">
	 <h2>Привет, не болей!</h2>
	 <p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.</p>
	 <a href="#" class="da-link">Далее</a>
	 <div class="da-img"><img src="{ASSETS_IMAGES_PATH}2.png" alt="image01" /></div>
	</div>
	<div class="da-slide">
	 <h2>Салют Незнайчик</h2>
	 <p>A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p>
	 <a href="#" class="da-link">Далее</a>
	 <div class="da-img"><img src="{ASSETS_IMAGES_PATH}3.png" alt="image01" /></div>
	</div>
	<div class="da-slide">
	 <h2>Салют пацанчик</h2>
	 <p>When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
	 <a href="#" class="da-link">Далее</a>
	 <div class="da-img"><img src="{ASSETS_IMAGES_PATH}1.png" alt="image01" /></div>
	</div>
	<div class="da-slide">
	 <h2>Ваша няня</h2>
	 <p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.</p>
	 <a href="#" class="da-link">Далее</a>
	 <div class="da-img"><img src="{ASSETS_IMAGES_PATH}4.png" alt="image01" /></div>
	</div>
	<nav class="da-arrows">
	 <span class="da-arrows-prev"></span>
	 <span class="da-arrows-next"></span>
	</nav>
   </div>
		</div>
  <script type="text/javascript">
   $(function() {
  
	$('#da-slider').cslider({
	 autoplay : true,
	 bgincrement : 450
	});
  
   });
  </script>
замените на:
{% IF index_page %}
<div id="da-slider" class="da-slider">
	<div class="da-slide">
	 <h2>Привет, не болей!</h2>
	 <p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.</p>
	 <a href="#" class="da-link">Далее</a>
	 <div class="da-img"><img src="{ASSETS_IMAGES_PATH}2.png" alt="image01" /></div>
	</div>
	<div class="da-slide">
	 <h2>Салют Незнайчик</h2>
	 <p>A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p>
	 <a href="#" class="da-link">Далее</a>
	 <div class="da-img"><img src="{ASSETS_IMAGES_PATH}3.png" alt="image01" /></div>
	</div>
	<div class="da-slide">
	 <h2>Салют пацанчик</h2>
	 <p>When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
	 <a href="#" class="da-link">Далее</a>
	 <div class="da-img"><img src="{ASSETS_IMAGES_PATH}1.png" alt="image01" /></div>
	</div>
	<div class="da-slide">
	 <h2>Ваша няня</h2>
	 <p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.</p>
	 <a href="#" class="da-link">Далее</a>
	 <div class="da-img"><img src="{ASSETS_IMAGES_PATH}4.png" alt="image01" /></div>
	</div>
	<nav class="da-arrows">
	 <span class="da-arrows-prev"></span>
	 <span class="da-arrows-next"></span>
	</nav>
   </div>
		</div>
  <script type="text/javascript">
   $(function() {
  
	$('#da-slider').cslider({
	 autoplay : true,
	 bgincrement : 450
	});
  
   });
  </script>
  {% ENDIF %}


#3 Doggi

Doggi

    Новичок

  • Пользователи
  • Pip
  • 4 сообщений

Отправлено 03 Июнь 2014 - 22:15

SL-290879
а у меня тоже ошибка JS, но уже несколько дней. Я менял шаблон, не помогло. Открывал на 3-х разных компьютерах, (предварительно почистив кэш), тоже безрезультатно. В тех поддержке говорят что с сайтом моим всё нормально. Но ошибка по факту осталась.

#4 Vaccina

Vaccina

    Активный участник

  • Модераторы
  • 24 353 сообщений

Отправлено 04 Июнь 2014 - 01:57

может проблема в счетчике в разделе настройки - основные, если он имеется.
так как дизайн-темы изначально не имеют ошибок

#5 Doggi

Doggi

    Новичок

  • Пользователи
  • Pip
  • 4 сообщений

Отправлено 04 Июнь 2014 - 14:13

Да вроде решилась проблема. Пока что не тревожит больше ошибка. Но я помучился 3 дня с ней :angry:




Количество пользователей, читающих эту тему: 0

0 пользователей, 0 гостей, 0 анонимных