Skip to content

Commit

Permalink
Merge pull request #61 from chetandabli/reworked
Browse files Browse the repository at this point in the history
Changes done
  • Loading branch information
kuldeep55567 committed May 15, 2023
2 parents ebb3711 + d93bc21 commit 6333dd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h3><i class="fa-solid fa-globe"></i> English <i class="fa-solid fa-chevron-down
</div>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="index.html"><img src="images/MeetEase.png" alt=""> </a>
<a class="navbar-brand" href="index.html"><img src="images/MeetEase.png" alt="" id="logo"> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down Expand Up @@ -63,7 +63,7 @@ <h4>ahead</h4>
<p>MeetEase is your scheduling automation platform for eliminating the back-and-forth emails for finding the
perfect time — and so much more.</p>
<div id="oauth">
<button><i class="fa-brands fa-google"></i> Sign up free with Google</button>
<button id="signupf"><i class="fa-brands fa-google"></i> Sign up free with Google</button>
</div>
</div>
<div id="easy_img">
Expand Down
4 changes: 4 additions & 0 deletions public/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ let token = params.get("token");
let refresh_token = params.get("rtoken");
const loginbtn = document.getElementById("my_ac_btn")
const logoutbtn = document.getElementById("logout_btn");
const signup = document.getElementById("signupf")
const baseUrl = "https://busy-motion-6100-production.up.railway.app/"
document.getElementById("logo").onclick = ()=>{
location.assign("../index.html")
Expand All @@ -24,6 +25,9 @@ loginbtn.onclick = ()=>{
location.assign("../signup.html")
}
}
signup.onclick=()=>{
location.assign("../signup.html")
}
logoutbtn.onclick = async()=>{
try {
let res = await fetch(`${baseUrl}user/logout`, {
Expand Down

0 comments on commit 6333dd0

Please sign in to comment.