Showing 295 of 1,643 total issues
Function layout
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function layout() {
if( dom.wrapper && !isPrintingPDF() ) {
var size = getComputedSlideSize();
Function processSlides
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processSlides() {
var sections = document.querySelectorAll( '[data-markdown]'),
section;
Function openNotes
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function openNotes() {
var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1100,height=700' );
Function onTouch
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onTouch: function onTouch(element, eventType, handler) {
var self = this;
this.bindDom(element, ionic.Gestures.EVENT_TYPES[eventType], function bindDomOnTouch(ev) {
var sourceEventType = ev.type.toLowerCase();
Function navigateFragment
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function navigateFragment( index, offset ) {
if( currentSlide && config.fragments ) {
var fragments = sortFragments( currentSlide.querySelectorAll( '.fragment' ) );
Function link
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, uiSrefActive) {
var ref = parseStateRef(attrs.uiSref, $state.current.name);
var params = null, url = null, base = stateContext(element) || $state.$current;
var newHref = null, isAnchor = element.prop("tagName") === "A";
var isForm = element[0].nodeName === "FORM";
Function start
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root) {
var start = time();
var lastFrame = start;
var percent = 0;
Function headerFooterBarDirective
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function headerFooterBarDirective(isHeader) {
return ['$document', '$timeout', function($document, $timeout) {
return {
restrict: 'E',
controller: '$ionicHeaderBar',
Function bindDomOnTouch
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.bindDom(element, ionic.Gestures.EVENT_TYPES[eventType], function bindDomOnTouch(ev) {
var sourceEventType = ev.type.toLowerCase();
// onmouseup, but when touchend has been fired we do nothing.
// this is for touchdevices which also fire a mouseup on touchend
Function $$AnimateJsDriverProvider
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$AnimateJsDriverProvider = ['$$animationProvider', function($$animationProvider) {
$$animationProvider.drivers.push('$$animateJsDriver');
this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
return function initDriverFn(animationDetails) {
if (animationDetails.from && animationDetails.to) {
Function showSlide
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showSlide( slide ) {
// Show the slide element
slide.style.display = 'block';
Function __startDeceleration
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__startDeceleration: function() {
var self = this;
if (self.options.paging) {
Function refreshLayout
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.refreshLayout = function() {
if (data.length) {
estimatedHeight = heightGetter(0, data[0]);
estimatedWidth = widthGetter(0, data[0]);
} else {
Function setUrlParams
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setUrlParams: function(config, params, actionUrl) {
var self = this,
url = actionUrl || self.template,
val,
encodedVal;
Function resolveElementClasses
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolveElementClasses(existing, toAdd, toRemove) {
var ADD_CLASS = 1;
var REMOVE_CLASS = -1;
var flags = {};
Function prelink
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prelink($scope, $element, $attr) {
$ionicBind($scope, $attr, {
direction: '@',
paging: '@',
$onScroll: '&onScroll',
Function doTouchStart
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
doTouchStart: function(touches, timeStamp) {
var self = this;
// remember if the deceleration was just stopped
self.__decStopped = !!(self.__isDecelerating || self.__isAnimating);
Function $asArray
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Type.prototype.$asArray = function(mode, isSearch) {
if (!mode) return this;
if (mode === "auto" && !isSearch) throw new Error("'auto' array mode is for query parameters only");
return new ArrayType(this, mode);
Function areAnimationsAllowed
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function areAnimationsAllowed(element, parentElement, event) {
var bodyElementDetected = false;
var rootElementDetected = false;
var parentAnimationDetected = false;
var animateChildren;
Function htmlSanitizeWriter
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlSanitizeWriter(buf, uriValidator) {
var ignore = false;
var out = angular.bind(buf, buf.push);
return {
start: function(tag, attrs, unary) {