Subversion Repositories LCARS

Rev

Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

1
(function () {
  var ua = navigator.userAgent;
  document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>');

  var oUA;
  var tUA = _runAsync(function () {
    if (typeof oUA == "undefined")
    {
      oUA = document.getElementById("ua");
    }

    if (oUA)
    {
      var ua = navigator.userAgent;

      if (oUA.innerHTML != ua)
      {
        oUA.innerHTML = ua;
      }

      /* Converts CREs */
      var oUAhtml = oUA.innerHTML
      if (oUA.title != oUAhtml)
      {
        oUA.title = oUAhtml;
      }
    }

    tUA = this.run();
  }, 1000);

  _addEventListener(document, "unload", function () {
    tUA.unset();
    tUA = null;
  });
}());