r8conf2016/js/foundation/foundation.reveal.js
File foundation.reveal.js
has 333 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.reveal = {
name : 'reveal',
Function events
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (scope) {
var self = this,
S = self.S;
S(this.scope)
Function show
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show : function (el, css) {
// is modal
if (css) {
var settings = el.data(this.attr_name(true) + '-init');
if (el.parent('body').length === 0) {
Function open
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open : function (target, ajax_settings) {
var self = this;
if (target) {
if (typeof target.selector !== 'undefined') {
var modal = self.S('#' + target.data(self.data_attr('reveal-id')));
Function hide
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function (el, css) {
// is modal
if (css) {
var settings = el.data(this.attr_name(true) + '-init');
var animData = getAnimationData(settings.animation);
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();