Skip to content

Commit d90492d

Browse files
committed
added security and other mesures
1 parent a310db1 commit d90492d

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

instance/hostel.db

0 Bytes
Binary file not shown.

static/extracode/extra.html

+3
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,6 @@ <h3 class="text-center text-success">Remaining Balance: Rs {{ 345000 - total }}<
233233
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
234234

235235
{% endblock %}
236+
237+
238+

static/navbar.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
document.addEventListener('DOMContentLoaded', () => {
2+
const navbar = document.querySelector('.navbar');
3+
window.addEventListener('scroll', () => {
4+
if (window.scrollY > 50) {
5+
navbar.classList.add('navbar-shrink');
6+
} else {
7+
navbar.classList.remove('navbar-shrink');
8+
}
9+
});
10+
});

0 commit comments

Comments
 (0)