enhancements of channel list
This commit is contained in:
parent
aa42afe092
commit
2dd4e7c447
@ -89,7 +89,9 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.channelTab {
|
.channelTab {
|
||||||
text-align: left;
|
color: var(--text-color);
|
||||||
|
background-color: var(--fg-color);
|
||||||
|
text-align: center;
|
||||||
float: left;
|
float: left;
|
||||||
padding-right: 20px
|
padding-right: 20px
|
||||||
}
|
}
|
||||||
|
@ -267,6 +267,7 @@ async function loadChannels() {
|
|||||||
tab.innerHTML = ""
|
tab.innerHTML = ""
|
||||||
for (let i = 0; i < channels.length; i++) {
|
for (let i = 0; i < channels.length; i++) {
|
||||||
let channelname = channels[i].post_receiver_name
|
let channelname = channels[i].post_receiver_name
|
||||||
|
if(channelname == "")continue;
|
||||||
let channelp = document.createElement("p")
|
let channelp = document.createElement("p")
|
||||||
channelp.classList.add("channel")
|
channelp.classList.add("channel")
|
||||||
let textnode = document.createTextNode(channelname)
|
let textnode = document.createTextNode(channelname)
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
<br>
|
<br>
|
||||||
<button type="button" name="button" id="post-btn" onclick="postMessage()">Post</button>
|
<button type="button" name="button" id="post-btn" onclick="postMessage()">Post</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="posts" id="posts"></div>
|
|
||||||
<div class="channelTab" id="channelTab">
|
<div class="channelTab" id="channelTab">
|
||||||
<!-- <p class="channel">- Channel Name -</p> -->
|
<!-- <p class="channel">- Channel Name -</p> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="posts" id="posts"></div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="/js/posts.js"></script>
|
<script type="text/javascript" src="/js/posts.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user