Administrator
2023-04-21 195945efc5db921a4c9eb8cf9421c172273293f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 <b>Auto Container</b> Adds .container when window size is above 1140px.
 In Bootstrap you should stick with fixed width breakpoints.
 You can use this feature to enable fixed container only when window size is above 1140px
*/
(function($ , undefined) {
 
 $(window).on('resize.auto_container', function() {
    var enable = $(window).width() > 1140;
    try {
        ace.settings.main_container_fixed(enable, false, false);
    } catch(e) {
        if(enable) $('.main-container,.navbar-container').addClass('container');
        else $('.main-container,.navbar-container').removeClass('container');
        $(document).trigger('settings.ace', ['main_container_fixed' , enable]);
    }
 }).triggerHandler('resize.auto_container');
 
})(window.jQuery);