М
addEventListener touchstart - срабатывает на мобилках/планшетах только или еще сработает на тач-паде ноута ?
Size: a a a
М
SS
BB
BB
SS
a
const getTeamArticles = (teamId) => {
let team = teams.find(t => t.id == teamId);
let articleStrings = team.members.map(memberId => {
let author = authors.find(a => a.id == memberId);
let authorArticles = articles.filter(
article => (article.authors && article.authors.includes(memberId))
);
if (authorArticles.length == 0)
return `${author.name} wrote 0 articles.`;
if (authorArticles.length == 1)
return `${author.name} wrote an article '${authorArticles[0].text}'.`;
if (authorArticles.length == 2)
return `${author.name} wrote an articles '${authorArticles[0].text}' and '${authorArticles[1].text}'.`;
return `${author.name} wrote an articles '${authorArticles[0].text}', '${authorArticles[1].text}' and ${authorArticles.length-2} more.`;
});
return articleStrings.join('\n');
};
S
SS
BB
const getTeamArticles = (teamId) => {
let team = teams.find(t => t.id == teamId);
let articleStrings = team.members.map(memberId => {
let author = authors.find(a => a.id == memberId);
let authorArticles = articles.filter(
article => (article.authors && article.authors.includes(memberId))
);
if (authorArticles.length == 0)
return `${author.name} wrote 0 articles.`;
if (authorArticles.length == 1)
return `${author.name} wrote an article '${authorArticles[0].text}'.`;
if (authorArticles.length == 2)
return `${author.name} wrote an articles '${authorArticles[0].text}' and '${authorArticles[1].text}'.`;
return `${author.name} wrote an articles '${authorArticles[0].text}', '${authorArticles[1].text}' and ${authorArticles.length-2} more.`;
});
return articleStrings.join('\n');
};
BB
a
S
SS
BB
a
S
SS
a
SS
mailto:${xml}
;S