Showing 17 of 115 total issues
File foundation.joyride.js
has 652 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*jslint unparam: true, browser: true, indent: 2 */
(function ($, window, document, undefined) {
'use strict';
Function events
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this;
var offst = this.outerHeight($('.top-bar, [data-topbar]'));
$(this.scope)
.off('.fndtn.topbar')
Function events
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events: function () {
var self = this;
$(this.scope)
.on('click.fndtn.forms', 'form.custom span.custom.checkbox', function (e) {
Function _init_events
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_init_events: function ($slides_container) {
var self = this,
$container = $slides_container.parent();
$(window)
Function events
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this;
$(this.scope).on('arrival.fndtn.magellan', '[data-magellan-arrival]', function (e) {
var $destination = $(this),
$expedition = $destination.closest('[data-magellan-expedition]'),
Function show
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show : function (init) {
var $timer = null;
// are we paused?
if (this.settings.$li === undefined
Function append_custom_select
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
append_custom_select: function (idx, sel) {
var self = Foundation.libs.forms,
$this = $(sel),
$customSelect = $this.next('div.custom.dropdown'),
$customList = $customSelect.find('ul'),
Function toggle_active
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggle_active : function (e, self) {
var $this = $(this),
self = Foundation.libs.section,
region = $this.closest(self.settings.region_selector),
content = $this.siblings(self.settings.content_selector),
Function position_content
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
position_content : function (section, off) {
var self = this,
regions = section.children(self.settings.region_selector),
titles = regions
.map(function () {
Function pos_default
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pos_default : function (init, resizing) {
var half_fold = Math.ceil($(window).height() / 2),
tip_position = this.settings.$next_tip.offset(),
$nub = this.settings.$next_tip.find('.joyride-nub'),
nub_width = Math.ceil(this.outerWidth($nub) / 2),
Function _goto
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_goto: function($slides_container, index_or_direction, callback) {
var self = this,
$container = $slides_container.parent(),
$slides = $slides_container.children(),
$active_slide = $slides_container.find('.' + self.settings.active_slide_class),
Function expose
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
expose : function () {
var expose,
exposeCover,
el,
origCSS,
Avoid deeply nested control flow statements. Open
Open
if (this.settings.timer > 0) {
this.settings.$next_tip
.fadeIn(this.settings.tipAnimationFadeSpeed)
.show();
Avoid deeply nested control flow statements. Open
Open
if ($customRadio.length === 0) {
$customRadio = $associatedElement.add(this).siblings('span.custom.radio').first();
}
Avoid too many return
statements within this function. Open
Open
return el.show();
Avoid too many return
statements within this function. Open
Open
return el.hide();
Avoid too many return
statements within this function. Open
Open
return $(this.scope).width() < settings.small_breakpoint;