Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Плавная прокрутка

Перейти к ACP > Customizations > Themes > ваша тема > edit HTML and CSS > core > front > global > clobalTemplate и найти:

<!--ipsQueryLog-->

после его поставит ето код:

Спойлер

<script type="text/javascript">  
 jQuery(function(){  
  $("#Go_Top").hide().removeAttr("href");  
  if ($(window).scrollTop()>="250") $("#Go_Top").fadeIn("slow")  
  $(window).scroll(function(){  
  if ($(window).scrollTop()<="250") $("#Go_Top").fadeOut("slow")  
  else $("#Go_Top").fadeIn("slow")  
  });  

  $("#Go_Bottom").hide().removeAttr("href");  
  if ($(window).scrollTop()<=$(document).height()-"999") $("#Go_Bottom").fadeIn("slow")  
  $(window).scroll(function(){  
  if ($(window).scrollTop()>=$(document).height()-"999") $("#Go_Bottom").fadeOut("slow")  
  else $("#Go_Bottom").fadeIn("slow")  
  });  

  $("#Go_Top").click(function(){  
  $("html, body").animate({scrollTop:0},"slow")  
  })  
  $("#Go_Bottom").click(function(){  
  $("html, body").animate({scrollTop:$(document).height()},"slow")  
  })  
 });  
 </script>  

 <a style='position: fixed; bottom: 300px; right: 1px; cursor:pointer; display:none;'  
 href='#' id='Go_Top'>  
  <i class="fa fa-chevron-up" aria-hidden="true"></i>  
 </a>  
 <a style='position: fixed; bottom: 250px; right: 1px; cursor:pointer; display:none;'  
 href='#' id='Go_Bottom'>  
  <i class="fa fa-chevron-down" aria-hidden="true"></i>  
 </a>

 

Ето все  ... ;)

 

AEqurhwrCU.mp4

User Feedback

Recommended Comments

Silence

Актив

новый медленный код

<script type="text/javascript">  
 jQuery(function(){  
  $("#Go_Top").hide().removeAttr("href");  
  if ($(window).scrollTop()>="250") $("#Go_Top").fadeIn("slow")  
  $(window).scroll(function(){  
  if ($(window).scrollTop()<="250") $("#Go_Top").fadeOut("slow")  
  else $("#Go_Top").fadeIn("slow")  
  });  

  $("#Go_Bottom").hide().removeAttr("href");  
  if ($(window).scrollTop()<=$(document).height()-"999") $("#Go_Bottom").fadeIn("slow")  
  $(window).scroll(function(){  
  if ($(window).scrollTop()>=$(document).height()-"999") $("#Go_Bottom").fadeOut("slow")  
  else $("#Go_Bottom").fadeIn("slow")  
  });  

  $("#Go_Top").click(function(){  
  $("html, body").animate({scrollTop:0},2000)  
  })  
  $("#Go_Bottom").click(function(){  
  $("html, body").animate({scrollTop:$(document).height()},2000)  
  })  
 });  
 </script>  

 <a style='position: fixed; bottom: 300px; right: 1px; cursor:pointer; display:none;'  
 href='#' id='Go_Top'>  
  <i class="fa fa-chevron-up" aria-hidden="true"></i>  
 </a>  
 <a style='position: fixed; bottom: 250px; right: 1px; cursor:pointer; display:none;'  
 href='#' id='Go_Bottom'>  
  <i class="fa fa-chevron-down" aria-hidden="true"></i>  
 </a>

 

saiko

Актив

А как что то подобное сделать для блоков с "последними постами форума" и файлов которые загружаются на форум !? Ну что то вроде скор бара.
Заранее спасибо
 

Безымянный.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Добавить комментарий...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.