daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // BE EXCEPTIONAL PAGERS - 2, displayed on page node blocks and home
  2. $(document).ready(function(){
  3.   // page block
  4.   $('a#story-link-0').addClass('active');
  5.  
  6.   $('a#story-link-0').click(
  7.     function(){
  8.       $('#story-row-0').fadeIn('slow');
  9.       $(this).addClass('active');
  10.       $('a#story-link-1, a#story-link-2, a#story-link-3').removeClass('active');
  11.       $('#story-row-1, #story-row-2, #story-row-3').css('display','none');
  12.       return false;
  13.     }
  14.   );
  15.   $('a#story-link-1').click(
  16.     function(){
  17.       $('#story-row-1').fadeIn('slow');
  18.       $(this).addClass('active');
  19.       $('a#story-link-0, a#story-link-2, a#story-link-3').removeClass('active');
  20.       $('#story-row-0, #story-row-2, #story-row-3').css('display','none');
  21.       return false;
  22.     }
  23.   );
  24.   $('a#story-link-2').click(
  25.     function(){
  26.       $('#story-row-2').fadeIn('slow');
  27.       $(this).addClass('active');
  28.       $('a#story-link-0, a#story-link-1, a#story-link-3').removeClass('active');
  29.       $('#story-row-0, #story-row-1, #story-row-3').css('display','none');
  30.       return false;
  31.     }
  32.   );
  33.   $('a#story-link-3').click(
  34.     function(){
  35.       $('#story-row-3').fadeIn('slow');
  36.       $(this).addClass('active');
  37.       $('a#story-link-0, a#story-link-1, a#story-link-2').removeClass('active');
  38.       $('#story-row-0, #story-row-1, #story-row-2').css('display','none');
  39.       return false;
  40.     }
  41.   );
  42.  
  43. });
RAW Paste Data
Top