Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. // Copyright 2007 Google Inc. All Rights Reserved.
  8. //
  9. // Sets up google.gears.*, which is *the only* supported way to access Gears.
  10. //
  11. // Circumvent this file at your own risk!
  12. //
  13. // In the future, Gears may automatically define google.gears.* without this
  14. // file. Gears may use these objects to transparently fix bugs and compatibility
  15. // issues. Applications that use the code below will continue to work seamlessly
  16. // when that happens.
  17. (function() {
  18. // We are already defined. Hooray!
  19. if (window.google && google.gears) {
  20. return;
  21. }
  22. var factory = null;
  23. // Firefox
  24. if (typeof GearsFactory != 'undefined') {
  25. factory = new GearsFactory();
  26. } else {
  27. // IE
  28. try {
  29. factory = new ActiveXObject('Gears.Factory');
  30. } catch (e) {
  31. // Safari
  32. if (navigator.mimeTypes["application/x-googlegears"]) {
  33. factory = document.createElement("object");
  34. factory.style.display = "none";
  35. factory.width = 0;
  36. factory.height = 0;
  37. factory.type = "application/x-googlegears";
  38. document.documentElement.appendChild(factory);
  39. }
  40. }
  41. }
  42. // *Do not* define any objects if Gears is not installed. This mimics the
  43. // behavior of Gears defining the objects in the future.
  44. if (!factory) {
  45. return;
  46. }
  47. // Now set up the objects, being careful not to overwrite anything.
  48. if (!window.google) {
  49. window.google = {};
  50. }
  51. if (!google.gears) {
  52. google.gears = {factory: factory};
  53. }
  54. })();
  55. if (!window.google || !google.gears) {
  56. location.href = "http://gears.google.com/?action=install&message=Google%20Gears%20is%20required%20for%20this%20application" +
  57. "&return="+window.location.href;
  58. }