comparison avatar.js @ 60:6d861d881b96

Add license headers to all source files.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 24 May 2020 13:09:16 +0200
parents 2f45bee88b47
children
comparison
equal deleted inserted replaced
59:d5cfc04b9718 60:6d861d881b96
1 // SPDX-License-Identifier: AGPL-3.0-only
2 /*
3 * Copyright © 2018-2020 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
4 * Copyright © 2020 Mathieu Pasquet <mathieui@mathieui.net>
5 *
6 * Released under GNU AGPL v3 only, read the file 'LICENSE' for more information.
7 */
8
1 'use strict'; 9 'use strict';
2 10
3 function initAvatar(connection) { 11 function initAvatar(connection) {
4 const DEFAULT_AVATAR = 'data:image/svg+xml,' + encodeURIComponent('<?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 150 150"><rect width="150" height="150" fill="#888" stroke-width="1" stroke="#000"/><text x="75" y="100" text-anchor="middle" font-size="100">?</text></svg>'); 12 const DEFAULT_AVATAR = 'data:image/svg+xml,' + encodeURIComponent('<?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 150 150"><rect width="150" height="150" fill="#888" stroke-width="1" stroke="#000"/><text x="75" y="100" text-anchor="middle" font-size="100">?</text></svg>');
5 13