Are you a regular stikked user? Signup so you can keep track of your pastes!

RE: case

By Jordan, 1 Year ago, written in Javascript. This paste is a reply to case by joe
URL http://stikked.com/view/80693816
  1. $(function (){
  2.         var page = $('body').attr('id');
  3.  
  4.         switch(page) {
  5.  
  6.                 case'home':
  7.                         initCarousel();
  8.                         getSetCarouselControlsInfo();
  9.                         carouselClickable();
  10.                         searchChanger();
  11.                         mouseOvers();
  12.                         setSearchKeywordField();
  13.                         initSifr();
  14.                 break;
  15.  
  16.                 case'video-grid':
  17.                         gridList();
  18.                         setSearchKeywordField();
  19.                 break;
  20.  
  21.                 case'news':
  22. /*
  23. Make the search string a parameter of the verticalTextImgLists() rather than
  24. doing the assignment outside of the function, then you just need to change the
  25. verticalTextImgLists() function to pick up the string and select the object(s) using it:
  26.  
  27. verticalTextImgLists = function(listItemString) {
  28.         listItem = $(listItemString);
  29.         listItem.whatever();
  30. }
  31.  
  32. */
  33.                         verticalTextImgLists('ul.vertical-text-img li');
  34.                         verticalTextImgLists('ul.vertical-text-img-2 li');
  35.                         dropDownList('ul.drop-down');
  36.                         setSearchKeywordField();
  37.                 break;
  38.  
  39.                 case'a-z':
  40.                         var listItem = $('ul.wide li');
  41.                         verticalTextImgLists(listItem);
  42.  
  43.                         setSearchKeywordField();
  44.                 break;
  45.                
  46.                 default:
  47.                 break;
  48.         }
  49. });
  50.  

Replies to RE: case

Title Name When
RE: RE: case joe Egan 1 Year ago.

Reply to "RE: case"

Here you can reply to the paste above

Create a snipurl

Make Private

Feeling clever? Set some advanced options.