.ic-table-wrapper {
padding: 14px 0 0;
border: 1px solid #333333;
border-radius: 8px;
}
.ic-table-h2 {
border-bottom: 1px solid #333;
padding: 0 20px;
text-align: center;
}
.ic-table-h2 h2 {
color: #090909;
font-size: 24px;
font-weight: 600;
line-height: 130%;
margin-bottom: 14px;
}
.ic-show-content {
height: 100%;
overflow: auto;
margin: 20px;
}
table {
width: 100%;
table-layout: auto;
white-space: nowrap;
border-collapse: collapse;
border-spacing: 0;
margin-bottom: 0;
text-align: center;
}
figure,
.ic-img-table {
width: 32px;
height: 32px;
}
.td-flex {
display: flex;
align-items: center;
}
.td-flex,
.email {
text-align: left;
}
.td-flex figure {
margin-right: 12px !important;
}
td,
.username,
.profile-name {
font-size: 14px;
}
.username,
.profile-name {
display: block;
}
table tr:hover {
background-color: rgba(255, 255, 255, 0.1) !important;
}
table thead tr:hover,
table tr {
background-color: #fff !important;
}
table th {
font-size: 16px;
font-weight: 500;
}
table thead th:nth-child(2),
table thead th:last-child {
text-align: left;
}
table tbody tr td:last-child {
text-align: left;
}
.tableBg1 {
background: linear-gradient(180deg, #ebeded 11.51%, rgba(255, 255, 255, 0) 245.57%), #ffffff;
}
.showMoreBg1 {
background: linear-gradient(0deg, #ebeded 25.52%, rgba(255, 255, 255, 0) 100%);
}
Top 50 creators that sell digital products
var $ = jQuery.noConflict();
$(document).ready(function () {
let baseUrl = window.location.origin;
for (let a = 1; a < 2; a++) {
$.ajax({
url: `${baseUrl}/wp-content/uploads/2025/01/Top-50-Creators-That-Sell-Digital-Products-${a}.csv`,
dataType: "text",
success: function (data) {
processCSV(data, a);
},
});
}
function processCSV(data, index) {
const rows = data.split(/\r?\n|\r/);
let tableHtml = '
‘;
tableHtml += ““;
for (let i = 0; i < rows.length; i++) {
const columns = rows[i].split(",");
tableHtml += "“;
for (let j = 2; j < columns.length; j++) {
if (i === 0) {
tableHtml += `${columns[j]} | `;
}
}
tableHtml += “
“;
for (let j = 2; j 0 && j !== columns.length – 1) {
if (j === 3) {
tableHtml += ` | `;
} else {
tableHtml += `${columns[j]} | `;
}
}
if (i > 0 && j >= columns.length – 1) {
tableHtml += `${columns[j]} | `;
}
}
tableHtml += ““;
}
tableHtml += “
“;
$(`.table${index}`).html(tableHtml);
}
});