app/assets/javascripts/jquery.bigfoot.js
Function bigfoot
has 583 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.bigfoot = function(options) {
// ______ ______ _________ _________ ________ ___ __ _______ ______
// /_____/\ /_____/\ /________/\/________/\/_______/\/__/\ /__/\ /______/\ /_____/\
File jquery.bigfoot.js
has 587 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// _______ ________ _______ ______ ______ ______ _________
// /_______/\ /_______/\/______/\ /_____/\ /_____/\ /_____/\ /________/\
// \::: _ \ \ \__.::._\/\::::__\/__\::::_\/_\:::_ \ \\:::_ \ \\__.::.__\/
// \::(_) \/_ \::\ \ \:\ /____/\\:\/___/\\:\ \ \ \\:\ \ \ \ \::\ \
// \:: _ \ \ _\::\ \__\:\\_ _\/ \:::._\/ \:\ \ \ \\:\ \ \ \ \::\ \
Function footnoteInit
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var footnoteInit = function() {
// Get all of the possible footnote links
var footnoteButtonSearchQuery;
footnoteButtonSearchQuery = !settings.scope ? "a[href*=\"#\"]" : settings.scope + " a[href*=\"#\"]";
Function addBreakpoint
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var addBreakpoint = function(size, deleteDelay, removeOpen,
trueCallback, falseCallback) {
// Set defaults
deleteDelay = deleteDelay || settings.popoverDeleteDelay;
Function createPopover
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var createPopover = function(selector) {
selector = selector || ".footnote-button";
// Activate all matching if multiple footnotes are allowed
Function cleanFootnoteLinks
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var cleanFootnoteLinks = function($footnoteAnchors, footnoteLinks) {
var $supParent,
$supChild,
linkHREF,
linkID;
Function bindScrollHandler
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.bindScrollHandler = function() {
// Don't even bother checking if option is set to false
if(!settings.preventPageScroll) { return; }
$(this).on("DOMMouseScroll mousewheel", function(e) {
Function repositionFeet
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var repositionFeet = function() {
if(settings.positionContent) {
$(".footnote-content").each(function() {
Function addBreakpoint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
addBreakpoint: function(size, deleteDelay, removeOpen, trueCallback, falseCallback) {
Function addBreakpoint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var addBreakpoint = function(size, deleteDelay, removeOpen,
trueCallback, falseCallback) {