Showing 39 of 102 total issues
Function carouFredSel
has 1576 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.carouFredSel = function(options, configs) {
if (this.length == 0) {
debug(true, 'No element found for "'+this.selector+'".');
return this;
}
File jquery.carouFredSel-5.6.1.js
has 2179 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery carouFredSel 5.6.1
* Demo's and documentation:
* caroufredsel.frebsite.nl
*
Function _cfs_bind_events
has 1028 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$cfs._cfs_bind_events = function() {
$cfs._cfs_unbind_events();
// stop event
$cfs.bind(cf_e('stop', conf), function(e, imm) {
Function prettyPhoto
has 590 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.prettyPhoto = function(pp_settings) {
pp_settings = jQuery.extend({
hook: 'rel', /* the attribute tag to use for prettyPhoto hooks. default: 'rel'. For HTML5, use "data-rel" or similar. */
animation_speed: 'fast', /* fast/slow/normal */
ajaxcallback: function() {},
File jquery.prettyPhoto.js
has 615 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* ------------------------------------------------------------------------
Class: prettyPhoto
Use: Lightbox clone for jQuery
Author: Stephane Caron (http://www.no-margin-for-errors.com)
Version: 3.1.4
Function _cfs_init
has 221 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$cfs._cfs_init = function(o, setOrig, start) {
o = go_getObject($tt0, o);
var obs = ['items', 'scroll', 'auto', 'prev', 'next', 'pagination'];
for (var a = 0, l = obs.length; a < l; a++) {
Function _cfs_bind_buttons
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$cfs._cfs_bind_buttons = function() {
$cfs._cfs_unbind_buttons();
nv_showNavi(opts, itms.total, conf);
nv_enableNavi(opts, itms.first, conf);
Function open
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.prettyPhoto.open = function(event) {
if(typeof settings == "undefined"){ // Means it's an API call, need to manually get the settings and set the variables
settings = pp_settings;
if($.browser.msie && $.browser.version == 6) settings.theme = "light_square"; // Fallback to a supported theme for IE6
pp_images = $.makeArray(arguments[0]);
Function _build_overlay
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _build_overlay(caller){
// Inject Social Tool markup into General markup
if(settings.social_tools)
facebook_like_link = settings.social_tools.replace('{location_href}', encodeURIComponent(location.href));
Function a_complete
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var a_complete = function() {
var overFill = opts.items.visible+nI-itms.total,
new_m = (opts.usePadding) ? opts.padding[opts.d[3]] : 0;
$cfs.css(opts.d['left'], new_m);
Function a_complete
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var a_complete = function() {
var overFill = opts.items.visible+nI-itms.total;
if (overFill > 0) {
$cfs.children().slice(itms.total).remove();
Function _cfs_build
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$cfs._cfs_build = function() {
$cfs.data('cfs_isCarousel', true);
var orgCSS = {
'textAlign' : $cfs.css('textAlign'),
Function cf_getAdjust
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cf_getAdjust(x, o, a, $t) {
var v = x;
if (typeof a == 'function') {
v = a.call($t, v);
Function inWords
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
inWords: function(distanceMillis) {
var $l = this.settings.strings;
var prefix = $l.prefixAgo;
var suffix = $l.suffixAgo;
if (this.settings.allowFuture) {
Function _fitToViewport
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fitToViewport(width,height){
resized = false;
_getDimensions(width,height);
Function _showContent
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _showContent(){
$('.pp_loaderIcon').hide();
// Calculate the opened top position of the pic holder
projectedTop = scroll_pos['scrollTop'] + ((windowHeight/2) - (pp_dimensions['containerHeight']/2));
Function go_getNaviObject
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function go_getNaviObject($tt, obj, type) {
if (typeof type != 'string') type = '';
obj = go_getObject($tt, obj);
if (typeof obj == 'string') {
Function _getDimensions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getDimensions(width,height){
width = parseFloat(width);
height = parseFloat(height);
// Get the details height, to do so, I need to clone it since it's invisible
Consider simplifying this complex logical expression. Open
Open
if(isSet && settings.overlay_gallery && _getFileType(pp_images[set_position])=="image" && (settings.ie6_fallback && !($.browser.msie && parseInt($.browser.version) == 6))) {
itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin.
navWidth = (settings.theme == "facebook" || settings.theme == "pp_default") ? 50 : 30; // Define the arrow width depending on the theme
itemsPerPage = Math.floor((pp_dimensions['containerWidth'] - 100 - navWidth) / itemWidth);
Avoid deeply nested control flow statements. Open
Open
if(!settings.modal)
$.prettyPhoto.close();