Skip to content

Commit

Permalink
Merge pull request #93 from Yash-Ainapure/patch3
Browse files Browse the repository at this point in the history
removed  scroll-to-top button from unnecessary files
  • Loading branch information
Kritika30032002 authored Dec 10, 2023
2 parents 3072173 + 024ad57 commit 7457839
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 35 deletions.
6 changes: 0 additions & 6 deletions views/about.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,4 @@
<img src="image/secrets.webp" alt="" style="width: 100%; padding: 2%" />
</div>
</div> -->
<a href="#navbar" id="myBtn" title="Go to top">
<img
src="https://img.icons8.com/ios-filled/50/000000/long-arrow-up.png"
style="width: 70%; height: 70%; color: white; position: relative; left: 7px"
/>
</a>
<%- include('partials/footer') %>
5 changes: 0 additions & 5 deletions views/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,4 @@ background: linear-gradient(to right, #ACB6E5, #74ebd5); /* W3C, IE 10+/ Edge, F
</div>
</div>
</div>
<a href="#navbar" id="myBtn" title="Go to top">
<img src="https://img.icons8.com/ios-filled/50/000000/long-arrow-up.png"
style="width: 80%; height: 70%; color: white; position: relative; left: 5px" />
</a>

<%- include('partials/footer') %>
10 changes: 0 additions & 10 deletions views/login.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,4 @@
</div>
</div>
</div>
<a
href="#navbar"
id="myBtn"
title="Go to top"
>
<img
src="https://img.icons8.com/ios-filled/50/000000/long-arrow-up.png"
style="width: 80%; height: 70%; color: white; position: relative; left: 5px"
/>
</a>
<%- include('partials/footer') %>
18 changes: 6 additions & 12 deletions views/register.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,12 @@
</div>
</div>
</div>
</div>
<a
href="#navbar"
id="myBtn"
title="Go to top"
>
<img
src="https://img.icons8.com/ios-filled/50/000000/long-arrow-up.png"
style="width: 80%; height: 70%; color: white; position: relative; left: 5px"
/>
</a>
</div>
<script>
function validatePassword() {
const userPassword = document.getElementById("user-password").value;
var regex =
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;
<script src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
<link
rel="stylesheet"
Expand Down Expand Up @@ -152,7 +147,6 @@
text: data.message,
type: "success",
}).showToast();
window.location.href = "/login"; // Redirect to login page
window.alert("Registration successful! Login to continue");
} else {
Expand Down
9 changes: 7 additions & 2 deletions views/secrets.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
<hr>
<div class="d-flex justify-content-center">
<a class="button_all_white" href="/logout" role="button">Log Out</a>
<a class="button_all_black" href="/submit" role="button">Submit a Secret</a>
<a class="button_all_black" href="/submit-secret-form" role="button">Submit a Secret</a>
</div>
</div>
</div>

<a href="#navbar" id="myBtn" title="Go to top">
<img
src="https://img.icons8.com/ios-filled/50/000000/long-arrow-up.png"
style="width: 70%; height: 70%; color: white; position: relative; left: 7px"
/>
</a>
<%- include('partials/footer') %>

0 comments on commit 7457839

Please sign in to comment.