/* global b$ */ (function () { const Container = b$.bdom.getNamespace('http://backbase.com/2013/portalView').getClass('container'); Container.extend(function () { Container.apply(this, arguments); this.isPossibleDragTarget = true; }, { localName: 'templateContainerBcsPubLoginPageLayout', namespaceURI: 'templates_templateContainerBcsPubLoginPageLayout', }, { template(json) { const data = { item: json.model.originalItem }; return window[this.namespaceURI][this.localName](data); }, handlers: { DOMReady() { // Contact bubble actions // $(".contact-item").click(function(){ // if(!$(this).hasClass("open")){ // $(".contact-item").removeClass("open"); // $(this).addClass("open"); // } // }); // $(".bcs-pub-contact-us").mouseleave(function(){ // $(".contact-item").removeClass("open"); // }); if (parseInt($('main').css('padding-bottom')) != $('footer').height()) { $('main').css({ 'padding-bottom': $('footer').height() }); } $(window).resize(() => { $('main').css({ 'padding-bottom': $('footer').height() }); }); }, preferencesSaved(event) { if (event.target === this) { this.refreshHTML((item) => { }); } }, }, }); }());