GITLAB

Nung Poti / stronglooptemplate

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • stronglooptemplate
  • common
  • assets
  • layouts
  • global
  • scripts
  • cookie-consent.js
  • cf8b0fb9   template master Browse Code ยป
    Nung Poti
    2016-07-01 18:16:45 +0700  
cookie-consent.js 423 Bytes
Edit Raw Blame History
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(); 
    });
}