Blame view

common/assets/layouts/global/scripts/cookie-consent.js 423 Bytes
cf8b0fb9   Nung Poti   template master
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
Cookie consent init
**/

var CookieConsent = function () {

    var _init = function () {
        $('.mt-cookie-consent-bar').cookieBar({ 
            closeButton : '.mt-cookie-consent-btn' 
        });
    };

    return {
        init: function () {
            _init();
        }
    };

}();

if (App.isAngularJsApp() === false) { 
    jQuery(document).ready(function() {    
       CookieConsent.init(); 
    });
}