Bug Tracker

Modify

Ticket #10767 (closed bug: invalid)

Opened 18 months ago

Last modified 18 months ago

jQuery.fn.exists = function(){return jQuery(this).length>0;} var $jq = jQuery.noConflict(); // Get current page URL var sPath = window.location.pathname; //var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1); var sPage = sPath.substring(sPath.lastIndexOf('/') + 1); /* Load when DOM is ready

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version:
Keywords: Cc:
Blocking: Blocked by:

Description

google.setOnLoadCallback(function() {

Preload all CSS images $jq.preloadCssImages();

if (sPage == 'home'
sPage == )

Homepage tabs $jq(".tab_content").css("display", "block"); $jq("#ranking-container, #latest-news-container, #latest-gallery-container").organicTabs();

Accordion -  http://www.sohtanaka.com/web-design/simple-accordion-w-css-and-jquery/ $jq('.accordion').hide(); $jq('.accordion_trigger').click(function(){

if( $jq(this).next().is(':hidden') ) {

$(this).toggleClass("active").next().slideToggle("slow"); $jq('.alt_content').find("a").removeClass('active'); $jq('.accordion_trigger').removeClass('active').next().slideUp("slow"); $jq(this).toggleClass('active').next().slideDown(); $jq(this).parent().find("a").toggleClass('active');

} else {

$jq(this).removeClass('active').next().slideUp("slow"); $jq(this).parent().find("a").removeClass('active');

} return false;

});

Remove img title & alt before showing tooltip $jq(".tooltip").find("img").removeAttr('title').removeAttr('alt');

Pajinate – A jQuery Pagination Plugin by  http://th3silverlining.com/2010/04/15/pajination-a-jquery-pagination-plugin/ $jq("#paging_container").pajinate({

items_per_page : 20, item_container_id : ".alt_content", nav_panel_id : ".alt_page_navigation", num_page_links_to_display : 10

});

Tabs -  http://www.sohtanaka.com/web-design/simple-tabs-w-css-jquery/ $jq(".tab_content").hide(); $jq("ul.tabs li:first").addClass("active").show(); $jq(".tab_content:first").show(); $jq("ul.tabs li").click(function() {

$jq("ul.tabs li").removeClass("active"); $jq(this).addClass("active"); $jq(".tab_content").hide(); var activeTab = $jq(this).find("a").attr("href"); $jq(activeTab).fadeIn(); return false;

});

Lightbox -  http://colorpowered.com/colorbox/ $jq(".showcase-content-wrapper").css("display", "block"); $jq("a[rel='screenshots'],a[rel='wallpapers']").colorbox({

slideshow:true, rel:'nofollow', height:"75%"

});

List Filtering -  http://razorjack.net/quicksand/ var cache_list =$jq('ul.category-list').clone();

$jq('ul.category-filter li').click(function(e) {

var filterClassList=; var filterClass=$jq(this).attr('class').split(' ').slice(-1)[0] if (filterClass == 'active') {

$jq(this).removeClass("active");

} else {

$jq(this).addClass("active");

}

$jq("ul.category-filter li").each(function() {

filterClass=$jq(this).attr('class').split(' ').slice(-1)[0] if (filterClass == 'active') {

filterClass=$jq(this).attr('class').split(' ').slice(-2)[0] if (filterClassList.length == 0) {

filterClassList = filterClass;

} else {

filterClassList = filterClassList + '.' + filterClass;

}

}

} );

if (filterClassList == 'all'
filterClassList.length == 0) {

var $filteredData = cache_list.find('li');

} else {

var $filteredData = cache_list.find('li.' + filterClassList);

}

$jq('ul.category-list').quicksand( $filteredData, {

duration: 800, easing: 'easeInOutQuad'

}); $jq("ul.category-list .tip_trigger").find("img").removeAttr('title').removeAttr('alt'); Remove img title & alt before showing tooltip e.preventDefault();

});

if (sPage == 'characters') Characters tabs -  http://www.sohtanaka.com/web-design/simple-tabs-w-css-jquery/ $jq(".tab_content").hide(); $jq("ol.tabs li:first").addClass("active").show(); $jq(".tab_content:first").show();

$jq("ol.tabs li").hover(function() {

$jq("ol.tabs li").removeClass("active"); $jq(this).addClass("active"); $jq(".tab_content").hide(); var activeTab = $jq(this).find("a").attr("href"); $jq(activeTab).show(); return false;

}); $jq("ol.tabs li").click(function() {

return false;

});

if (sPage == 'clan') $jq('#table-ranking').dataTable( {

"bPaginate": false, "bLengthChange": false, "bFilter": true, "bSort": true, "bInfo": false, "bAutoWidth": false } );

if (sPage == 'individual') $jq('#table-ranking').dataTable( {

"bPaginate": true, "sPaginationType": "full_numbers", "bLengthChange": false, "bFilter": true, "bSort": true, "bInfo": false, "bAutoWidth": false } );

});

Change History

comment:1 Changed 18 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

I don't know what you are trying to say, but this is not the right place to say it. Try the forum.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.