Subversion Repositories LCARS

Rev

Rev 210 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
210 PointedEar 1
(function () {
2
  var ua = navigator.userAgent;
3
  document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>');
4
 
5
  var oUA;
6
  var tUA = _runAsync(function () {
7
    if (typeof oUA == "undefined")
8
    {
9
      oUA = document.getElementById("ua");
10
    }
11
 
12
    if (oUA)
13
    {
14
      var ua = navigator.userAgent;
15
 
16
      if (oUA.innerHTML != ua)
17
      {
18
        oUA.innerHTML = ua;
19
      }
20
 
21
      /* Converts CREs */
22
      var oUAhtml = oUA.innerHTML
23
      if (oUA.title != oUAhtml)
24
      {
25
        oUA.title = oUAhtml;
26
      }
27
    }
28
 
29
    tUA = this.run();
30
  }, 1000);
31
 
32
  _addEventListener(document, "unload", function () {
33
    tUA.unset();
34
    tUA = null;
35
  });
36
}());