From 55bf78346bc23dc57cfb3b9c9c83c7a4b6de2be3 Mon Sep 17 00:00:00 2001 From: ION606 Date: Fri, 12 Aug 2022 10:29:57 -0700 Subject: [PATCH] Added the caledar function --- 404.html | 72 +++++++ calEvent.html | 265 +++++++++++++++++++++++++ calendar.html | 505 +++++++++++++++++++++++++++++++++++++++++++++++ dashboard.html | 239 +++++++++++++++++++++- index.html | 4 + main.js | 187 +++++++++++++++++- myGuilds.html | 9 + newCalEvent.html | 238 ++++++++++++++++++++++ premium.html | 29 ++- 9 files changed, 1533 insertions(+), 15 deletions(-) create mode 100644 404.html create mode 100644 calEvent.html create mode 100644 calendar.html create mode 100644 newCalEvent.html diff --git a/404.html b/404.html new file mode 100644 index 0000000..fcafb0a --- /dev/null +++ b/404.html @@ -0,0 +1,72 @@ + + + + + + + Selmer Bot Web Dashboard + + + + + + + + + +

+

You look a little lost...

+

The page you're looking for can't be found!

+ + + \ No newline at end of file diff --git a/calEvent.html b/calEvent.html new file mode 100644 index 0000000..086780b --- /dev/null +++ b/calEvent.html @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + \ No newline at end of file diff --git a/calendar.html b/calendar.html new file mode 100644 index 0000000..6760adb --- /dev/null +++ b/calendar.html @@ -0,0 +1,505 @@ + + + + + + + + + + + + + + + + + + + + + + + + Selmer Bot Web Dashboard + + + + + + + + + + + + + + + + + +
+

+ +
+ + + + + + + + + + + + + + + + + + + +
+ Sun + Mon + Tue + Wed + Thu + Fri + Sat
+
+
+ + \ No newline at end of file diff --git a/dashboard.html b/dashboard.html index ed70695..68cd070 100644 --- a/dashboard.html +++ b/dashboard.html @@ -211,7 +211,7 @@ .logoutbtn { margin-top: 14px; - scale: 1.7; + scale: 1.4; } .logoutbtn:hover { @@ -250,13 +250,141 @@ border-radius: 50%; border-style: solid; } + + + .calbtn { + width: 100px; + height: 70px; + } + + .green { + background-color: rgb(6, 185, 6); + } + + .red { + background-color: rgb(129, 129, 129); + } + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +

+ + +

+ + +
+ + +

+
+ + + +

+ + +

+ + + +
+ +
+ + \ No newline at end of file diff --git a/premium.html b/premium.html index fb9719c..512dd20 100644 --- a/premium.html +++ b/premium.html @@ -102,12 +102,20 @@ scale: 1.2; border-radius: 10%; } - .logoutbtn:hover { cursor: pointer; color: red; } + .loginbtn { + margin-top: 14px; + scale: 1.2; + border-radius: 10%; + } + .loginbtn:hover { + color: #377aea; + } + .fivedollarbtn { color: #00f2f2; font-size: 23px; @@ -147,6 +155,10 @@ if (!window.localStorage.getItem('serverInfo')) { document.getElementById('guildslink').href = ''; document.getElementById('guildslink').style = 'cursor: no-drop;'; + + //The user is logged out + document.getElementById('loginbtn').style.display = 'block' + document.getElementById('logoutbtn').style.display = "none"; } } @@ -155,6 +167,15 @@ window.location.href = 'index.html'; } + //Get the redirect link + function getAPIRedirect() { + if (window.location.href.indexOf('localhost') != -1) { + return 'https://discord.com/api/oauth2/authorize?client_id=926551095352901632&redirect_uri=http%3A%2F%2Flocalhost%3A53134%2F&response_type=token&scope=identify%20guilds'; + } else { + // return "https://discord.com/api/oauth2/authorize?client_id=944046902415093760&redirect_uri=https%3A%2F%2Fselmer-bot-website.herokuapp.com%2F&response_type=token&scope=identify%20guilds" + return 'https://discord.com/api/oauth2/authorize?client_id=944046902415093760&redirect_uri=http%3A%2F%2Fwww.selmerbot.com%2F&response_type=token&scope=identify%20guilds'; + } + } function pay(url, qrurl = null, qr = false) { //$5 - https://buy.stripe.com/7sIfZW2Er0aZ1by000 - https://github.com/ION606/selmer-bot-website/blob/main/assets/stripe_payment5.png?raw=true @@ -185,6 +206,10 @@ + +