Guest User

Untitled

a guest
Jul 5th, 2016
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function(){
  2.  
  3. //$.mobile.loading().hide();
  4. $("div#mainNav ul li").hover(function(){
  5. $(this).toggleClass("active");
  6. });
  7. if($(document).width() > 768){
  8. $('ul.nav li.dropdown').hover(function() {
  9. $(this).find('.dropdown-menu').stop(true, true).slideDown(300);
  10. }, function() {
  11. $(this).find('.dropdown-menu').stop(true, true).slideUp(300);
  12. });
  13. }
  14. $('#carousel').carousel({
  15. interval: 3000,
  16. pause: "hover"
  17. });
  18. $('#carousel2').carousel({
  19. interval: 5000,
  20. pause: "hover"
  21. });
  22. /*$('#carousel2,#carousel').on("swipeleft",function(){
  23. $(this).carousel('next');
  24. });
  25. $('#carousel2,#carousel').on("swiperight",function(){
  26. $(this).carousel('prev');
  27. }); */
  28. });
RAW Paste Data