bar.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html >
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Bar Test BUP</title>
  7. <style>
  8. </style>
  9. </head>
  10. <body>
  11. <p>Testing the bar</p>
  12. <div id="container" style="position: relative;"></div>
  13. <input type="checkbox" id="clearcookie" checked/> Clear cookie before showing
  14. <script>
  15. var $buoop = {
  16. test: true//
  17. //text: "your %s is out if date" // custom notification html text
  18. // container:document.getElementById('container'),
  19. // noclose:true//,
  20. // url:"http://test.de",
  21. // ,l:"fr"
  22. };
  23. try {
  24. if (window.location.hash.length>5) {
  25. $buoop=JSON.parse(decodeURIComponent(window.location.hash.substr(1)));
  26. }
  27. }
  28. catch(e){
  29. window.alert("error in config string syntax");
  30. throw e;
  31. }
  32. $buoop.jsshowurl="../update.show.js";
  33. $buoop.domain="";
  34. //test attaching to a custom elemebt
  35. //$buoop.container=document.getElementById('container');
  36. //remove cookie
  37. if (document.getElementById("clearcookie").checked) {
  38. var d = new Date(0);
  39. document.cookie = 'browserupdateorg=pause; expires='+d.toGMTString()+'; path=/';
  40. }
  41. /*
  42. function boo(xx) {
  43. if(xx) {
  44. bla=xx.f;
  45. window.alert(bla)
  46. }
  47. }
  48. */
  49. //boo({})
  50. </script>
  51. <div class="noti">
  52. <h3>Detection</h3>
  53. <table>
  54. <tr><td>User-Agent-String (Javascript):</td><td><span id="str">xxx</span></td></tr>
  55. <tr><td>Detected as (Javascript):</td><td><span id="det">xxx</span></td></tr>
  56. <tr><td>Detected Language (Javascript):</td><td><span id="lang">xxx</span></td></tr>
  57. </table>
  58. <h3>Options: </h3>
  59. <div id="options"></div>
  60. </div>
  61. <script src="/update.js"></script>
  62. <script type="text/javascript">
  63. document.getElementById('options').innerHTML=JSON.stringify($buoop);
  64. document.getElementById('str').innerHTML=navigator.userAgent;
  65. var br=$bu_getBrowser();
  66. var aaa="";
  67. if (br.donotnotify)
  68. aaa="<br/>Not notified because: "+ br.donotnotify;
  69. document.getElementById('det').innerHTML=br.t+aaa;
  70. document.getElementById('lang').innerHTML=$buoop.ll;
  71. /*
  72. //test standard inclusion code
  73. function $buo_f(){
  74. var e = document.createElement("script");
  75. e.src = "../update.js";
  76. document.body.appendChild(e);
  77. };
  78. try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
  79. catch(e){window.attachEvent("onload", $buo_f)}
  80. */
  81. </script>
  82. </body>