added temporary label for logo

This commit is contained in:
daria 2023-08-09 14:39:23 +03:00
parent 972a61c532
commit b5c7bc3185
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,6 @@
(function () {
define([
'/customize/messages.js'
], function (Messages) {
var logoPath = '/customize/CryptPad_logo.svg';
if (location.pathname === '/' || location.pathname === '/index.html') {
logoPath = '/customize/CryptPad_logo_hero.svg';
@ -6,9 +8,10 @@ if (location.pathname === '/' || location.pathname === '/index.html') {
var elem = document.createElement('div');
elem.setAttribute('id', 'placeholder');
Messages.label_logo = "CryptPad logo"; // XXX Logo
elem.innerHTML = [
'<div class="placeholder-logo-container">',
'<img class="placeholder-logo" alt="CryptPad Logo" src="' + logoPath + '">', // XXX
'<img class="placeholder-logo" alt="' + Messages.label_logo + '" src="' + logoPath + '">', // XXX
'</div>',
'<div class="placeholder-message-container">',
'<p>Loading...</p>',
@ -55,4 +58,4 @@ document.addEventListener('DOMContentLoaded', function() {
} catch (e) {}
}, 3000);
});
}());
});