Skip to content

Commit bb81426

Browse files
committed
auto publish 2023-05-25 12:44:58+00:00
1 parent 6869bdc commit bb81426

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

res/sage.js

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ var isWindows = navigator.platform.toUpperCase().indexOf('WIN')!==-1;
99
var isLinux = navigator.platform.toUpperCase().indexOf('LINUX')!==-1;
1010

1111
var sage = {
12-
tracklinks: function () {
13-
$("[track]").each(function() {
14-
var $this = $(this);
15-
var cat = $this.attr("track");
16-
$this.children("a").each(function() {
17-
var $a = $(this);
18-
$a.click(function() {
19-
pageTracker._trackEvent('Clicks', cat, $a.attr("href"), 0);
20-
});
21-
});
22-
});
23-
},
12+
//tracklinks: function () {
13+
// $("[track]").each(function() {
14+
// var $this = $(this);
15+
// var cat = $this.attr("track");
16+
// $this.children("a").each(function() {
17+
// var $a = $(this);
18+
// $a.click(function() {
19+
// pageTracker._trackEvent('Clicks', cat, $a.attr("href"), 0);
20+
// });
21+
// });
22+
// });
23+
//},
2424

2525
/* this variant doesn't work ...
2626
tracklinks: function() {
@@ -161,26 +161,26 @@ function initTwitter(d,s,id){
161161
}
162162

163163
/* facebook app */
164-
function initFacebook(d, s, id) {
165-
var js, fjs = d.getElementsByTagName(s)[0];
166-
if (d.getElementById(id)) return;
167-
js = d.createElement(s); js.id = id;
168-
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=109731879648&version=v2.0";
169-
fjs.parentNode.insertBefore(js, fjs);
170-
}
171-
172-
var _gaq = _gaq || [];
173-
_gaq.push(['_setAccount', 'UA-66100-10']);
174-
_gaq.push(['_setDomainName("sagemath.org")']);
175-
_gaq.push(['_setAllowLinker(true)']);
176-
_gaq.push(['_trackPageview']);
177-
_gaq.push(['_trackPageLoadTime']);
178-
179-
function googleAnalytics() {
180-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
181-
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
182-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
183-
}
164+
//function initFacebook(d, s, id) {
165+
// var js, fjs = d.getElementsByTagName(s)[0];
166+
// if (d.getElementById(id)) return;
167+
// js = d.createElement(s); js.id = id;
168+
// js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=109731879648&version=v2.0";
169+
// fjs.parentNode.insertBefore(js, fjs);
170+
//}
171+
172+
//var _gaq = _gaq || [];
173+
//_gaq.push(['_setAccount', 'UA-66100-10']);
174+
//_gaq.push(['_setDomainName("sagemath.org")']);
175+
//_gaq.push(['_setAllowLinker(true)']);
176+
//_gaq.push(['_trackPageview']);
177+
//_gaq.push(['_trackPageLoadTime']);
178+
//
179+
//function googleAnalytics() {
180+
// var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
181+
// ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
182+
// var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
183+
//}
184184

185185
var _Hasync= _Hasync|| [];
186186
_Hasync.push(['Histats.startgif', '1,1579950,4,10051,"div#histatsC {position: absolute;top:0px;left:0px;}body>div#histatsC {position: fixed;}"']);
@@ -207,10 +207,10 @@ function initClustermap() {
207207
$(sage.setDownloadUrls);
208208
$(sage.scrollNavbarInit);
209209
$(sage.touchMenu);
210-
$(googleAnalytics);
211-
$(sage.tracklinks);
210+
//$(googleAnalytics);
211+
//$(sage.tracklinks);
212212
$(initHistats);
213213
$(initMathjax);
214214
$(function() { initTwitter(document, 'script', 'twitter-wjs');});
215-
$(function() { initFacebook(document, 'script', 'facebook-jssdk');});
215+
//$(function() { initFacebook(document, 'script', 'facebook-jssdk');});
216216
$(initClustermap);

0 commit comments

Comments
 (0)