|
22 | 22 | <!-- ***** Preloader End ***** -->
|
23 | 23 |
|
24 | 24 | <!-- ***** Header Area Start ***** -->
|
25 |
| - <header class="header-area header-sticky"> |
26 |
| - <div class="container"> |
27 |
| - <div class="row"> |
28 |
| - <div class="col-12"> |
29 |
| - <nav class="main-nav"> |
30 |
| - <!-- ***** Logo Start ***** --> |
31 |
| - <a href="{{ url_for('index.index') }}" class="logo"> |
32 |
| - <img src="{{ url_for('static', filename='assets/images/logo.png') }}" alt="" /> |
33 |
| - </a> |
34 |
| - <!-- ***** Logo End ***** --> |
35 |
| - <!-- ***** Search start ***** --> |
36 |
| - <div class="search-input"> |
37 |
| - <form id="search" method="POST" action="{{ url_for('browse.browse_home') }}"> |
38 |
| - <input type="text" placeholder="Search Courses" id="searchText" name="searchKeyword" |
39 |
| - value="{{ search_keyword }}" /> <!-- Display the search keyword if it was submitted --> |
40 |
| - <i type="submit" class="fa fa-search"></i> |
41 |
| - |
42 |
| - </form> |
43 |
| - </div> |
44 |
| - <!-- ***** Search End ***** --> |
45 |
| - <!-- ***** Menu Start ***** --> |
46 |
| - <ul class="nav"> |
47 |
| - <li> |
48 |
| - <a href="{{ url_for('index.index') }}" id="home">Home</a> |
49 |
| - </li> |
50 |
| - <li> |
51 |
| - <a href="{{ url_for('browse.browse_home') }}" id="browse">Browse</a> |
52 |
| - </li> |
53 |
| - <li> |
54 |
| - <a href="{{ url_for('login.login') }}" id="library">History</a> |
55 |
| - </li> |
56 |
| - <li onclick="window.open('https://github.com/sponsors/codeIntrovert', '_blank');"> |
57 |
| - <img src="{{ url_for('static', filename='assets/images/SponsorButton.png') }}" alt="" /> |
58 |
| - </li> |
59 |
| - |
60 |
| - <!-- Add more items as required --> |
61 |
| - </ul> |
62 |
| - |
63 |
| - <script> |
64 |
| - // Get the current page URL path |
65 |
| - var currentPath = window.location.pathname; |
| 25 | + {% include 'components/navbar.html' %} |
66 | 26 |
|
67 |
| - // Get the menu item with a matching URL and add the "active" class |
68 |
| - if (currentPath === "{{ url_for('index.index') }}") { |
69 |
| - document.getElementById("home").classList.add("active"); |
70 |
| - } else if ( |
71 |
| - currentPath === "{{ url_for('browse.browse_home') }}" |
72 |
| - ) { |
73 |
| - document.getElementById("browse").classList.add("active"); |
74 |
| - } |
75 |
| - else if (currentPath === "{{ url_for('login.login') }}") { |
76 |
| - document.getElementById("library").classList.add("active"); |
77 |
| - } |
78 |
| - </script> |
79 |
| - |
80 |
| - <a class="menu-trigger"> |
81 |
| - <span>Menu</span> |
82 |
| - </a> |
83 |
| - <!-- ***** Menu End ***** --> |
84 |
| - </nav> |
85 |
| - </div> |
86 |
| - </div> |
87 |
| - </div> |
88 |
| - </header> |
89 | 27 | <!-- ***** Header Area End ***** -->
|
90 | 28 | <div class="container">
|
91 | 29 | <div class="row">
|
|
0 commit comments