| Google |
Pixel 5 |
6.0 inches, OLED, 90Hz |
Qualcomm Snapdragon 765G |
8GB |
128GB |
Dual 12.2MP rear, 8MP front |
4080mAh, fast charging 18W,
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5 |
6.0 inches, OLED, 90Hz |
Qualcomm Snapdragon 765G |
8GB |
128GB |
Dual 12.2MP rear, 8MP front<
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5 |
6.0 inches, OLED, 90Hz |
Qualcomm Snapdragon 765G |
8GB |
128GB |
Dual 12.2MP rear, 8MP
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5 |
6.0 inches, OLED, 90Hz |
Qualcomm Snapdragon 765G |
8GB |
128GB |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5 |
6.0 inches, OLED, 90Hz |
Qualcomm Snapdragon 765G |
8GB |
128GB<
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5 |
6.0 inches, OLED, 90Hz |
Qualcomm Snapdragon 765G |
8GB |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5 |
6.0 inches, OLED, 90Hz |
Qualcomm Snapdragon 765G |
8
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5 |
6.0 inches, OLED, 90Hz |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5 |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Google |
Pixel 5<
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging 15W |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
|
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
2815mAh, fast charging 20W, wireless charging
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
Triple 12MP rear, 12MP front |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB / 512GB |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
6GB |
128GB / 256GB
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina XDR OLED, 60Hz |
Apple A14 Bionic |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
6.1 inches, Super Retina
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12 Pro |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone 12
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
iPhone
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Apple |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging 15W<
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W, wireless charging
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast charging 25W,
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
4000mAh, fast
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
400
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear, 10MP front |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP rear,
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple 12MP+12MP+64MP
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
Triple
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB / 256GB |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128GB /
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
128
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8GB |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
8
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm Snapdragon 888 |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos 2100 / Qualcomm
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
Exynos
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X, 120Hz |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED 2X,
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic AMOLED
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2 inches, Dynamic
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6.2
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
6
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Galaxy S21 |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
Gal
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Samsung |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
S
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
Battery |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera |
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
Camera
| Brand |
Model |
Display |
Processor |
RAM |
Storage |
| Brand |
Model |
Display |
Processor |
RAM |
| Brand |
Model |
Display |
Processor |
RAM
| Brand |
Model |
Display |
Processor |
| Brand |
Model |
Display |
Processor
| Brand |
Model |
Display |
كود CSS :
كود JavaScript:
const searchInput = document.querySelector('#search');
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click', function(event) {
const column = event.target.cellIndex;
const dataType = event.target.getAttribute('data-type');
const rowsArray = Array.from(rows);
const sortFunction = getSortFunction(dataType);
rowsArray.sort(sortFunction(column));
table.querySelector('tbody
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click', function(event) {
const column = event.target.cellIndex;
const dataType = event.target.getAttribute('data-type');
const rowsArray = Array.from(rows);
const sortFunction = getSortFunction(
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click', function(event) {
const column = event.target.cellIndex;
const dataType = event.target.getAttribute('data-type');
const rowsArray = Array.from(rows)
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click', function(event) {
const column = event.target.cellIndex;
const dataType = event.target.getAttribute('data-type');
const
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click', function(event) {
const column = event.target.cellIndex;
const dataType = event.target.getAttribute('data-type');
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click', function(event) {
const column = event.target.cellIndex;
const dataType =
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click', function(event) {
const column = event.target.cellIndex;
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click', function(event) {
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead th');
headers.forEach((header) => {
header.addEventListener('click',
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
});
const headers = table.querySelectorAll('thead
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
});
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
} else {
row.classList.add('hide');
}
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(searchTerm)) {
row.classList.remove('hide');
}
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(searchTerm) || model.includes(
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
if (brand.includes(search
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector('td:nth-child(2)'
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const model = row.querySelector(
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector('td:nth-child(1)').textContent.toLowerCase(
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const brand = row.querySelector(
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row) => {
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase();
rows.forEach((row
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event) {
const searchTerm = event.target.value.toLowerCase(
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup', function(event)
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
searchInput.addEventListener('keyup',
const table = document.querySelector('#spec-table');
const rows = table.querySelectorAll('tbody tr');
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
تعليقات
إرسال تعليق