forked from Kerrick/FreshBookMark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.html
32 lines (31 loc) · 1.14 KB
/
main.html
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
<html>
<head>
<title>Basecamp Shortcut Redirecting...</title>
<link rel="shortcut icon" href="/icon_16.png">
</head>
<script type="text/javascript">
// begin google analytics ------------------------------
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-26216738-1']);
_gaq.push(['_trackPageview']); (function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
// end google analytics --------------------------------
function get_options() {
var saved = localStorage["saved_url"];
if(saved == undefined || saved == null || saved == '') {
window.location = "options.html";
} else {
window.location = "https://" + saved + ".basecamphq.com";
}
}
</script>
<body onload="get_options()">
Redirecting...
</body>
</html>