|
|
|
@ -4,29 +4,29 @@ $( function() {
|
|
|
|
|
var toggleTime = 200;
|
|
|
|
|
|
|
|
|
|
// Open the various menus
|
|
|
|
|
$( '#user-tools h2' ).on( 'click', function( e ) {
|
|
|
|
|
$( '#user-tools h2' ).on( 'click', function () {
|
|
|
|
|
if ( $( window ).width() < 851 ) {
|
|
|
|
|
$( '#personal-inner, #menus-cover' ).fadeToggle( toggleTime );
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
$( '#site-navigation h2' ).on( 'click', function( e ) {
|
|
|
|
|
$( '#site-navigation h2' ).on( 'click', function () {
|
|
|
|
|
if ( $( window ).width() < 851 ) {
|
|
|
|
|
$( '#site-navigation .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime );
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
$( '#site-tools h2' ).on( 'click', function( e ) {
|
|
|
|
|
$( '#site-tools h2' ).on( 'click', function () {
|
|
|
|
|
if ( $( window ).width() < 851 ) {
|
|
|
|
|
$( '#site-tools .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime );
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
$( '#ca-more' ).on( 'click', function( e ) {
|
|
|
|
|
$( '#page-tools .sidebar-inner' ).css( "top", $( '#ca-more' ).offset().top + 25 );
|
|
|
|
|
$( '#ca-more' ).on( 'click', function () {
|
|
|
|
|
$( '#page-tools .sidebar-inner' ).css( 'top', $( '#ca-more' ).offset().top + 25 );
|
|
|
|
|
if ( $( window ).width() < 851 ) {
|
|
|
|
|
$( '#page-tools .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime );
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
$( '#ca-languages' ).on( 'click', function( e ) {
|
|
|
|
|
$( '#other-languages .sidebar-inner' ).css( "top", $( '#ca-languages' ).offset().top + 25 );
|
|
|
|
|
$( '#ca-languages' ).on( 'click', function () {
|
|
|
|
|
$( '#other-languages .sidebar-inner' ).css( 'top', $( '#ca-languages' ).offset().top + 25 );
|
|
|
|
|
if ( $( window ).width() < 851 ) {
|
|
|
|
|
$( '#other-languages .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime );
|
|
|
|
|
}
|
|
|
|
@ -42,7 +42,7 @@ $( function() {
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
// Include alternative closing method for ios
|
|
|
|
|
$( window ).on( 'swiperight', function( e ) {
|
|
|
|
|
$( window ).on( 'swiperight', function () {
|
|
|
|
|
if ( $( window ).width() < 851 ) {
|
|
|
|
|
$( '#personal-inner' ).fadeOut( toggleTime );
|
|
|
|
|
$( '.sidebar-inner' ).fadeOut( toggleTime );
|
|
|
|
|