bigbluebutton-Github/bigbluebutton-client/resources/prod/lib/bbb_blinker.js

115 lines
3.3 KiB
JavaScript
Raw Normal View History

function setTitle(title){
Merge branch 'master' into mconf-branding Conflicts: bigbluebutton-client/build.xml bigbluebutton-client/locale/ar_SY/bbbResources.properties bigbluebutton-client/locale/az_AZ/bbbResources.properties bigbluebutton-client/locale/bg_BG/bbbResources.properties bigbluebutton-client/locale/ca_ES/bbbResources.properties bigbluebutton-client/locale/cs_CZ/bbbResources.properties bigbluebutton-client/locale/da_DK/bbbResources.properties bigbluebutton-client/locale/de_DE/bbbResources.properties bigbluebutton-client/locale/el_GR/bbbResources.properties bigbluebutton-client/locale/en_US/bbbResources.properties bigbluebutton-client/locale/es_ES/bbbResources.properties bigbluebutton-client/locale/es_LA/bbbResources.properties bigbluebutton-client/locale/et_EE/bbbResources.properties bigbluebutton-client/locale/eu_EU/bbbResources.properties bigbluebutton-client/locale/fa_IR/bbbResources.properties bigbluebutton-client/locale/fi_FI/bbbResources.properties bigbluebutton-client/locale/fr_CA/bbbResources.properties bigbluebutton-client/locale/fr_FR/bbbResources.properties bigbluebutton-client/locale/he_IL/bbbResources.properties bigbluebutton-client/locale/hr_HR/bbbResources.properties bigbluebutton-client/locale/hu_HU/bbbResources.properties bigbluebutton-client/locale/id_ID/bbbResources.properties bigbluebutton-client/locale/it_IT/bbbResources.properties bigbluebutton-client/locale/ja_JP/bbbResources.properties bigbluebutton-client/locale/kk_KZ/bbbResources.properties bigbluebutton-client/locale/km_KH/bbbResources.properties bigbluebutton-client/locale/ko_KR/bbbResources.properties bigbluebutton-client/locale/lt_LT/bbbResources.properties bigbluebutton-client/locale/lv_LV/bbbResources.properties bigbluebutton-client/locale/mn_MN/bbbResources.properties bigbluebutton-client/locale/ne_NE/bbbResources.properties bigbluebutton-client/locale/nl_NL/bbbResources.properties bigbluebutton-client/locale/no_NO/bbbResources.properties bigbluebutton-client/locale/pl_PL/bbbResources.properties bigbluebutton-client/locale/pt_BR/bbbResources.properties bigbluebutton-client/locale/pt_PT/bbbResources.properties bigbluebutton-client/locale/ro_RO/bbbResources.properties bigbluebutton-client/locale/ru_RU/bbbResources.properties bigbluebutton-client/locale/si_LK/bbbResources.properties bigbluebutton-client/locale/sk_SK/bbbResources.properties bigbluebutton-client/locale/sr_RS/bbbResources.properties bigbluebutton-client/locale/sv_SE/bbbResources.properties bigbluebutton-client/locale/th_TH/bbbResources.properties bigbluebutton-client/locale/tr_TR/bbbResources.properties bigbluebutton-client/locale/uk_UA/bbbResources.properties bigbluebutton-client/locale/vi_VN/bbbResources.properties bigbluebutton-client/locale/zh_CN/bbbResources.properties bigbluebutton-client/locale/zh_TW/bbbResources.properties bigbluebutton-client/resources/prod/MconfLive.html bigbluebutton-client/resources/prod/lib/bbb_blinker.js bigbluebutton-client/src/BigBlueButton.mxml bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml bigbluebutton-client/src/org/bigbluebutton/main/views/MicSettings.mxml bigbluebutton-web/grails-app/conf/bigbluebutton.properties record-and-playback/presentation/playback/presentation/playback.html
2013-08-27 08:26:44 +08:00
document.title= title;
}
function clientReady(message){
var target = document.getElementById("clientReady");
if (target) target.innerHTML = message;
2012-08-10 02:14:20 +08:00
}
function determineModifier()
{
var browser = determineBrowser()[0];
var modifier;
if (browser == "Firefox"){
modifier = "control+";
}
else if (browser == "Chrome"){
modifier = "control+";
}
else if (browser == "Microsoft Internet Explorer"){
modifier = "control+shift+";
}
//else if (browser == "Safari"){
// modifier = "control+shift+";
//}
else{
modifier = "control+shift+";
}
return modifier;
}
function determineGlobalModifier()
{
var browser = determineBrowser()[0];
var modifier;
if (browser == "Firefox"){
modifier = "control+shift+";
}
else if (browser == "Chrome"){
modifier = "control+shift+";
}
else if (browser == "Microsoft Internet Explorer"){
modifier = "control+alt+";
}
//else if (browser == "Safari"){
// modifier = "control+alt";
//}
else{
modifier = "control+alt+";
}
return modifier;
}
2012-08-10 02:14:20 +08:00
function determineBrowser()
{
// Browser name extraction code provided by http://www.javascripter.net/faq/browsern.htm
var nVer = navigator.appVersion;
var nAgt = navigator.userAgent;
var browserName = navigator.appName;
var fullVersion = ''+parseFloat(navigator.appVersion);
var majorVersion = parseInt(navigator.appVersion,10);
var nameOffset,verOffset,ix;
// In Opera, the true version is after "Opera" or after "Version"
if ((verOffset=nAgt.indexOf("Opera"))!=-1) {
browserName = "Opera";
fullVersion = nAgt.substring(verOffset+6);
if ((verOffset=nAgt.indexOf("Version"))!=-1)
fullVersion = nAgt.substring(verOffset+8);
}
// In MSIE, the true version is after "MSIE" in userAgent
else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {
browserName = "Microsoft Internet Explorer";
fullVersion = nAgt.substring(verOffset+5);
}
// In Chrome, the true version is after "Chrome"
else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) {
browserName = "Chrome";
fullVersion = nAgt.substring(verOffset+7);
}
// In Safari, the true version is after "Safari" or after "Version"
else if ((verOffset=nAgt.indexOf("Safari"))!=-1) {
browserName = "Safari";
fullVersion = nAgt.substring(verOffset+7);
if ((verOffset=nAgt.indexOf("Version"))!=-1)
fullVersion = nAgt.substring(verOffset+8);
}
// In Firefox, the true version is after "Firefox"
else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) {
browserName = "Firefox";
fullVersion = nAgt.substring(verOffset+8);
}
// 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);
fullVersion = nAgt.substring(verOffset+1);
if (browserName.toLowerCase()==browserName.toUpperCase()) {
browserName = navigator.appName;
}
}
// trim the fullVersion string at semicolon/space if present
if ((ix=fullVersion.indexOf(";"))!=-1)
fullVersion=fullVersion.substring(0,ix);
if ((ix=fullVersion.indexOf(" "))!=-1)
fullVersion=fullVersion.substring(0,ix);
majorVersion = parseInt(''+fullVersion,10);
if (isNaN(majorVersion)) {
fullVersion = ''+parseFloat(navigator.appVersion);
majorVersion = parseInt(navigator.appVersion,10);
}
return [browserName, majorVersion];
2012-08-10 02:14:20 +08:00
}