progress on optimisation & nav
This commit is contained in:
@@ -23,15 +23,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
console.log( window.location.pathname );
|
||||
$('.navitem').mouseenter( function () {
|
||||
$( document ).ready(function () {
|
||||
$( '.navitem' ).mouseenter( function () {
|
||||
if ( window.location.pathname.slice( 1, window.location.pathname.length - 5 ) == this.id ) {} else {
|
||||
$(this).stop();
|
||||
$(this).animate( { 'color':'rgba(184, 214, 240, 1)' }, 200);
|
||||
$( this ).stop();
|
||||
$( this ).animate( { 'color':'rgba(184, 214, 240, 1)' }, 200);
|
||||
};
|
||||
});
|
||||
$('.navitem').mouseleave( function () {
|
||||
} );
|
||||
$( '.navitem' ).mouseleave( function () {
|
||||
if ( window.location.pathname.slice( 1, window.location.pathname.length - 5 ) == this.id ) {} else {
|
||||
$( this ).stop();
|
||||
$( this ).animate( { 'color':'black' }, 200 );
|
||||
@@ -51,7 +50,7 @@
|
||||
}
|
||||
|
||||
window.addEventListener( 'resize', function( event ) {
|
||||
if ( $(window).width() > 999 ) {
|
||||
if ( $( window ).width() > 999 ) {
|
||||
$( '.nav-menu' ).slideDown();
|
||||
previous = 1;
|
||||
} else if ( $(window).width() < 999 && previous == 1 ) {
|
||||
|
||||
Reference in New Issue
Block a user