eslint
This commit is contained in:
parent
2e815bc23e
commit
774d522cee
|
@ -172,7 +172,7 @@ function browserInfo() {
|
|||
|
||||
// In most other browsers, "name/version" is at the end of userAgent
|
||||
else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < (verOffset=nAgt.lastIndexOf('/')) ) {
|
||||
browserName = nAgt.substring(nameOffset,verOffset);
|
||||
browserName = nAgt.substring(nameOffset, verOffset);
|
||||
fullVersion = nAgt.substring(verOffset+1);
|
||||
if (browserName.toLowerCase()==browserName.toUpperCase()) {
|
||||
browserName = navigator.appName;
|
||||
|
@ -181,16 +181,16 @@ function browserInfo() {
|
|||
|
||||
// trim the fullVersion string at semicolon/space if present
|
||||
if ((ix=fullVersion.indexOf(";")) != -1) {
|
||||
fullVersion=fullVersion.substring(0,ix);
|
||||
fullVersion=fullVersion.substring(0, ix);
|
||||
}
|
||||
if ((ix=fullVersion.indexOf(" ")) != -1) {
|
||||
fullVersion=fullVersion.substring(0,ix);
|
||||
fullVersion=fullVersion.substring(0, ix);
|
||||
}
|
||||
|
||||
var majorVersion = parseInt(''+fullVersion,10);
|
||||
var majorVersion = parseInt(''+fullVersion, 10);
|
||||
if (isNaN(majorVersion)) {
|
||||
fullVersion = ''+parseFloat(navigator.appVersion);
|
||||
majorVersion = parseInt(navigator.appVersion,10);
|
||||
fullVersion = ''+parseFloat(navigator.appVersion);
|
||||
majorVersion = parseInt(navigator.appVersion, 10);
|
||||
}
|
||||
|
||||
// OSName variable is set as follows:
|
||||
|
|
|
@ -433,7 +433,7 @@ function streamFastRev( action ) {
|
|||
}
|
||||
clearInterval(intervalRewind);
|
||||
$j('select[name="rate"]').val(-revSpeed*100);
|
||||
setCookie('zmEventRate', vid.playbackRate()*100, 3600;
|
||||
setCookie('zmEventRate', vid.playbackRate()*100, 3600);
|
||||
intervalRewind = setInterval(function() {
|
||||
if (vid.currentTime() <= 0) {
|
||||
clearInterval(intervalRewind);
|
||||
|
|
Loading…
Reference in New Issue