Typo in comment, and optional semicolon in JS
| | |
| | | * Adds a HTML script element loading the javascript designated by the given path.
|
| | | *
|
| | | * @param scriptPath
|
| | | * page-relative path to the Javascript resource; normally starts with "script/"
|
| | | * page-relative path to the Javascript resource; normally starts with "scripts/"
|
| | | */
|
| | | protected void addBottomScript(String scriptPath) {
|
| | | Component bottomScriptContainer = get("bottomScripts");
|
| | |
| | | var w = 1.0 - (this.scrollLeft / (this.scrollWidth - (this.clientWidth || this.offsetWidth))); |
| | | // We encode the target img id in the slider's id: slider-imgdiffNNN. |
| | | jQuery('#' + this.id.substr(this.id.indexOf('-') + 1)).css("opacity", w); |
| | | }) |
| | | }); |
| | | }); |