mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
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(['_setAllowLinker', true]);
|
||||||
_gaq.push(['_trackPageview']);
|
_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';
|
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.load("feeds", "1");
|
||||||
google.setOnLoadCallback(initialize);
|
google.setOnLoadCallback(initialize);
|
||||||
google_analytics();
|
google_analytics();
|
||||||
|
|
||||||
jQuery(document).ready(function($){
|
jQuery(document).ready(function($) {
|
||||||
var url = window.location.href;
|
var url = window.location.href;
|
||||||
// Get the basename of the URL
|
// Get the basename of the URL
|
||||||
url = url.split(/[\\/]/).pop()
|
url = url.split(/[\\/]/).pop()
|
||||||
$('.nav a[href="/'+url+'"]').parent().addClass('active');
|
$('.nav a[href="/' + url + '"]').parent().addClass('active');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user