-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathai.html
More file actions
81 lines (75 loc) · 2.7 KB
/
ai.html
File metadata and controls
81 lines (75 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Ask Commit AI – Virtual Assistant</title>
<link rel="stylesheet" href="css/styles.css" />
<script src="js/scripts.js" defer></script>
</head>
<body>
<div class="layout">
<!-- Sidebar Navigation -->
<aside class="sidebar" aria-label="Department Navigation">
<div class="sidebar-header">
<img src="assets/commit-logo-white.svg" alt="Commit Logo" class="sidebar-logo" />
</div>
<nav>
<ul>
<h2>Departments</h2>
<li><a href="departments/hr.html">👥 HR</a></li>
<li><a href="departments/it.html">💻 IT Support</a></li>
<li><a href="departments/operations.html">📦 Operations</a></li>
<li><a href="departments/policy.html">📜 Policy</a></li>
<li><a href="departments/development.html">💡 Development</a></li>
</ul>
</nav>
</aside>
<!-- Main Content -->
<div class="main-content">
<!-- Top Navigation -->
<header class="site-header">
<h1>Ask Commit AI</h1>
<nav class="topnav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="news.html">News</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li><a href="documents.html">Documents</a></li>
<li><a href="shoutouts.html">Shoutouts</a></li>
<li><a href="wiki.html">Wiki</a></li>
<li><a href="ai.html" class="active">Ask AI</a></li>
</ul>
</nav>
</header>
<!-- AI Tool -->
<main>
<section class="widget">
<h2>Virtual Assistant</h2>
<div class="ai-widget">
<label for="ai-input">Ask your question below:</label>
<textarea id="ai-input" rows="4" placeholder="Example: 'What’s the PTO policy?'"></textarea>
<button onclick="submitAIQuestion()">Ask</button>
<div id="ai-response" class="ai-response"></div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="site-footer">
<p>© 2025 The Commit Partnership. All rights reserved.</p>
</footer>
</div>
</div>
<!-- Sidebar Search Logic -->
<script>
document.querySelector('.sidebar-search input').addEventListener('input', function () {
const query = this.value.toLowerCase();
const widgets = document.querySelectorAll('.widget');
widgets.forEach(widget => {
const text = widget.innerText.toLowerCase();
widget.style.display = text.includes(query) ? 'block' : 'none';
});
});
</script>
</body>
</html>