Ext.onReady(function(){ Ext.ns('blablar'); var clock = new Ext.Toolbar.TextItem({cls: 'x-status-text-panel'}); new Ext.Toolbar({ renderTo: 'footer', items: [{ xtype: 'tbbutton', text: 'Iniciar Sesión', icon: './images/login-icon.png', handler: function(){ ventanaLogin(); } },'-',{ xtype: 'tbbutton', text: 'Crea tu Cuenta', icon: './images/newuser-icon.png', handler: function(){ nvacta_win.show();} },'-',{ xtype: 'tbbutton', text: 'Nosotros', icon: './images/info-icon.png', handler: function(){ AcercaDe(); } },{xtype: 'tbfill'},'-',{xtype : 'tbbutton', text : 'Donar', icon : './images/help-money.png', handler : function() {pideLana(); } },'-',clock ] }); primeraVez(); Ext.TaskMgr.start({ run: function(){ Ext.fly(clock.getEl()).update(new Date().format('g:i A')); }, interval: 1000*60 }); });