Files
tbbank-new/public/assets/js/app.js
2025-10-22 20:08:22 +05:00

67 lines
2.8 KiB
JavaScript

document.addEventListener('DOMContentLoaded', event => {
const phone = document.getElementById('phone');
(phone) ? new Inputmask("+(\\9\\93)-99-99-99-99").mask(phone) : ''
CookieConsent.run({
categories: {
necessary: {
enabled: true, // this category is enabled by default
readOnly: true // this category cannot be disabled
},
analytics: {}
},
guiOptions: {
consentModal: {
layout: 'cloud inline',
position: 'bottom center'
}
},
language: {
default: 'en',
translations: {
en: {
consentModal: {
title: 'We use cookies',
description: "We use cookies to enhance your browsing experience and provide personalized content. By clicking 'Accept All Cookies,' you consent to the use of all cookies on our website. You can also manage your cookie preferences by selecting 'Cookie Settings.' For more information about how we use cookies and your options, please see our Privacy Policy.",
acceptAllBtn: 'Accept all',
acceptNecessaryBtn: 'Reject all',
showPreferencesBtn: 'Manage Individual preferences'
},
preferencesModal: {
title: 'Manage cookie preferences',
acceptAllBtn: 'Accept all',
acceptNecessaryBtn: 'Reject all',
savePreferencesBtn: 'Accept current selection',
closeIconLabel: 'Close modal',
sections: [
{
title: 'Somebody said ... cookies?',
description: 'I want one!'
},
{
title: 'Strictly Necessary cookies',
description: 'These cookies are essential for the proper functioning of the website and cannot be disabled.',
//this field will generate a toggle linked to the 'necessary' category
linkedCategory: 'necessary'
},
{
title: 'Performance and Analytics',
description: 'These cookies collect information about how you use our website. All of the data is anonymized and cannot be used to identify you.',
linkedCategory: 'analytics'
},
{
title: 'More information',
description: 'For any queries in relation to my policy on cookies and your choices, please <a href="#contact-page">contact us</a>'
}
]
}
}
}
}
});
})