-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlabs.js
executable file
·32 lines (28 loc) · 1.19 KB
/
labs.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
/*
(function() {
var css = "z-index:6000;position:fixed;width:200px;height:100px;top:270px;right:0;"+
"background:url('https://kepler.opengeo.tech/images/keplerjs.png') center center;padding:3px;"+
"background-size:200px 100px;color:#479;font-size:12px;font-style:italic;"+
"box-shadow:0 0 16px rgba(0,0,0,0.3);text-align:right;text-decoration:none";
var div = document.createElement('a');
div.setAttribute('id','banner');
document.body.appendChild(div);
div.setAttribute('style', css);
div.setAttribute('href', 'https://kepler.opengeo.tech/');
div.innerHTML = 'The new opensource <br>geosocial platform';
})();
*/
if (location.hostname==='opengeo.tech') {
window.GA = 'UA-157805814-1';
var _gaq = _gaq || [];
_gaq.push(['_setAccount', GA]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
}
else if (location.hostname!=='localhost') {
location.href = 'https://opengeo.tech/'
}