Showing 27 of 85 total issues
Function Tiles
has 506 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.CrazySquirrel.Tiles = function(that, settings){
/**
* Pointer to this object
* @type {object}
*/
- Create a ticketCreate a ticket
File jquery.CSTiles-1.1.0.js
has 546 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* CrazySquirrel
* http://crazysquirrel.ru/
*
* @author Yastrebov Sergey
- Create a ticketCreate a ticket
Function Init
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
base.Init = function(){
var i,j,x;
var data = base.getSettingsFromData(base.that);
- Create a ticketCreate a ticket
Function Share
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.CrazySquirrel.Share = function(that, settings){
var i,x;
/**
* Pointer to this object
* @type {object}
- Create a ticketCreate a ticket
Function Build
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
base.Build = function(){
var i,j,k,h,g,x,y,z,e,image,media,gridSize,tiles,height,grid,size,padding,margin,_height,fainder,html,make;
for(i in base.settings.adaptivMedia){
if(base.settings.adaptivMedia.hasOwnProperty(i)){
- Create a ticketCreate a ticket
Function makeTile
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
base.makeTile = function(e,setting,grid,gridscale,gridSize){
var j,x,image,size,padding,height,finder,margin;
e.html("<div class='cstiles__item-content-wrap' style='padding:"+setting.margin+"px;'><div class='cstiles__item-content'>"+e.html()+"</div></div>");
image = e.find(".cstiles__item-image:first");
if(image.size()>0||setting.imageSrc){
- Create a ticketCreate a ticket
Function findGridPlace
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
base.findGridPlace = function(size,grid,scale){
var x,y,z,i,j,f,g,a;
z = 0;
do{
z++;
- Create a ticketCreate a ticket
Function getSettingsFromData
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
base.getSettingsFromData = function(that){
var i,j,k,x,y,z;
var attrs = that.attributes;
var data;
if(typeof attrs !== "undefined"){
- Create a ticketCreate a ticket
Function getSettingsFromData
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
base.getSettingsFromData = function(that){
var i,j,k,x,y,z;
var attrs = that.attributes;
var data;
if(typeof attrs !== "undefined"){
- Create a ticketCreate a ticket
Function getsize
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
base.getsize = function(optionSize,defaultSize){
var size = [];
if(optionSize){
if(Array.isArray(optionSize)){
if(optionSize.length === 0){
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if(typeof data.adaptivMedia === "undefined"){data.adaptivMedia={};}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
}else if(typeof data !== "undefined" && typeof data[i] !== "undefined"){
for(j in data[i]){
if(
data[i].hasOwnProperty(j) &&
base.settings.adaptivMedia.hasOwnProperty(j)
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if(typeof data === "undefined"){data={};}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if(optionSize[1]*1 && optionSize[1]*1 > 0){
size[1] = optionSize[1]*1;
}else{
size[1] = defaultSize[1];
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if(typeof data === "undefined"){data={};}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
for(j in settings[i]){
if(
settings[i].hasOwnProperty(j) &&
base.settings.adaptivMedia.hasOwnProperty(j)
) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
for(i=y;i<y+size[1];i++){
for(j=x;j<x+size[0];j++){
if(grid[i][j]){
g = false;
break;
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
switch(i){
case "adaptivSize":
if(typeof settings.tiles[data.id][i] !== "undefined"){
for(j in settings.tiles[data.id][i]){
if(settings.tiles[data.id][i].hasOwnProperty(j)){
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if(typeof data.adaptivSize === "undefined"){data.adaptivSize={};}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if(z.length>1){
for(k=1;k<z.length;k++){
z[k] = z[k].slice(0,1).toUpperCase() + z[k].slice(1).toLowerCase();
}
}
- Create a ticketCreate a ticket