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.

78 lines
2.3 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. This file is part of Ext JS 3.4
  3. Copyright (c) 2011-2013 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as
  7. published by the Free Software Foundation and appearing in the file LICENSE included in the
  8. packaging of this file.
  9. Please review the following information to ensure the GNU General Public License version 3.0
  10. requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  11. If you are unsure which license is appropriate for your use, please contact the sales department
  12. at http://www.sencha.com/contact.
  13. Build date: 2013-04-03 15:07:25
  14. */
  15. // Copyright 2007 Google Inc. All Rights Reserved.
  16. //
  17. // Sets up google.gears.*, which is *the only* supported way to access Gears.
  18. //
  19. // Circumvent this file at your own risk!
  20. //
  21. // In the future, Gears may automatically define google.gears.* without this
  22. // file. Gears may use these objects to transparently fix bugs and compatibility
  23. // issues. Applications that use the code below will continue to work seamlessly
  24. // when that happens.
  25. (function() {
  26. // We are already defined. Hooray!
  27. if (window.google && google.gears) {
  28. return;
  29. }
  30. var factory = null;
  31. // Firefox
  32. if (typeof GearsFactory != 'undefined') {
  33. factory = new GearsFactory();
  34. } else {
  35. // IE
  36. try {
  37. factory = new ActiveXObject('Gears.Factory');
  38. } catch (e) {
  39. // Safari
  40. if (navigator.mimeTypes["application/x-googlegears"]) {
  41. factory = document.createElement("object");
  42. factory.style.display = "none";
  43. factory.width = 0;
  44. factory.height = 0;
  45. factory.type = "application/x-googlegears";
  46. document.documentElement.appendChild(factory);
  47. }
  48. }
  49. }
  50. // *Do not* define any objects if Gears is not installed. This mimics the
  51. // behavior of Gears defining the objects in the future.
  52. if (!factory) {
  53. return;
  54. }
  55. // Now set up the objects, being careful not to overwrite anything.
  56. if (!window.google) {
  57. window.google = {};
  58. }
  59. if (!google.gears) {
  60. google.gears = {factory: factory};
  61. }
  62. })();
  63. if (!window.google || !google.gears) {
  64. location.href = "http://gears.google.com/?action=install&message=Google%20Gears%20is%20required%20for%20this%20application" +
  65. "&return="+window.location.href;
  66. }