Nexus Theme
Drupal 8.4.0 verzióra frissítés után nem jelenik meg mobilon, illetve mobil nézeten az oldal navigációs főmenüje. Meg desktop, mobil nézeten nem jelenik meg a slide. Ennek valójában az az oka, hogy az újabb core frissítés már újabb jquery-t használ. A megoldás az, hogy módosítanunk kell a Nexus Témának a slide.js, costum.js állományait.
slide.js
jQuery(window).on('load', function() {
jQuery('#slidebox').flexslider({
animation: "fade",
directionNav:true,
controlNav:false
});
});
custom.js
(function ($) {
$(window).on('load', function() {
/* Navigation */
$('#main-menu > nav > ul').superfish({
delay: 500, // 0.1 second delay on mouseout
animation: { opacity:'show',height:'show'}, // fade-in and slide-down animation
dropShadows: true // disable drop shadows
});
$('#main-menu > nav > ul').mobileMenu({
prependTo:'.mobilenavi',
groupPageText: Drupal.t('Main'),
topOptionText: Drupal.t('Select a page')
});
});
})(jQuery);
( function() {
var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1,
is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1;
if ( ( is_webkit || is_opera || is_ie ) && 'undefined' !== typeof( document.getElementById ) ) {
var eventMethod = ( window.addEventListener ) ? 'addEventListener' : 'attachEvent';
window[ eventMethod ]( 'hashchange', function() {
var element = document.getElementById( location.hash.substring( 1 ) );
if ( element ) {
if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) )
element.tabIndex = -1;
element.focus();
}
}, false );
}
})();
























