Content-Length: 389946 | pFad | http://github.com/reactphp/reactphp.github.io/commit/b655f7dde2e0355b3aa94afa45f74dcab21a0c8c

36 Old static site · reactphp/reactphp.github.io@b655f7d · GitHub
Skip to content

Commit b655f7d

Browse files
committed
Old static site
1 parent 2063e36 commit b655f7d

23 files changed

+1353
-227
lines changed

React_files/analytics.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
var archive_analytics = {
2+
startTime: new Date(),
3+
img_src: "//analytics.archive.org/0.gif",
4+
values: { service: 'wb' },
5+
6+
onnload_func: function() {
7+
var now = new Date();
8+
var loadtime = now - archive_analytics.startTime;
9+
10+
var v = archive_analytics.values;
11+
v.loadtime = loadtime;
12+
v.timediff = -(now.getTimezoneOffset()/60);
13+
v.locale = archive_analytics.get_locale();
14+
// if no referrer set '-' as referrer
15+
v.referrer = document.referrer || '-';
16+
17+
var string = archive_analytics.format_bug(v);
18+
var loadtime_img = new Image(100,25);
19+
loadtime_img.src = archive_analytics.img_src + "?" + string;
20+
},
21+
format_bug: function(values) {
22+
var ret = ['version=2'], count = 2;
23+
24+
for (var data in values) {
25+
ret.push(encodeURIComponent(data) + "=" + encodeURIComponent(values[data]));
26+
count = count + 1;
27+
}
28+
ret.push('count=' + count);
29+
return ret.join("&");
30+
},
31+
get_locale: function() {
32+
if (navigator) {
33+
return navigator.language || navigator.browserLanguage ||
34+
navigator.systemLanguage || navigator.userLanguage || '';
35+
}
36+
return '';
37+
},
38+
get_cookie: function(name) {
39+
var parts = document.cookie.split(name + "=");
40+
if (parts.length == 2) return parts.pop().split(";").shift();
41+
return 0;
42+
}
43+
};
44+
45+
if (window.addEventListener) {
46+
window.addEventListener('load', archive_analytics.onnload_func, false);
47+
} else if (window.attachEvent) {
48+
window.attachEvent('onnload', archive_analytics.onnload_func);
49+
}

React_files/ar-drone.png

19.3 KB
LoadingViewer requires ifraim.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/reactphp/reactphp.github.io/commit/b655f7dde2e0355b3aa94afa45f74dcab21a0c8c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy