Clarence Williams
th {
color: white;
}
Clarence Williams

Born: October 8, 1898
Died: November 6, 1965
Rankings:
1st most streamed writer
2nd most streamed performer
Songs As Writer
Songs As Performer
Song
Writer
Originally By
Original Release
Gulf Coast Blues
Clarence Williams
Bessie Smith - Clarence Williams at the Piano
May 1923
Baby, Won't You Please Come Home
Charles Warfield Clarence Williams
Bessie Smith - Clarence Williams at the Piano
June 1923
Title
Performer
Release Date
Stream Count
Down Hearted Blues
Bessie Smith - Clarence Williams at the Piano
May 1923
1294462
Gulf Coast Blues
Bessie Smith - Clarence Williams at the Piano
May 1923
89052
Baby Won't You Please Come Home Blues
Bessie Smith - Clarence Williams at the Piano
June 1923
1832242
Oh Daddy Blues
Bessie Smith - Clarence Williams at the Piano
June 1923
37590
// Create a function to update your display area
function updateDisplay(tableId) {
// The function receives the id of the table to show (give each table a unique id, but the same class)
// Set the display value of all tables with the target class to none
document.querySelectorAll(".specialTable").forEach(el => {
el.style.display = "none";
});
// Set the display value of the table with the target id to block
document.getElementById(tableId).style.display = "block";
$('#songCol').on('click', async function () {
let newSortOrder;
sortKey = "Song";
if (lastSortOrder != "asc") {
newSortOrder = "asc";
} else {
newSortOrder = "desc";
}
myArray = await performSort(myArray, sortKey, newSortOrder);
buildtable(myArray);
});
$('#writerCol').on('click', async function () {
let newSortOrder;
sortKey = "Writer";
if (lastSortOrder != "asc") {
newSortOrder = "asc";
} else {
newSortOrder = "desc";
}
myArray = await performSort(myArray, sortKey, newSortOrder);
buildtable(myArray);
});
$('#originalperformerCol').on('click', async function () {
let newSortOrder;
sortKey = "Originally By";
if (lastSortOrder != "asc") {
newSortOrder = "asc";
} else {
newSortOrder = "desc";
}
myArray = await performSort(myArray, sortKey, newSortOrder);
buildtable(myArray);
});
$('#releaseCol').on('click', async function () {
let newSortOrder;
sortKey = "Original Release";
if (lastSortOrder != "asc") {
newSortOrder = "asc";
} else {
newSortOrder = "desc";
}
myArray = await performSort(myArray, sortKey, newSortOrder);
buildtable(myArray);
});
$('#titleCol').on('click', async function () {
let newSortOrder;
sortKey = "Title";
if (lastSortOrder != "asc") {
newSortOrder = "asc";
} else {
newSortOrder = "desc";
}
myArray = await performSort(myArray, sortKey, newSortOrder);
buildtable(myArray);
});
$('#performerCol').on('click', async function () {
let newSortOrder;
sortKey = "Performer";
if (lastSortOrder != "asc") {
newSortOrder = "asc";
} else {
newSortOrder = "desc";
}
myArray = await performSort(myArray, sortKey, newSortOrder);
buildtable(myArray);
});
$('#releasetwoCol').on('click', async function () {
let newSortOrder;
sortKey = "Release Date";
if (lastSortOrder != "asc") {
newSortOrder = "asc";
} else {
newSortOrder = "desc";
}
myArray = await performSort(myArray, sortKey, newSortOrder);
buildtable(myArray);
});
$('#streamCol').on('click', async function () {
let newSortOrder;
sortKey = "Stream Count";
if (lastSortOrder != "asc") {
newSortOrder = "asc";
} else {
newSortOrder = "desc";
}
myArray = await performSort(myArray, sortKey, newSortOrder);
buildtable(myArray);
});
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... on-a-table
Мобильная версия