@@ -107,7 +107,7 @@ _global.HTMLCSAuditor = new function()
107
107
} //end if
108
108
109
109
return false ;
110
- }
110
+ } ;
111
111
112
112
return label ;
113
113
} ;
@@ -213,7 +213,7 @@ _global.HTMLCSAuditor = new function()
213
213
closeIcon . setAttribute ( 'title' , _global . HTMLCS . getTranslation ( "auditor_close" ) ) ;
214
214
closeIcon . onmousedown = function ( ) {
215
215
self . close . call ( self ) ;
216
- }
216
+ } ;
217
217
218
218
header . appendChild ( closeIcon ) ;
219
219
@@ -511,7 +511,7 @@ _global.HTMLCSAuditor = new function()
511
511
useStandardSelect . onchange = function ( ) {
512
512
_standard = this . options [ this . selectedIndex ] . value ;
513
513
self . run ( _standard , _sources , _options ) ;
514
- }
514
+ } ;
515
515
}
516
516
517
517
var issueCountDiv = _doc . createElement ( 'div' ) ;
@@ -531,7 +531,7 @@ _global.HTMLCSAuditor = new function()
531
531
error : _doc . getElementById ( _prefix + 'include-error' ) . checked ,
532
532
warning : _doc . getElementById ( _prefix + 'include-warning' ) . checked ,
533
533
notice : _doc . getElementById ( _prefix + 'include-notice' ) . checked
534
- }
534
+ } ;
535
535
536
536
var wrapper = _doc . getElementById ( _prefix + 'wrapper' ) ;
537
537
var newWrapper = self . build ( _standard , _messages , _options ) ;
@@ -560,7 +560,7 @@ _global.HTMLCSAuditor = new function()
560
560
error : true ,
561
561
warning : true ,
562
562
notice : false
563
- }
563
+ } ;
564
564
565
565
if ( ( levels . error === 0 ) && ( levels . warning === 0 ) ) {
566
566
_options . show . notice = true ;
@@ -671,20 +671,20 @@ _global.HTMLCSAuditor = new function()
671
671
var typeClass = '' ;
672
672
673
673
switch ( message . type ) {
674
- case HTMLCS . ERROR :
675
- typeText = 'Error' ;
674
+ case HTMLCS . ERROR :
675
+ typeText = 'Error' ;
676
676
break ;
677
677
678
- case HTMLCS . WARNING :
679
- typeText = 'Warning' ;
678
+ case HTMLCS . WARNING :
679
+ typeText = 'Warning' ;
680
680
break ;
681
681
682
- case HTMLCS . NOTICE :
683
- typeText = 'Notice' ;
682
+ case HTMLCS . NOTICE :
683
+ typeText = 'Notice' ;
684
684
break ;
685
685
686
- default :
687
- // Not defined.
686
+ default :
687
+ // Not defined.
688
688
break ;
689
689
} //end switch
690
690
@@ -732,7 +732,7 @@ _global.HTMLCSAuditor = new function()
732
732
733
733
var oldSummary = _doc . querySelectorAll ( '.HTMLCS-summary' ) [ 0 ] ;
734
734
oldSummary . style . display = 'none' ;
735
- }
735
+ } ;
736
736
737
737
return msg ;
738
738
} ;
@@ -750,7 +750,7 @@ _global.HTMLCSAuditor = new function()
750
750
if ( _options . showIssueCallback ) {
751
751
_options . showIssueCallback . call ( this , id ) ;
752
752
}
753
- }
753
+ } ;
754
754
755
755
var buildMessageDetail = function ( id , message , standard ) {
756
756
if ( standard === undefined ) {
@@ -760,20 +760,20 @@ _global.HTMLCSAuditor = new function()
760
760
var typeText = '' ;
761
761
762
762
switch ( message . type ) {
763
- case HTMLCS . ERROR :
764
- typeText = 'Error' ;
763
+ case HTMLCS . ERROR :
764
+ typeText = 'Error' ;
765
765
break ;
766
766
767
- case HTMLCS . WARNING :
768
- typeText = 'Warning' ;
767
+ case HTMLCS . WARNING :
768
+ typeText = 'Warning' ;
769
769
break ;
770
770
771
- case HTMLCS . NOTICE :
772
- typeText = 'Notice' ;
771
+ case HTMLCS . NOTICE :
772
+ typeText = 'Notice' ;
773
773
break ;
774
774
775
- default :
776
- // Not defined.
775
+ default :
776
+ // Not defined.
777
777
break ;
778
778
} //end switch
779
779
@@ -1019,7 +1019,7 @@ _global.HTMLCSAuditor = new function()
1019
1019
1020
1020
var issueList = _doc . querySelectorAll ( '.HTMLCS-issue-list' ) [ 0 ] ;
1021
1021
issueList . style . marginLeft = ( ( _page - 1 ) * - 300 ) + 'px' ;
1022
- }
1022
+ } ;
1023
1023
1024
1024
next . onclick = function ( ) {
1025
1025
if ( _page < totalPages ) {
@@ -1038,10 +1038,10 @@ _global.HTMLCSAuditor = new function()
1038
1038
1039
1039
var issueList = _doc . querySelectorAll ( '.HTMLCS-issue-list' ) [ 0 ] ;
1040
1040
issueList . style . marginLeft = ( ( _page - 1 ) * - 300 ) + 'px' ;
1041
- }
1041
+ } ;
1042
1042
1043
1043
return navDiv ;
1044
- }
1044
+ } ;
1045
1045
1046
1046
var pointToIssueElement = function ( issue ) {
1047
1047
var msg = _messages [ Number ( issue ) ] ;
@@ -1107,7 +1107,7 @@ _global.HTMLCSAuditor = new function()
1107
1107
script . onreadystatechange = null ;
1108
1108
script . onload ( ) ;
1109
1109
}
1110
- }
1110
+ } ;
1111
1111
1112
1112
script . src = src ;
1113
1113
@@ -1120,7 +1120,7 @@ _global.HTMLCSAuditor = new function()
1120
1120
1121
1121
this . setOption = function ( name , value ) {
1122
1122
_options [ name ] = value ;
1123
- }
1123
+ } ;
1124
1124
1125
1125
this . getIssue = function ( issueNumber )
1126
1126
{
@@ -1138,16 +1138,16 @@ _global.HTMLCSAuditor = new function()
1138
1138
1139
1139
for ( var i = 0 ; i < messages . length ; i ++ ) {
1140
1140
switch ( messages [ i ] . type ) {
1141
- case HTMLCS . ERROR :
1142
- counts . error ++ ;
1141
+ case HTMLCS . ERROR :
1142
+ counts . error ++ ;
1143
1143
break ;
1144
1144
1145
- case HTMLCS . WARNING :
1146
- counts . warning ++ ;
1145
+ case HTMLCS . WARNING :
1146
+ counts . warning ++ ;
1147
1147
break ;
1148
1148
1149
- case HTMLCS . NOTICE :
1150
- counts . notice ++ ;
1149
+ case HTMLCS . NOTICE :
1150
+ counts . notice ++ ;
1151
1151
break ;
1152
1152
} //end switch
1153
1153
} //end for
@@ -1169,28 +1169,28 @@ _global.HTMLCSAuditor = new function()
1169
1169
// Filter only the wanted error types.
1170
1170
var ignore = false ;
1171
1171
switch ( messages [ i ] . type ) {
1172
- case HTMLCS . ERROR :
1173
- if ( _options . show . error === false ) {
1174
- ignore = true ;
1175
- } else {
1176
- errors ++ ;
1177
- }
1172
+ case HTMLCS . ERROR :
1173
+ if ( _options . show . error === false ) {
1174
+ ignore = true ;
1175
+ } else {
1176
+ errors ++ ;
1177
+ }
1178
1178
break ;
1179
1179
1180
- case HTMLCS . WARNING :
1181
- if ( _options . show . warning === false ) {
1182
- ignore = true ;
1183
- } else {
1184
- warnings ++ ;
1185
- }
1180
+ case HTMLCS . WARNING :
1181
+ if ( _options . show . warning === false ) {
1182
+ ignore = true ;
1183
+ } else {
1184
+ warnings ++ ;
1185
+ }
1186
1186
break ;
1187
1187
1188
- case HTMLCS . NOTICE :
1189
- if ( _options . show . notice === false ) {
1190
- ignore = true ;
1191
- } else {
1192
- notices ++ ;
1193
- }
1188
+ case HTMLCS . NOTICE :
1189
+ if ( _options . show . notice === false ) {
1190
+ ignore = true ;
1191
+ } else {
1192
+ notices ++ ;
1193
+ }
1194
1194
break ;
1195
1195
} //end switch
1196
1196
@@ -1322,7 +1322,7 @@ _global.HTMLCSAuditor = new function()
1322
1322
cssLink . href = _options . path + prefix + '.css' ;
1323
1323
head . appendChild ( cssLink ) ;
1324
1324
}
1325
- }
1325
+ } ;
1326
1326
1327
1327
this . getStandardList = function ( ) {
1328
1328
var pattern = / ^ H T M L C S _ [ ^ _ ] + $ / ;
@@ -1380,7 +1380,7 @@ _global.HTMLCSAuditor = new function()
1380
1380
var _doc = this . getParentElement ( ) ;
1381
1381
if ( _doc . ownerDocument ) {
1382
1382
_doc = _doc . ownerDocument ;
1383
- } ;
1383
+ }
1384
1384
1385
1385
return _doc ;
1386
1386
} ;
@@ -1434,7 +1434,7 @@ _global.HTMLCSAuditor = new function()
1434
1434
1435
1435
if ( document . querySelectorAll ( 'frameset' ) . length === 0 ) {
1436
1436
source . push ( document ) ;
1437
- } ;
1437
+ }
1438
1438
1439
1439
if ( _top . frames . length > 0 ) {
1440
1440
for ( var i = 0 ; i < _top . frames . length ; i ++ ) {
@@ -1608,7 +1608,7 @@ _global.HTMLCSAuditor = new function()
1608
1608
_doc . documentElement . querySelector ( '.HTMLCS-settings' ) . appendChild ( msgElementSource ) ;
1609
1609
1610
1610
var msg = 'HTML_CodeSniffer has been updated to version ' + response . newVersion + '.' ;
1611
- msg += ' <a href="http://squizlabs.github.io/HTML_CodeSniffer/patches/' + response . newVersion + '">View the changelog</a>'
1611
+ msg += ' <a href="http://squizlabs.github.io/HTML_CodeSniffer/patches/' + response . newVersion + '">View the changelog</a>' ;
1612
1612
1613
1613
msgElementSource . innerHTML = msg ;
1614
1614
} //end if
@@ -2027,35 +2027,35 @@ _global.HTMLCSAuditor = new function()
2027
2027
var left = 0 ;
2028
2028
var bounceHeight = 20 ;
2029
2029
switch ( direction ) {
2030
- case 'up' :
2031
- bounceHeight = ( - bounceHeight ) ;
2032
- top = rect . y2 ;
2033
- if ( ( rect . x2 - rect . x1 ) < 250 ) {
2034
- left = ( this . getRectMidPnt ( rect ) - ( this . pointerDim . width / 2 ) ) ;
2035
- } else {
2036
- left = rect . x1 ;
2037
- }
2030
+ case 'up' :
2031
+ bounceHeight = ( - bounceHeight ) ;
2032
+ top = rect . y2 ;
2033
+ if ( ( rect . x2 - rect . x1 ) < 250 ) {
2034
+ left = ( this . getRectMidPnt ( rect ) - ( this . pointerDim . width / 2 ) ) ;
2035
+ } else {
2036
+ left = rect . x1 ;
2037
+ }
2038
2038
break ;
2039
2039
2040
- case 'down' :
2041
- default :
2042
- top = ( rect . y1 - this . pointerDim . height ) ;
2043
- if ( ( rect . x2 - rect . x1 ) < 250 ) {
2044
- left = ( this . getRectMidPnt ( rect ) - ( this . pointerDim . width / 2 ) ) ;
2045
- } else {
2046
- left = rect . x1 ;
2047
- }
2040
+ case 'down' :
2041
+ default :
2042
+ top = ( rect . y1 - this . pointerDim . height ) ;
2043
+ if ( ( rect . x2 - rect . x1 ) < 250 ) {
2044
+ left = ( this . getRectMidPnt ( rect ) - ( this . pointerDim . width / 2 ) ) ;
2045
+ } else {
2046
+ left = rect . x1 ;
2047
+ }
2048
2048
break ;
2049
2049
2050
- case 'left' :
2051
- left = rect . x2 ;
2052
- top = ( this . getRectMidPnt ( rect , true ) - ( this . pointerDim . height / 2 ) ) ;
2050
+ case 'left' :
2051
+ left = rect . x2 ;
2052
+ top = ( this . getRectMidPnt ( rect , true ) - ( this . pointerDim . height / 2 ) ) ;
2053
2053
break ;
2054
2054
2055
- case 'right' :
2056
- bounceHeight = ( - bounceHeight ) ;
2057
- left = ( rect . x1 - this . pointerDim . width ) ;
2058
- top = ( this . getRectMidPnt ( rect , true ) - ( this . pointerDim . height / 2 ) ) ;
2055
+ case 'right' :
2056
+ bounceHeight = ( - bounceHeight ) ;
2057
+ left = ( rect . x1 - this . pointerDim . width ) ;
2058
+ top = ( this . getRectMidPnt ( rect , true ) - ( this . pointerDim . height / 2 ) ) ;
2059
2059
break ;
2060
2060
2061
2061
} //end switch
@@ -2111,18 +2111,18 @@ _global.HTMLCSAuditor = new function()
2111
2111
var maxBounce = 5 ;
2112
2112
2113
2113
switch ( direction ) {
2114
- case 'up' :
2115
- currentDirection = direction + '-op' ;
2116
- initalPosOffset = dist ;
2117
- case 'down' :
2118
- style = 'top' ;
2114
+ case 'up' :
2115
+ currentDirection = direction + '-op' ;
2116
+ initalPosOffset = dist ;
2117
+ case 'down' :
2118
+ style = 'top' ;
2119
2119
break ;
2120
2120
2121
- case 'left' :
2122
- currentDirection = direction + '-op' ;
2123
- initalPosOffset = dist ;
2124
- case 'right' :
2125
- style = 'left' ;
2121
+ case 'left' :
2122
+ currentDirection = direction + '-op' ;
2123
+ initalPosOffset = dist ;
2124
+ case 'right' :
2125
+ style = 'left' ;
2126
2126
break ;
2127
2127
}
2128
2128
@@ -2184,6 +2184,6 @@ _global.HTMLCSAuditor = new function()
2184
2184
}
2185
2185
}
2186
2186
2187
- }
2187
+ } ;
2188
2188
2189
2189
} ;
0 commit comments