Facebook
From asd, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 738
  1.  $(function() {
  2.     $(".rslides").responsiveSlides();
  3.   });
  4.  
  5. $(".rslides").responsiveSlides({
  6.   auto: true,             // Boolean: Animate automatically, true or false
  7.   speed: 500,            // Integer: Speed of the transition, in milliseconds
  8.   timeout: 4000,          // Integer: Time between slide transitions, in milliseconds
  9.   pager: false,           // Boolean: Show pager, true or false
  10.   nav: false,             // Boolean: Show navigation, true or false
  11.   random: false,          // Boolean: Randomize the order of the slides, true or false
  12.   pause: false,           // Boolean: Pause on hover, true or false
  13.   pauseControls: true,    // Boolean: Pause when hovering controls, true or false
  14.   prevText: "Previous",   // String: Text for the "previous" button
  15.   nextText: "Next",       // String: Text for the "next" button
  16.   maxwidth: "",           // Integer: Max-width of the slideshow, in pixels
  17.   navContainer: "",       // Selector: Where controls should be appended to, default is after the 'ul'
  18.   manualControls: "",     // Selector: Declare custom pager navigation
  19.   namespace: "rslides",   // String: Change the default namespace used
  20.   before: function(){},   // Function: Before callback
  21.   after: function(){}     // Function: After callback
  22. });
  23.  
  24. $(".header #responsive-menu-button").click(function() {
  25.   $(".header .responsive-menu").toggle("slow");
  26. });
  27.  
  28. $(".menu ul li:nth-child(1)").click(function() {
  29.   $(".content").fadeOut(function() {
  30.     $(this).load("portfolio.html .portfolio", function() {
  31.       $(".portfolio").css("width", "1280px");
  32.       $(".portfolio").css("margin", "0 auto");
  33.     });
  34.    
  35.   }).fadeIn();
  36. });
  37.  
  38. $(".menu ul li:nth-child(2)").click(function() {
  39.   $(".content").fadeOut(function() {
  40.     $(this).load("agencja.html .banners, .agention, .aboutUs, .biedronka, .process, .atuty", function() {
  41.       $(".banners").css("margin", "0 auto");
  42.       $(".agention").css("width", "960px");
  43.       $(".agention").css("margin", "0 auto");
  44.       $(".aboutUs").css("width", "960px");
  45.       $(".aboutUs").css("margin", "0 auto");
  46.       $(".process").css("width", "960px");
  47.       $(".process").css("margin", "0 auto");
  48.       $(".atuty").css("width", "1280px");
  49.       $(".atuty").css("margin", "50px auto");
  50.     });
  51.    
  52.   }).fadeIn();
  53. });
  54.  
  55. $(".menu ul li:nth-child(3)").click(function() {
  56.   $(".content").fadeOut(function() {
  57.     $(this).load("offer.html .offer", function() {
  58.       $(".offer").css("width", "1280px");
  59.       $(".offer").css("margin", "0 auto");
  60.     });
  61.    
  62.   }).fadeIn();
  63. });
  64.  
  65. $(".menu ul li:nth-child(4)").click(function() {
  66.   $(".content").fadeOut(function() {
  67.     $(this).load("news.html .news-site", function() {
  68.       $(".news-site").css("width", "1280px");
  69.       $(".news-site").css("margin", "50px auto");
  70.       $(".news-site .row p").css("margin-top", "220px");
  71.     });
  72.    
  73.   }).fadeIn();
  74. });
  75.  
  76. $(".menu ul li:nth-child(5)").click(function() {
  77.   $(".content").fadeOut(function() {
  78.     $(this).load("contact.html .content .contact", function() {
  79.       $(".content .contact").css("width", "1280px");
  80.       $(".content .contact").css("margin", "50px auto");
  81.     });
  82.    
  83.   }).fadeIn();
  84. });
  85.  
  86. $(".offer .row .box").mouseover(function() {
  87.   $(".offer .row .box .hover").each(function() {
  88.     $(this).css("display", "block");
  89.   });
  90. });
  91.  
  92. $(".header #responsive-menu-button").click(function() {
  93.   $(".header .responsive-menu").toggle("slow");
  94. });