website: Fix indentation
[Thomas: fix commit title.] Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
36c12e8203
commit
4438ccafcb
|
@ -44,19 +44,21 @@ function google_analytics() {
|
|||
_gaq.push(['_setAllowLinker', true]);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
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);
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(ga, s);
|
||||
}
|
||||
|
||||
google.load("feeds", "1");
|
||||
google.setOnLoadCallback(initialize);
|
||||
google_analytics();
|
||||
|
||||
jQuery(document).ready(function($){
|
||||
jQuery(document).ready(function($) {
|
||||
var url = window.location.href;
|
||||
// Get the basename of the URL
|
||||
url = url.split(/[\\/]/).pop()
|
||||
$('.nav a[href="/'+url+'"]').parent().addClass('active');
|
||||
$('.nav a[href="/' + url + '"]').parent().addClass('active');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue