htdocs/install/jquery.scrollTo.js
Function scrollTo
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.scrollTo = function( target, duration, settings ){
if( typeof duration == 'object' ){
settings = duration;
duration = 0;
}
Unexpected trailing spaces found. Open
Open
attr[key] = val.slice && val.slice(-1) == '%' ?
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
* @option {Function} onAfter Function to be called after the scrolling ends.
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected spaces found. Open
Open
- Math.min( html[size] , body[size] );
- Exclude checks
Unexpected trailing spaces found. Open
Open
doc.body :
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
animate( settings.onAfter );
- Exclude checks
Unexpected trailing spaces found. Open
Open
* alert('scrolled!!');
- Exclude checks
Unexpected trailing spaces found. Open
Open
// Get the real position of the target
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
return Math.max( html[scroll], body[scroll] )
- Exclude checks
Unexpected trailing spaces found. Open
Open
* - The string 'max' for go-to-end.
- Exclude checks
Unexpected trailing spaces found. Open
Open
- Exclude checks
Unexpected trailing spaces found. Open
Open
}else{
- Exclude checks