My favorites
|
Sign in
glazkov-attic
Code Repository for attic.glazkov.com
Project Home
Downloads
Issues
Source
Checkout
|
Browse
|
Changes
|
r12
Source path:
svn
/
trunk
/
YourTimesheets
/
Scripts
/
gears_init.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Sets up google.gears.*, which is *the only* supported way to access Gears.
//
// Circumvent this file at your own risk!
//
// In the future, Gears may automatically define google.gears.* without this
// file. Gears may use these objects to transparently fix bugs and compatibility
// issues. Applications that use the code below will continue to work seamlessly
// when that happens.
(function() {
// We are already defined. Hooray!
if (window.google && google.gears) {
return;
}
var factory = null;
// Firefox
if (typeof GearsFactory != 'undefined') {
factory = new GearsFactory();
} else {
// IE
try {
factory = new ActiveXObject('Gears.Factory');
} catch (e) {
// Safari
if (navigator.mimeTypes["application/x-googlegears"]) {
factory = document.createElement("object");
factory.style.display = "none";
factory.width = 0;
factory.height = 0;
factory.type = "application/x-googlegears";
document.documentElement.appendChild(factory);
}
}
}
// *Do not* define any objects if Gears is not installed. This mimics the
// behavior of Gears defining the objects in the future.
if (!factory) {
return;
}
// Now set up the objects, being careful not to overwrite anything.
if (!window.google) {
window.google = {};
}
if (!google.gears) {
google.gears = {factory: factory};
}
})();
Show details
Hide details
Change log
r2
by dimitri.glazkov on Jan 24, 2008
Diff
initial check-in
Go to:
/trunk/YourTimesheets
/trunk/YourTimesheets/Default.aspx
...k/YourTimesheets/Default.aspx.cs
/trunk/YourTimesheets/Images
...imesheets/Images/exclamation.png
...imesheets/Images/information.png
/trunk/YourTimesheets/Scripts
...Timesheets/Scripts/breadboard.js
...urTimesheets/Scripts/database.js
...nk/YourTimesheets/Scripts/dom.js
...esheets/Scripts/gearification.js
...Timesheets/Scripts/gears_init.js
...YourTimesheets/Scripts/online.js
.../YourTimesheets/Scripts/store.js
...k/YourTimesheets/Scripts/sync.js
...rTimesheets/Scripts/validator.js
/trunk/YourTimesheets/Styles
...YourTimesheets/Styles/screen.css
/trunk/YourTimesheets/Tools
.../YourTimesheets/Tools/clean.html
/trunk/YourTimesheets/Web.Config
...ourTimesheets/YourTimesheets.sln
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1480 bytes, 54 lines
View raw file
Hosted by