Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- //$.mobile.loading().hide();
- $("div#mainNav ul li").hover(function(){
- $(this).toggleClass("active");
- });
- if($(document).width() > 768){
- $('ul.nav li.dropdown').hover(function() {
- $(this).find('.dropdown-menu').stop(true, true).slideDown(300);
- }, function() {
- $(this).find('.dropdown-menu').stop(true, true).slideUp(300);
- });
- }
- $('#carousel').carousel({
- interval: 3000,
- pause: "hover"
- });
- $('#carousel2').carousel({
- interval: 5000,
- pause: "hover"
- });
- /*$('#carousel2,#carousel').on("swipeleft",function(){
- $(this).carousel('next');
- });
- $('#carousel2,#carousel').on("swiperight",function(){
- $(this).carousel('prev');
- }); */
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement