Guest User

Untitled

a guest
Apr 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. // <![CDATA[
  3.    $(document).ready(function() {
  4.        $('.b-see-locations__link').click(function() {
  5.            $('.b-locations__list').slideToggle().parent().prev('.b-see-locations').find('.b-see-locations__link').toggleClass('b-see-locations_active');
  6.            return false;
  7.        });
  8.        // rotating images with a 5 seconds delay
  9.        $('.b-decor__item .rotator').css('z-index', '2');
  10.        $('.b-decor__item .b-tabber__img.b-tabber__img_model').css('z-index', '1');
  11.        $('.b-decor__item .rotator .cycle').css('overflow-y', 'auto');
  12.        $('.b-decor__item .rotator .cycle div.slide').width(560);
  13.        $('.b-decor__item .rotator .cycle div.slide').css({ background: '#7aad36 url(/images/b-tabber-img-ielte8-slide-fix-bg.png) no-repeat top left' });
  14.        Rotator.init({ fx: 'scrollLeft', speed: 500, delay: 5000 });
  15.        $('.b-more-offices__link').click(function() {
  16.             var item = $(this);
  17.             var list = $('.b-more-offices__list');
  18.             var menu = item.closest('ul');
  19.             var head = $('#header_content');
  20.  
  21.             if (item.hasClass('b-more-offices_active')) {
  22.                if (!( $browser.msie && Number($.browser.version)<9)) menu.animate({ top: 0 }, 250, function() { } );
  23.             }
  24.  
  25.             list.slideToggle('normal', function() {                
  26.                if (!item.hasClass('b-more-offices_active')) {
  27.                     if (!( $browser.msie && Number($.browser.version)<9)) menu.animate({ top: -list.outerHeight(true) }, 500, function() { });
  28.                     item.toggleClass('b-more-offices_active');
  29.                });
  30.  
  31.             return false;
  32.             }
  33.         });
  34.     });
  35. // ]]>
  36. </script>
Add Comment
Please, Sign In to add comment