|
951 | 951 | // some controls are aligned on the left, and others on the right |
952 | 952 |
|
953 | 953 | var thisObj, baseSliderWidth, controlLayout, numSections, |
954 | | - i, j, k, controls, $controllerSpan, $sliderDiv, sliderLabel, $pipe, $pipeImg, |
955 | | - svgData, svgPath, control, |
956 | | - $buttonLabel, $buttonImg, buttonImgSrc, buttonTitle, $newButton, iconClass, buttonIcon, |
957 | | - buttonText, position, buttonHeight, buttonWidth, buttonSide, controllerWidth, |
958 | | - tooltipId, tooltipY, tooltipX, tooltipWidth, tooltipStyle, tooltip, tooltipTimerId, |
959 | | - captionLabel, popupMenuId; |
| 954 | + i, j, controls, $controllerSpan, $sliderDiv, sliderLabel, $pipe, control, |
| 955 | + $buttonLabel, buttonTitle, $newButton, buttonText, position, buttonHeight, |
| 956 | + buttonWidth, buttonSide, controllerWidth, tooltipId, tooltipY, tooltipX, |
| 957 | + tooltipWidth, tooltipStyle, tooltip, tooltipTimerId, captionLabel, popupMenuId; |
960 | 958 |
|
961 | 959 | thisObj = this; |
962 | 960 |
|
|
1025 | 1023 | } |
1026 | 1024 | else { |
1027 | 1025 | // this control is a button |
1028 | | - if (control === 'volume') { |
1029 | | - buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/' + this.volumeButton + '.png'; |
1030 | | - } |
1031 | | - else if (control === 'fullscreen') { |
1032 | | - buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/fullscreen-expand.png'; |
1033 | | - } |
1034 | | - else if (control === 'slower') { |
1035 | | - if (this.speedIcons === 'animals') { |
1036 | | - buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/turtle.png'; |
1037 | | - } |
1038 | | - else { |
1039 | | - buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/slower.png'; |
1040 | | - } |
1041 | | - } |
1042 | | - else if (control === 'faster') { |
1043 | | - if (this.speedIcons === 'animals') { |
1044 | | - buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/rabbit.png'; |
1045 | | - } |
1046 | | - else { |
1047 | | - buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/faster.png'; |
1048 | | - } |
1049 | | - } |
1050 | | - else { |
1051 | | - buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/' + control + '.png'; |
1052 | | - } |
1053 | 1026 | buttonTitle = this.getButtonTitle(control); |
1054 | 1027 |
|
1055 | 1028 | // icomoon documentation recommends the following markup for screen readers: |
|
0 commit comments