Remove unused Channels widget under video (was placeholder for old AdSense slot)
This commit is contained in:
parent
3b1cf139e5
commit
f900c90d88
@ -109,16 +109,6 @@ function renderHome() {
|
|||||||
<div class="split__video">
|
<div class="split__video">
|
||||||
<div id="player-area"></div>
|
<div id="player-area"></div>
|
||||||
<div id="currently-playing" class="currentlyPlaying" style="display:none;"></div>
|
<div id="currently-playing" class="currentlyPlaying" style="display:none;"></div>
|
||||||
<div class="playingStats">
|
|
||||||
<div class="playingStats__title">Channels</div>
|
|
||||||
<ol id="channel-list">
|
|
||||||
${CHANNELS.map(c => `
|
|
||||||
<li><a href="#" data-channel-link="${c.key}" style="color:#eee;border:none;">
|
|
||||||
${escapeHtml(c.name)}
|
|
||||||
</a></li>
|
|
||||||
`).join('')}
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="split__channels">
|
<div class="split__channels">
|
||||||
<div class="channelList">
|
<div class="channelList">
|
||||||
@ -140,11 +130,11 @@ function renderHome() {
|
|||||||
|
|
||||||
showSelectChannelBox();
|
showSelectChannelBox();
|
||||||
|
|
||||||
// channel click handlers (sidebar + bottom list)
|
// channel click handlers (sidebar)
|
||||||
main.querySelectorAll('[data-channel], [data-channel-link]').forEach(a => {
|
main.querySelectorAll('[data-channel]').forEach(a => {
|
||||||
a.addEventListener('click', (e) => {
|
a.addEventListener('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const key = a.getAttribute('data-channel') || a.getAttribute('data-channel-link');
|
const key = a.getAttribute('data-channel');
|
||||||
playChannel(key);
|
playChannel(key);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user