diff --git a/public/css/dashboard.css b/public/css/dashboard.css index 42476ae..902ba60 100644 --- a/public/css/dashboard.css +++ b/public/css/dashboard.css @@ -544,9 +544,13 @@ input background-color:#00000054; border:2px solid transparent; color:ivory; - text-align:right; + text-align:center; width: 37.5%; } +option +{ + background:#087575; +} .yt { right:10%; @@ -607,3 +611,27 @@ input padding: 0rem clamp(1rem, 2vw, 3rem); border-radius: clamp(0.4rem, 0.75vw, 1rem); } +/*Scrool Bar*/ +/* width */ +::-webkit-scrollbar +{ + width: 5px; +} + + /* Track */ +::-webkit-scrollbar-track +{ + box-shadow: inset 0 0 5px #0e2934; + border-radius: 5px; +} + +/* Handle */ +::-webkit-scrollbar-thumb +{ + background: #010f14; + border-radius: 5px; +} +::-webkit-scrollbar-corner +{ + background: rgba(0, 0, 0, 0.267); +} \ No newline at end of file diff --git a/public/js/dashboard.js b/public/js/dashboard.js index 59ce8cb..0cac4b5 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -8,7 +8,6 @@ window.onload = async () => updateUser(accessToken, tokenType); updateGuildData(accessToken, tokenType); document.getElementById('RoleRules').onclick = handleToggleRules; - test(); }; function updateUser(accessToken, tokenType) @@ -211,6 +210,17 @@ async function handleToggleRules(element) var guildID = element.target.parentNode.getElementsByTagName('h3')[0].id; var rulesElement=document.getElementById('rules'); var rules = await getRules(guildID); + document.getElementById('roleID').innerHTML = ''; + for(var role of guildsCache.get(guildID).roles) + { + document.getElementById('roleID').innerHTML += ``; + } + document.getElementById('emojiID').innerHTML = ''; + for(var emoji of guildsCache.get(guildID).emojis) + { + document.getElementById('emojiID').innerHTML += ``; + } + if(!rules) return var ruleArr = [] for(var rule of rules) @@ -436,12 +446,17 @@ async function changeRule(element) } function addFeed(element) { + document.getElementById('DCchannelID').innerHTML = ''; + for(var channel of guildsCache.get(element.parentNode.parentNode.childNodes[3].id).guildTextChannels) + { + document.getElementById('DCchannelID').innerHTML += ``; + } element.parentNode.classList.add('hidden'); element.parentNode.parentNode.classList.add('hidden'); var FeedWrapper = document.getElementById('FeedWrapper'); FeedWrapper.classList.remove('hidden'); document.getElementById('ChannelName').innerText = 'New Feed' - document.getElementById('DCchannelID').placeholder = ''; + // document.getElementById('DCchannelID').placeholder = ''; document.getElementById('YTchannelID').placeholder = ''; document.getElementById('CostumMessageI').placeholder = ''; document.getElementById('change2').innerText = 'Add'; diff --git a/views/dashboard.ejs b/views/dashboard.ejs index 0537d09..823ec1f 100644 --- a/views/dashboard.ejs +++ b/views/dashboard.ejs @@ -46,12 +46,14 @@ cancel
Role ID:
-Emoji ID:
Role:
+Emoji:
Discord Channel ID:
+Discord Channel:
+Youtube Channel:
-