var cookiesGDPR = function() {
var current_level = null;
var config = {
cookieCssFilepath: "/static/projects/cookies/css/cookies.css",
privacyStatementUrl: "/personal/privacy-statement.do",
cookieName: "cookie_consent_level",
cookieExpires: new Date(new Date().getTime() + 365 * 24 * 60 * 60 * 1000),
// 1 year
cookieLevel: null,
cookieVersionName: 'cookie_consent_version',
cookieVersion: 2,
viewContainer: "body",
requiredLevel: "essential",
defaultLevelId: "essential",
cookieNotice: "We use cookies to collect data from your device. We all have our preferences, and to help you choose we have grouped cookies into three categories: Essential or Necessary cookies; Personalisation Cookies and Marketing cookies. Allowing all cookies would give you the most comprehensive customer experience. Cookies we use in this site may be our own (First Party) or deployed by a Third Party. You can obtain more information about each category and change your preferences by selecting `manage preferences`. For detailed information on each cookie, please click our Cookies link. For information on how we use personal data please see our UK Consumer Bank Online Privacy Statement and Cookies Policy.",
cookieNoticeCbol: "Our Citi Online banking portal uses strictly necessary cookies. These cookies include single-session, long term login and location identifiers to make our Online banking portal user friendly and function securely. Measurement cookies are also deployed to analyse anonymised usage patterns. This site does not use personalisation or marketing cookies. All cookies are managed by Citi and owned by us (First Party) or licensed by a Third Party. You can change or switch off all cookies in your browser settings; However, this may mean that certain access or security functions are no longer available. For detailed information on each cookie please visit our Cookies page. For information on how we use personal data please check our UK Consumer Bank Online Privacy Statement and Cookies Policy.",
modalContent: {
header: "Your cookie settings",
description: "Cookies are very small text files that are stored on your computer when you visit some websites.
We use cookies to make our website easier for you to use. You can remove any cookies already stored on your computer, but these may prevent you from using parts of our website."
},
levels: [{
id: "essential",
title: "Essential or Strictly Necessary Cookies",
permissions: ["These allow you to access different parts of the Citi Consumer Bank website. These cookies are necessary for the security and integrity of the website and customer’s use of basic site functions, and cannot be switched off."],
callback: function callback() {}
}, {
id: "functional",
title: "Enhanced Functionalities, Personalisation and Performance Cookies",
permissions: ["These cookies provide enhanced functionalities, personalisation and performance. They may be set by us or by providers whose services we have added to our pages. These cookies help us understand how people use our website and their interests, showing you relevant content. We will use this data for statistical purposes and site improvements. If you do not allow these cookies we will not use this data to personalise or improve our site accordingly."],
callback: function callback() {}
}, {
id: "marketing",
title: "Marketing Cookies",
permissions: ["These cookies are implemented by Citi to build a user profile and place our adverts on search engines and sites you visit (including Social Media). Marketing cookies solely identify your browser and internet device, and no other personal information about you is collected or processed. If you do not allow these cookies, you will not receive targeted advertising."],
callback: function callback() {}
}]
};
var modal = {
html: function html() {
return "" + "
" + "" + "
" + "
" + "
" + config.modalContent.header + "
" + "
" + "
" + "
" + modal.renderLevelHtml.header() + "
" + "
" + "" + "
" + "
"
},
renderLevelHtml: {
header: function header() {
var output = "";
var cookieLevelArr = config.cookieLevel.split(',')
config.levels.forEach(function(elem, i) {
var activeCls = "";
var onOff = "OFF";
if (cookieLevelArr.filter(function (lvl) {return lvl === elem.id}).length) {
activeCls = "lively";
onOff = "ON";
}
if (elem.id === "essential") {
onOff = "Always active";
}
var headerChart = function(index) {
var out = "";
for (var i = 0; i < config.levels.length; i++) {
var isActive = i <= index ? "lively" : "";
out += ""
}
return out
}(i);
var description = "";
description += "