Remove .html extensions from all links and URLs
- Updated all navigation links in HTML files - Updated all hrefs and window.location redirects in JavaScript - All links now use clean URLs without .html extensions - Improves SEO and provides cleaner user experience
This commit is contained in:
@@ -12,11 +12,11 @@
|
|||||||
<div class="logo">Ryans Recruit Firm</div>
|
<div class="logo">Ryans Recruit Firm</div>
|
||||||
<ul class="nav-links">
|
<ul class="nav-links">
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html" class="active">About</a></li>
|
<li><a href="/about" class="active">About</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Jobs</a></li>
|
<li><a href="/jobs">Jobs</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
<li><a href="/admin/login.html" class="btn btn-primary btn-sm">Admin</a></li>
|
<li><a href="/admin/login" class="btn btn-primary btn-sm">Admin</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -122,8 +122,8 @@
|
|||||||
Whether you're looking for your next career move or seeking top talent for your company
|
Whether you're looking for your next career move or seeking top talent for your company
|
||||||
</p>
|
</p>
|
||||||
<div style="display: flex; gap: 1rem; justify-content: center;">
|
<div style="display: flex; gap: 1rem; justify-content: center;">
|
||||||
<a href="/jobs.html" class="btn btn-primary btn-lg">Browse Jobs</a>
|
<a href="/jobs" class="btn btn-primary btn-lg">Browse Jobs</a>
|
||||||
<a href="/contact.html" class="btn btn-secondary btn-lg">Contact Us</a>
|
<a href="/contact" class="btn btn-secondary btn-lg">Contact Us</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -142,19 +142,19 @@
|
|||||||
<h3>Quick Links</h3>
|
<h3>Quick Links</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About Us</a></li>
|
<li><a href="/about">About Us</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Job Listings</a></li>
|
<li><a href="/jobs">Job Listings</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<h3>For Employers</h3>
|
<h3>For Employers</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/contact.html">Post a Job</a></li>
|
<li><a href="/contact">Post a Job</a></li>
|
||||||
<li><a href="/contact.html">Our Process</a></li>
|
<li><a href="/contact">Our Process</a></li>
|
||||||
<li><a href="/contact.html">Pricing</a></li>
|
<li><a href="/contact">Pricing</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
<h1 style="margin: 0; color: #1E293B; font-size: 18px; font-weight: 700;">Ryans Recruit Admin</h1>
|
<h1 style="margin: 0; color: #1E293B; font-size: 18px; font-weight: 700;">Ryans Recruit Admin</h1>
|
||||||
</div>
|
</div>
|
||||||
<nav style="display: flex; gap: 32px; align-items: center;">
|
<nav style="display: flex; gap: 32px; align-items: center;">
|
||||||
<a href="/admin/dashboard.html" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Dashboard</a>
|
<a href="/admin/dashboard" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Dashboard</a>
|
||||||
<a href="/admin/applicants.html" style="color: #2563EB; text-decoration: none; font-weight: 500; font-size: 14px;">Applicants</a>
|
<a href="/admin/applicants" style="color: #2563EB; text-decoration: none; font-weight: 500; font-size: 14px;">Applicants</a>
|
||||||
<a href="/admin/jobs.html" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Jobs</a>
|
<a href="/admin/jobs" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Jobs</a>
|
||||||
<div style="display: flex; align-items: center; gap: 16px; padding-left: 32px; border-left: 1px solid #E2E8F0;">
|
<div style="display: flex; align-items: center; gap: 16px; padding-left: 32px; border-left: 1px solid #E2E8F0;">
|
||||||
<span id="admin-name" style="color: #64748B; font-size: 14px;">Admin</span>
|
<span id="admin-name" style="color: #64748B; font-size: 14px;">Admin</span>
|
||||||
<button onclick="logout()" style="background: #EF4444; color: white; padding: 8px 16px; border: none; border-radius: 6px; font-weight: 500; font-size: 13px; cursor: pointer; transition: background 0.2s;" onmouseover="this.style.background='#DC2626'" onmouseout="this.style.background='#EF4444'">Logout</button>
|
<button onclick="logout()" style="background: #EF4444; color: white; padding: 8px 16px; border: none; border-radius: 6px; font-weight: 500; font-size: 13px; cursor: pointer; transition: background 0.2s;" onmouseover="this.style.background='#DC2626'" onmouseout="this.style.background='#EF4444'">Logout</button>
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
<h1 style="margin: 0; color: #1E293B; font-size: 18px; font-weight: 700;">Ryans Recruit Admin</h1>
|
<h1 style="margin: 0; color: #1E293B; font-size: 18px; font-weight: 700;">Ryans Recruit Admin</h1>
|
||||||
</div>
|
</div>
|
||||||
<nav style="display: flex; gap: 32px; align-items: center;">
|
<nav style="display: flex; gap: 32px; align-items: center;">
|
||||||
<a href="/admin/dashboard.html" style="color: #2563EB; text-decoration: none; font-weight: 500; font-size: 14px;">Dashboard</a>
|
<a href="/admin/dashboard" style="color: #2563EB; text-decoration: none; font-weight: 500; font-size: 14px;">Dashboard</a>
|
||||||
<a href="/admin/applicants.html" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Applicants</a>
|
<a href="/admin/applicants" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Applicants</a>
|
||||||
<a href="/admin/jobs.html" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Jobs</a>
|
<a href="/admin/jobs" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Jobs</a>
|
||||||
<div style="display: flex; align-items: center; gap: 16px; padding-left: 32px; border-left: 1px solid #E2E8F0;">
|
<div style="display: flex; align-items: center; gap: 16px; padding-left: 32px; border-left: 1px solid #E2E8F0;">
|
||||||
<span id="admin-name" style="color: #64748B; font-size: 14px;">Admin</span>
|
<span id="admin-name" style="color: #64748B; font-size: 14px;">Admin</span>
|
||||||
<button onclick="logout()" style="background: #EF4444; color: white; padding: 8px 16px; border: none; border-radius: 6px; font-weight: 500; font-size: 13px; cursor: pointer; transition: background 0.2s;" onmouseover="this.style.background='#DC2626'" onmouseout="this.style.background='#EF4444'">Logout</button>
|
<button onclick="logout()" style="background: #EF4444; color: white; padding: 8px 16px; border: none; border-radius: 6px; font-weight: 500; font-size: 13px; cursor: pointer; transition: background 0.2s;" onmouseover="this.style.background='#DC2626'" onmouseout="this.style.background='#EF4444'">Logout</button>
|
||||||
@@ -69,12 +69,12 @@
|
|||||||
<section style="background: white; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);">
|
<section style="background: white; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);">
|
||||||
<h3 style="color: #1E293B; margin: 0 0 24px 0; font-size: 18px; font-weight: 700;">Quick Access</h3>
|
<h3 style="color: #1E293B; margin: 0 0 24px 0; font-size: 18px; font-weight: 700;">Quick Access</h3>
|
||||||
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;">
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;">
|
||||||
<a href="/admin/applicants.html" style="display: block; padding: 20px; border: 2px solid #E2E8F0; border-radius: 8px; text-decoration: none; text-align: center; transition: all 0.2s;" onmouseover="this.style.borderColor='#2563EB'; this.style.backgroundColor='#F0F9FF'" onmouseout="this.style.borderColor='#E2E8F0'; this.style.backgroundColor='white'">
|
<a href="/admin/applicants" style="display: block; padding: 20px; border: 2px solid #E2E8F0; border-radius: 8px; text-decoration: none; text-align: center; transition: all 0.2s;" onmouseover="this.style.borderColor='#2563EB'; this.style.backgroundColor='#F0F9FF'" onmouseout="this.style.borderColor='#E2E8F0'; this.style.backgroundColor='white'">
|
||||||
<p style="color: #2563EB; margin: 0 0 8px 0; font-size: 24px;">📋</p>
|
<p style="color: #2563EB; margin: 0 0 8px 0; font-size: 24px;">📋</p>
|
||||||
<p style="color: #1E293B; margin: 0; font-size: 16px; font-weight: 600;">View Applications</p>
|
<p style="color: #1E293B; margin: 0; font-size: 16px; font-weight: 600;">View Applications</p>
|
||||||
<p style="color: #64748B; margin: 4px 0 0 0; font-size: 13px;">Manage all applicants</p>
|
<p style="color: #64748B; margin: 4px 0 0 0; font-size: 13px;">Manage all applicants</p>
|
||||||
</a>
|
</a>
|
||||||
<a href="/admin/jobs.html" style="display: block; padding: 20px; border: 2px solid #E2E8F0; border-radius: 8px; text-decoration: none; text-align: center; transition: all 0.2s;" onmouseover="this.style.borderColor='#059669'; this.style.backgroundColor='#F0FDF4'" onmouseout="this.style.borderColor='#E2E8F0'; this.style.backgroundColor='white'">
|
<a href="/admin/jobs" style="display: block; padding: 20px; border: 2px solid #E2E8F0; border-radius: 8px; text-decoration: none; text-align: center; transition: all 0.2s;" onmouseover="this.style.borderColor='#059669'; this.style.backgroundColor='#F0FDF4'" onmouseout="this.style.borderColor='#E2E8F0'; this.style.backgroundColor='white'">
|
||||||
<p style="color: #059669; margin: 0 0 8px 0; font-size: 24px;">💼</p>
|
<p style="color: #059669; margin: 0 0 8px 0; font-size: 24px;">💼</p>
|
||||||
<p style="color: #1E293B; margin: 0; font-size: 16px; font-weight: 600;">Manage Jobs</p>
|
<p style="color: #1E293B; margin: 0; font-size: 16px; font-weight: 600;">Manage Jobs</p>
|
||||||
<p style="color: #64748B; margin: 4px 0 0 0; font-size: 13px;">Create and edit positions</p>
|
<p style="color: #64748B; margin: 4px 0 0 0; font-size: 13px;">Create and edit positions</p>
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
<h1 style="margin: 0; color: #1E293B; font-size: 18px; font-weight: 700;">Ryans Recruit Admin</h1>
|
<h1 style="margin: 0; color: #1E293B; font-size: 18px; font-weight: 700;">Ryans Recruit Admin</h1>
|
||||||
</div>
|
</div>
|
||||||
<nav style="display: flex; gap: 32px; align-items: center;">
|
<nav style="display: flex; gap: 32px; align-items: center;">
|
||||||
<a href="/admin/dashboard.html" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Dashboard</a>
|
<a href="/admin/dashboard" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Dashboard</a>
|
||||||
<a href="/admin/applicants.html" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Applicants</a>
|
<a href="/admin/applicants" style="color: #64748B; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s;" onmouseover="this.style.color='#2563EB'" onmouseout="this.style.color='#64748B'">Applicants</a>
|
||||||
<a href="/admin/jobs.html" style="color: #2563EB; text-decoration: none; font-weight: 500; font-size: 14px;">Jobs</a>
|
<a href="/admin/jobs" style="color: #2563EB; text-decoration: none; font-weight: 500; font-size: 14px;">Jobs</a>
|
||||||
<div style="display: flex; align-items: center; gap: 16px; padding-left: 32px; border-left: 1px solid #E2E8F0;">
|
<div style="display: flex; align-items: center; gap: 16px; padding-left: 32px; border-left: 1px solid #E2E8F0;">
|
||||||
<span id="admin-name" style="color: #64748B; font-size: 14px;">Admin</span>
|
<span id="admin-name" style="color: #64748B; font-size: 14px;">Admin</span>
|
||||||
<button onclick="logout()" style="background: #EF4444; color: white; padding: 8px 16px; border: none; border-radius: 6px; font-weight: 500; font-size: 13px; cursor: pointer; transition: background 0.2s;" onmouseover="this.style.background='#DC2626'" onmouseout="this.style.background='#EF4444'">Logout</button>
|
<button onclick="logout()" style="background: #EF4444; color: white; padding: 8px 16px; border: none; border-radius: 6px; font-weight: 500; font-size: 13px; cursor: pointer; transition: background 0.2s;" onmouseover="this.style.background='#DC2626'" onmouseout="this.style.background='#EF4444'">Logout</button>
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
<div class="logo">Ryans Recruit Firm</div>
|
<div class="logo">Ryans Recruit Firm</div>
|
||||||
<ul class="nav-links">
|
<ul class="nav-links">
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About</a></li>
|
<li><a href="/about">About</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Jobs</a></li>
|
<li><a href="/jobs">Jobs</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
<li><a href="/admin/login.html" class="btn btn-primary btn-sm">Admin</a></li>
|
<li><a href="/admin/login" class="btn btn-primary btn-sm">Admin</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -134,19 +134,19 @@
|
|||||||
<h3>Quick Links</h3>
|
<h3>Quick Links</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About Us</a></li>
|
<li><a href="/about">About Us</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Job Listings</a></li>
|
<li><a href="/jobs">Job Listings</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<h3>For Employers</h3>
|
<h3>For Employers</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/contact.html">Post a Job</a></li>
|
<li><a href="/contact">Post a Job</a></li>
|
||||||
<li><a href="/contact.html">Our Process</a></li>
|
<li><a href="/contact">Our Process</a></li>
|
||||||
<li><a href="/contact.html">Pricing</a></li>
|
<li><a href="/contact">Pricing</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
<div class="logo">Ryans Recruit Firm</div>
|
<div class="logo">Ryans Recruit Firm</div>
|
||||||
<ul class="nav-links">
|
<ul class="nav-links">
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About</a></li>
|
<li><a href="/about">About</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Jobs</a></li>
|
<li><a href="/jobs">Jobs</a></li>
|
||||||
<li><a href="/contact.html" class="active">Contact</a></li>
|
<li><a href="/contact" class="active">Contact</a></li>
|
||||||
<li><a href="/admin/login.html" class="btn btn-primary btn-sm">Admin</a></li>
|
<li><a href="/admin/login" class="btn btn-primary btn-sm">Admin</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -132,19 +132,19 @@
|
|||||||
<h3>Quick Links</h3>
|
<h3>Quick Links</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About Us</a></li>
|
<li><a href="/about">About Us</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Job Listings</a></li>
|
<li><a href="/jobs">Job Listings</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<h3>For Employers</h3>
|
<h3>For Employers</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/contact.html">Post a Job</a></li>
|
<li><a href="/contact">Post a Job</a></li>
|
||||||
<li><a href="/contact.html">Our Process</a></li>
|
<li><a href="/contact">Our Process</a></li>
|
||||||
<li><a href="/contact.html">Pricing</a></li>
|
<li><a href="/contact">Pricing</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
<div class="logo">Ryans Recruit Firm</div>
|
<div class="logo">Ryans Recruit Firm</div>
|
||||||
<ul class="nav-links">
|
<ul class="nav-links">
|
||||||
<li><a href="/" class="active">Home</a></li>
|
<li><a href="/" class="active">Home</a></li>
|
||||||
<li><a href="/about.html">About</a></li>
|
<li><a href="/about">About</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Jobs</a></li>
|
<li><a href="/jobs">Jobs</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
<li><a href="/admin/login.html" class="btn btn-primary btn-sm">Admin</a></li>
|
<li><a href="/admin/login" class="btn btn-primary btn-sm">Admin</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -26,8 +26,8 @@
|
|||||||
<h1>Your Career Success Is Our Mission</h1>
|
<h1>Your Career Success Is Our Mission</h1>
|
||||||
<p>Connecting talented professionals with leading companies worldwide</p>
|
<p>Connecting talented professionals with leading companies worldwide</p>
|
||||||
<div style="display: flex; gap: 1rem; justify-content: center; margin-top: 2rem;">
|
<div style="display: flex; gap: 1rem; justify-content: center; margin-top: 2rem;">
|
||||||
<a href="/jobs.html" class="btn btn-primary btn-lg">Browse Jobs</a>
|
<a href="/jobs" class="btn btn-primary btn-lg">Browse Jobs</a>
|
||||||
<a href="/contact.html" class="btn btn-secondary btn-lg">Get in Touch</a>
|
<a href="/contact" class="btn btn-secondary btn-lg">Get in Touch</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -176,7 +176,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center" style="margin-top: 3rem;">
|
<div class="text-center" style="margin-top: 3rem;">
|
||||||
<a href="/jobs.html" class="btn btn-primary btn-lg">View Open Positions</a>
|
<a href="/jobs" class="btn btn-primary btn-lg">View Open Positions</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -188,8 +188,8 @@
|
|||||||
Join thousands of professionals who have found their dream jobs through Ryans Recruit Firm
|
Join thousands of professionals who have found their dream jobs through Ryans Recruit Firm
|
||||||
</p>
|
</p>
|
||||||
<div style="display: flex; gap: 1rem; justify-content: center;">
|
<div style="display: flex; gap: 1rem; justify-content: center;">
|
||||||
<a href="/jobs.html" class="btn btn-lg" style="background: white; color: var(--primary-color);">Browse Jobs</a>
|
<a href="/jobs" class="btn btn-lg" style="background: white; color: var(--primary-color);">Browse Jobs</a>
|
||||||
<a href="/contact.html" class="btn btn-secondary btn-lg">Contact Us</a>
|
<a href="/contact" class="btn btn-secondary btn-lg">Contact Us</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -208,19 +208,19 @@
|
|||||||
<h3>Quick Links</h3>
|
<h3>Quick Links</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About Us</a></li>
|
<li><a href="/about">About Us</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Job Listings</a></li>
|
<li><a href="/jobs">Job Listings</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<h3>For Employers</h3>
|
<h3>For Employers</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/contact.html">Post a Job</a></li>
|
<li><a href="/contact">Post a Job</a></li>
|
||||||
<li><a href="/contact.html">Our Process</a></li>
|
<li><a href="/contact">Our Process</a></li>
|
||||||
<li><a href="/contact.html">Pricing</a></li>
|
<li><a href="/contact">Pricing</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
<div class="logo">Ryans Recruit Firm</div>
|
<div class="logo">Ryans Recruit Firm</div>
|
||||||
<ul class="nav-links">
|
<ul class="nav-links">
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About</a></li>
|
<li><a href="/about">About</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html" class="active">Jobs</a></li>
|
<li><a href="/jobs" class="active">Jobs</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
<li><a href="/admin/login.html" class="btn btn-primary btn-sm">Admin</a></li>
|
<li><a href="/admin/login" class="btn btn-primary btn-sm">Admin</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -55,19 +55,19 @@
|
|||||||
<h3>Quick Links</h3>
|
<h3>Quick Links</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About Us</a></li>
|
<li><a href="/about">About Us</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Job Listings</a></li>
|
<li><a href="/jobs">Job Listings</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
<h3>For Employers</h3>
|
<h3>For Employers</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/contact.html">Post a Job</a></li>
|
<li><a href="/contact">Post a Job</a></li>
|
||||||
<li><a href="/contact.html">Our Process</a></li>
|
<li><a href="/contact">Our Process</a></li>
|
||||||
<li><a href="/contact.html">Pricing</a></li>
|
<li><a href="/contact">Pricing</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Admin JavaScript for Ryans Recruit Firm
|
// Admin JavaScript for Ryans Recruit Firm
|
||||||
|
|
||||||
// Check authentication on all admin pages except login
|
// Check authentication on all admin pages except login
|
||||||
if (!window.location.pathname.includes('login.html')) {
|
if (!window.location.pathname.includes('login')) {
|
||||||
checkAuth();
|
checkAuth();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ async function checkAuth() {
|
|||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
|
||||||
if (!data.loggedIn) {
|
if (!data.loggedIn) {
|
||||||
window.location.href = '/admin/login.html';
|
window.location.href = '/admin/login';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,12 +22,12 @@ async function checkAuth() {
|
|||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Auth check failed:', err);
|
console.error('Auth check failed:', err);
|
||||||
window.location.href = '/admin/login.html';
|
window.location.href = '/admin/login';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Login page handlers
|
// Login page handlers
|
||||||
if (window.location.pathname.includes('login.html')) {
|
if (window.location.pathname.includes('login')) {
|
||||||
checkFirstAdmin();
|
checkFirstAdmin();
|
||||||
document.getElementById('login-form')?.addEventListener('submit', handleLogin);
|
document.getElementById('login-form')?.addEventListener('submit', handleLogin);
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,7 @@ async function handleLogin(e) {
|
|||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
showAlert('Login successful!', 'success');
|
showAlert('Login successful!', 'success');
|
||||||
setTimeout(() => window.location.href = '/admin/dashboard.html', 500);
|
setTimeout(() => window.location.href = '/admin/dashboard', 500);
|
||||||
} else {
|
} else {
|
||||||
showAlert(result.error || 'Login failed', 'error');
|
showAlert(result.error || 'Login failed', 'error');
|
||||||
}
|
}
|
||||||
@@ -85,7 +85,7 @@ async function handleLogin(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Dashboard page
|
// Dashboard page
|
||||||
if (window.location.pathname.includes('dashboard.html')) {
|
if (window.location.pathname.includes('dashboard')) {
|
||||||
loadDashboardStats();
|
loadDashboardStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ async function loadDashboardStats() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Applications page
|
// Applications page
|
||||||
if (window.location.pathname.includes('applicants.html')) {
|
if (window.location.pathname.includes('applicants')) {
|
||||||
loadApplications();
|
loadApplications();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ async function loadApplications(filters = {}) {
|
|||||||
<td>${new Date(app.applied_at).toLocaleDateString()}</td>
|
<td>${new Date(app.applied_at).toLocaleDateString()}</td>
|
||||||
<td><span class="tag tag-${getStatusColor(app.status)}">${escapeHtml(app.status)}</span></td>
|
<td><span class="tag tag-${getStatusColor(app.status)}">${escapeHtml(app.status)}</span></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="/admin/applicants.html?id=${app.id}" class="btn btn-sm btn-primary">View</a>
|
<a href="/admin/applicants?id=${app.id}" class="btn btn-sm btn-primary">View</a>
|
||||||
<a href="/api/admin/applications/${app.id}/cv" class="btn btn-sm btn-secondary" target="_blank">CV</a>
|
<a href="/api/admin/applications/${app.id}/cv" class="btn btn-sm btn-secondary" target="_blank">CV</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -169,7 +169,7 @@ async function loadApplications(filters = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Jobs management page
|
// Jobs management page
|
||||||
if (window.location.pathname.includes('jobs.html') && window.location.pathname.includes('admin')) {
|
if (window.location.pathname.includes('jobs') && window.location.pathname.includes('admin')) {
|
||||||
loadAdminJobs();
|
loadAdminJobs();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -246,10 +246,10 @@ async function toggleJobStatus(jobId, isActive) {
|
|||||||
async function logout() {
|
async function logout() {
|
||||||
try {
|
try {
|
||||||
await fetch('/api/admin/logout', { method: 'POST' });
|
await fetch('/api/admin/logout', { method: 'POST' });
|
||||||
window.location.href = '/admin/login.html';
|
window.location.href = '/admin/login';
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Logout error:', err);
|
console.error('Logout error:', err);
|
||||||
window.location.href = '/admin/login.html';
|
window.location.href = '/admin/login';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Main JavaScript for Ryans Recruit Firm
|
// Main JavaScript for Ryans Recruit Firm
|
||||||
|
|
||||||
// Load jobs on jobs.html page
|
// Load jobs on jobs.html page
|
||||||
if (window.location.pathname.includes('jobs.html')) {
|
if (window.location.pathname.includes('jobs')) {
|
||||||
loadJobs();
|
loadJobs();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ async function loadJobs() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="job-description">${escapeHtml(job.description.substring(0, 200))}...</p>
|
<p class="job-description">${escapeHtml(job.description.substring(0, 200))}...</p>
|
||||||
<a href="/apply.html?job=${job.id}" class="btn btn-primary">Apply Now</a>
|
<a href="/apply?job=${job.id}" class="btn btn-primary">Apply Now</a>
|
||||||
</div>
|
</div>
|
||||||
`).join('');
|
`).join('');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -45,7 +45,7 @@ async function loadJobs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle application form on apply.html
|
// Handle application form on apply.html
|
||||||
if (window.location.pathname.includes('apply.html')) {
|
if (window.location.pathname.includes('apply')) {
|
||||||
loadJobDetails();
|
loadJobDetails();
|
||||||
document.getElementById('application-form')?.addEventListener('submit', handleApplicationSubmit);
|
document.getElementById('application-form')?.addEventListener('submit', handleApplicationSubmit);
|
||||||
}
|
}
|
||||||
@@ -96,7 +96,7 @@ async function handleApplicationSubmit(e) {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
showAlert('Application submitted successfully! We\'ll be in touch soon.', 'success');
|
showAlert('Application submitted successfully! We\'ll be in touch soon.', 'success');
|
||||||
form.reset();
|
form.reset();
|
||||||
setTimeout(() => window.location.href = '/jobs.html', 2000);
|
setTimeout(() => window.location.href = '/jobs', 2000);
|
||||||
} else {
|
} else {
|
||||||
showAlert(result.error || 'Failed to submit application', 'error');
|
showAlert(result.error || 'Failed to submit application', 'error');
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ async function handleApplicationSubmit(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle contact form on contact.html
|
// Handle contact form on contact.html
|
||||||
if (window.location.pathname.includes('contact.html')) {
|
if (window.location.pathname.includes('contact')) {
|
||||||
document.getElementById('contact-form')?.addEventListener('submit', handleContactSubmit);
|
document.getElementById('contact-form')?.addEventListener('submit', handleContactSubmit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
<div class="logo">Ryans Recruit Firm</div>
|
<div class="logo">Ryans Recruit Firm</div>
|
||||||
<ul class="nav-links">
|
<ul class="nav-links">
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About</a></li>
|
<li><a href="/about">About</a></li>
|
||||||
<li><a href="/services.html" class="active">Services</a></li>
|
<li><a href="/services" class="active">Services</a></li>
|
||||||
<li><a href="/jobs.html">Jobs</a></li>
|
<li><a href="/jobs">Jobs</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
<li><a href="/admin/login.html" class="btn btn-primary btn-sm">Admin</a></li>
|
<li><a href="/admin/login" class="btn btn-primary btn-sm">Admin</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -85,10 +85,10 @@
|
|||||||
<h3>Quick Links</h3>
|
<h3>Quick Links</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li><a href="/about.html">About Us</a></li>
|
<li><a href="/about">About Us</a></li>
|
||||||
<li><a href="/services.html">Services</a></li>
|
<li><a href="/services">Services</a></li>
|
||||||
<li><a href="/jobs.html">Job Listings</a></li>
|
<li><a href="/jobs">Job Listings</a></li>
|
||||||
<li><a href="/contact.html">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-section">
|
<div class="footer-section">
|
||||||
|
|||||||
Reference in New Issue
Block a user