-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmenuativo2.inc.php
32 lines (32 loc) · 1.38 KB
/
menuativo2.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("home") > -1) {
$('#home').css('border-bottom', '3px solid red');
} else if (window.location.href.indexOf("nossahistoria") > -1) {
$('#nossahistoria').css('border-bottom', '3px solid red');
} else if (window.location.href.indexOf("fotos") > -1) {
$('#fotos').css('border-bottom', '3px solid red');
} else if (window.location.href.indexOf("enquetes") > -1) {
$('#enquetes').css('border-bottom', '3px solid red');
} else if (window.location.href.indexOf("localcasamento") > -1) {
$('#localcasamento').css('border-bottom', '3px solid red');
}
});
</script>