2011-03-28 05:45:08 +08:00
|
|
|
(function($){
|
|
|
|
$.fn.bigbluebutton = function(options){
|
|
|
|
|
2011-03-28 09:45:29 +08:00
|
|
|
$('body').append('<div id="speechArea" style="visibility:hidden"></div>');
|
|
|
|
|
|
|
|
function sendSpeechMessage(){
|
|
|
|
var speech = $('#speechArea');
|
|
|
|
if (speech.html() !== ""){
|
|
|
|
document.getElementById('BigBlueButton').sendChatMessage(speech.html());
|
|
|
|
speech.html("");
|
|
|
|
}
|
|
|
|
setTimeout(sendSpeechMessage, 300);
|
|
|
|
}
|
|
|
|
sendSpeechMessage();
|
|
|
|
|
2011-03-28 05:45:08 +08:00
|
|
|
}
|
|
|
|
})(jQuery);
|
|
|
|
|
|
|
|
$(function () { $.fn.bigbluebutton(); });
|
2012-11-24 07:04:17 +08:00
|
|
|
|
|
|
|
$(function () {
|
|
|
|
setTimeout(function(){
|
|
|
|
$('#BigBlueButton').focus();
|
2012-11-29 00:04:26 +08:00
|
|
|
},1000);
|
|
|
|
});
|
|
|
|
|
|
|
|
function startFlashFocus() {
|
|
|
|
f = $('#BigBlueButton')[0]
|
|
|
|
f.tabIndex = 0;
|
|
|
|
f.focus();
|
|
|
|
}
|
|
|
|
|
|
|
|
function stopFlashFocus() {
|
|
|
|
$('#enterFlash')[0].focus();
|
2014-02-08 08:56:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// http://stackoverflow.com/questions/5916900/detect-version-of-browser
|
|
|
|
navigator.sayswho= (function(){
|
|
|
|
var ua= navigator.userAgent,
|
|
|
|
N= navigator.appName,
|
|
|
|
tem,
|
|
|
|
M= ua.match(/(opera|chrome|safari|firefox|msie|trident)\/?\s*([\d\.]+)/i) || [];
|
|
|
|
M= M[2]? [M[1], M[2]]:[N, navigator.appVersion, '-?'];
|
|
|
|
if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];
|
|
|
|
return M;
|
2014-08-09 04:19:38 +08:00
|
|
|
})();
|