Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created February 7, 2011 17:53
Show Gist options
  • Select an option

  • Save skipjac/814821 to your computer and use it in GitHub Desktop.

Select an option

Save skipjac/814821 to your computer and use it in GitHub Desktop.
$j(document).ready(function() {
//check to see if you are on the end users request page
if(location.pathname === '/categories/3231-faq') {
Event.observe(window, 'load', function() {
$j('li.tab_faqs').addClass('active');
$j('li.tab_forums').removeClass('active');
});
}
});
$j(document).ready(function() {
//check to see if you are on the end users request page
if(location.pathname === '/forums/239785-general') {
Event.observe(window, 'load', function() {
$j('li.tab_faqs').addClass('active');
$j('li.tab_forums').removeClass('active');
});
}
});
$j(document).ready(function() {
//check to see if you are on the end users request page
if(location.pathname === '/forums/239924-getting-started') {
Event.observe(window, 'load', function() {
$j('li.tab_faqs').addClass('active');
$j('li.tab_forums').removeClass('active');
});
}
});
$j(document).ready(function() {
//check to see if you are on the end users request page
if(location.pathname === '/forums/239925-cleaning-music') {
Event.observe(window, 'load', function() {
$j('li.tab_faqs').addClass('active');
$j('li.tab_forums').removeClass('active');
});
}
});
$j(document).ready(function() {
//check to see if you are on the end users request page
if(location.pathname === '/forums/239926-cleaning-cover-art') {
Event.observe(window, 'load', function() {
$j('li.tab_faqs').addClass('active');
$j('li.tab_forums').removeClass('active');
});
}
});
$j(document).ready(function() {
//check to see if you are on the end users request page
if(location.pathname === '/forums/239927-tuniverse') {
Event.observe(window, 'load', function() {
$j('li.tab_faqs').addClass('active');
$j('li.tab_forums').removeClass('active');
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment