socketio/server/www/static/js/remote-server.js
/**
       * Check whether the user's browser supports Data URI or not
       * 
       * @private
       * @param {Function} fSuccess Occurs if it supports Data URI
       * @param {Function} fFail Occurs if it doesn't support Data URI
       */
Check whether the user's browser supports Data URI or not

@private
@param {Function} fSuccess Occurs if it supports Data URI
@param {Function} fFail Occurs if it doesn't support Data URI
Check whether the user ' s browser supports Data URI or not @private @param { Function } fSuccess Occurs if it supports Data URI @param { Function } fFail Occurs if it doesn ' t support Data URI
function _safeSetDataURI(fSuccess, fFail) {
              var self = this;
              self._fFail = fFail;
              self._fSuccess = fSuccess;
              if (self._bSupportDataURI === null) {
                  var el = document.createElement("img");
                  var fOnError = function() {
                      self._bSupportDataURI = false;
                      if (self._fFail) {
                          self._fFail.call(self);
                      }
                  };
                  var fOnSuccess = function() {
                      self._bSupportDataURI = true;
                      if (self._fSuccess) {
                          self._fSuccess.call(self);
                      }
                  };
                  el.onabort = fOnError;
                  el.onerror = fOnError;
                  el.onload = fOnSuccess;
                  el.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="; 
                  return;
              } else if (self._bSupportDataURI === true && self._fSuccess) {
                  self._fSuccess.call(self);
              } else if (self._bSupportDataURI === false && self._fFail) {
                  self._fFail.call(self);
              }
      }
function _safeSetDataURI ( fSuccess , fFail ) { var self = this ; self . _fFail = fFail ; self . _fSuccess = fSuccess ; if ( self . _bSupportDataURI === null ) { var el = document . createElement ( "img" ) ; var fOnError = function ( ) { self . _bSupportDataURI = false ; if ( self . _fFail ) { self . _fFail . call ( self ) ; } } ; var fOnSuccess = function ( ) { self . _bSupportDataURI = true ; if ( self . _fSuccess ) { self . _fSuccess . call ( self ) ; } } ; el . onabort = fOnError ; el . onerror = fOnError ; el . onload = fOnSuccess ; el . src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" ; return ; } else if ( self . _bSupportDataURI === true && self . _fSuccess ) { self . _fSuccess . call ( self ) ; } else if ( self . _bSupportDataURI === false && self . _fFail ) { self . _fFail . call ( self ) ; } }
Check whether the user's browser supports Data URI or not
Check whether the user ' s browser supports Data URI or not
// Check it just once // the Image contains 1px data.