forked from AppImage/appimage.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
27 lines (27 loc) · 827 Bytes
/
script.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
---
---
// Lazy loading
$(document).ready(function() {
$("img").unveil();
});
// Table sort
$(function(){
$(".tablesorter").tablesorter();
});
// Redirect https
if (window.location.protocol !== 'https:') {
window.location = 'https://' + window.location.hostname + window.location.pathname + window.location.hash;
}
{% if site.piwik_analytics %}
// Piwik
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//AppImage.rasalhague.uberspace.de/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 13]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
{% endif %}