Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($){
- $(document).on('ready', function() {
- let container = $('.jeg_header_wrapper .jeg_midbar .container');
- let posisition = ($( window ).width() - container.width()) / 2 ;
- $( ".jeg_megamenu" ).find('.sub-menu').css({"left": '-' + posisition + 'px',"right": '-' + posisition + 'px'});
- })
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement