P s y c h e e e
Elite
Sino dito maka tulong na gawan ng EPG guide table sa Web IPTV site ko with the use of HTML, CSS, and Javascript??
Eto po ung example:
Eto po ung example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EPG Guide</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="epg-table">
<div class="epg-row">
<div class="time-column">Time</div>
<div class="channel-column">Channel 1</div>
<div class="channel-column">Channel 2</div>
<!-- Add more channel columns as needed -->
</div>
<!-- Add more rows for different times -->
</div>
<script src="script.js"></script>
</body>
</html>
styles.css) to style the table:.epg-table {
display: grid;
grid-template-columns: auto repeat(2, 1fr); /* Adjust the number of channel columns */
}
.epg-row {
display: grid;
grid-template-columns: 100px repeat(2, 1fr); /* Adjust column widths as needed */
}
.time-column {
background-color: #f0f0f0;
}
.channel-column {
background-color: #ffffff;
border: 1px solid #ccc;
}
script.js) to populate the table:// Sample data for demonstration
const epgData = [
{ time: '08:00', channel1: 'Program A', channel2: 'Program X' },
{ time: '09:00', channel1: 'Program B', channel2: 'Program Y' }
// Add more data entries as needed
];
const epgTable = document.querySelector('.epg-table');
epgData.forEach(entry => {
const row = document.createElement('div');
row.className = 'epg-row';
const timeCell = document.createElement('div');
timeCell.className = 'time-column';
timeCell.textContent = entry.time;
row.appendChild(timeCell);
for (const key in entry) {
if (key !== 'time') {
const cell = document.createElement('div');
cell.className = 'channel-column';
cell.textContent = entry[key];
row.appendChild(cell);
}
}
epgTable.appendChild(row);
});
oo pero gusto kong igamit source ng epg.pw or epgsource01 but randomized pagpili sa channel idstv timeslots ba yan?