-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmenuativo.inc.php
32 lines (32 loc) · 1.35 KB
/
menuativo.inc.php
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
<?php if (realpath(__FILE__) === realpath($_SERVER['SCRIPT_FILENAME'])) header('Location: '.$urlHost);
?>
<script type="text/javascript">
/*
$(document).ready(function(){
if (window.location.href.indexOf("myprofile") > -1) {
$('#profile').css('background-color', 'green');
} else if window.location.href.indexOf("dashboard") > -1) {
$('#dashboard').css('background-color', 'green');
} else if (window.location.href.indexOf("statistics") > -1) {
$('#statistics').css('background-color', 'green');
} else if (window.location.href.indexOf("reporting") > -1) {
$('#reporting').css('background-color', 'green');
} else if (window.location.href.indexOf("training") > -1) {
$('#training').css('background-color', 'green');
}
});
*/
$(document).each(function () {
if (window.location.href.indexOf("inicio") > -1) {
$('#inicio').css('background-color', 'white');
} else if (window.location.href.indexOf("meucasamento") > -1) {
$('#meucasamento').css('background-color', 'white');
} else if (window.location.href.indexOf("presentes") > -1) {
$('#presentes').css('background-color', 'white');
} else if (window.location.href.indexOf("site") > -1) {
$('#site').css('background-color', 'white');
} else if (window.location.href.indexOf("convidados") > -1) {
$('#convidados').css('background-color', 'white');
}
});
</script>