-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent-doubt.html
More file actions
88 lines (77 loc) · 3.55 KB
/
Copy pathstudent-doubt.html
File metadata and controls
88 lines (77 loc) · 3.55 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
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>doubt-dashboard</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="dashboard">
<aside class="sidebar" id="sidebar"></aside>
<main class="main-content">
<div class="page-header">
<h2>Doubt Portal</h2>
<p>Ask doubts in your enrolled classes</p>
</div>
<div class="dash-card" id="studentClassList">
</div>
<div id="studentDoubtSection" style="display:none;">
<input type="hidden" id="selectedClassCode">
<div style="display:flex;align-items:center;gap:12px;margin-bottom:20px;">
<button class="btn-outline" onclick="backToStudentClasses()"
style="padding:6px 16px;font-size:13px;">← Back</button>
<h3 id="selectedStudentClass" style="color:white;font-size:18px;"></h3>
</div>
<div class="dash-card" style="margin-bottom:24px;">
<h3>Ask a Doubt</h3>
<div class="input-group">
<label>Topic</label>
<input type="text" id="doubt-subject" placeholder="e.g. Topic">
</div>
<div class="input-group">
<label>Your Doubt</label>
<textarea id="doubt-text" placeholder="Write your doubt here..."
style="width:100%;padding:10px 14px;background:rgba(255,255,255,0.05);border:1px solid rgba(0,149,255,0.2);border-radius:8px;color:white;font-size:14px;outline:none;resize:none;height:80px;font-family:'Segoe UI',sans-serif;"></textarea>
</div>
<div style="display:flex;align-items:center;gap:8px;margin-bottom:16px;">
<input type="checkbox" id="anonymous-check">
<label for="anonymous-check" style="font-size:13px;color:#aaaaaa;">Post anonymously</label>
</div>
<button class="btn-primary" onclick="postDoubt()">Post Doubt</button>
</div>
<div class="dash-card">
<h3>Doubts in this Class</h3>
<div id="doubtsList"></div>
</div>
</div>
</main>
<div class="ai-float" onclick="toggleChat()">
<button class="ai-float-btn">
E<span class="ai-highlight">S</span>
</button>
<span class="ai-float-label">AI Assistant</span>
</div>
</div>
<div class="ai-chat-popup" id="aiChat">
<div class="chat-header">
<div class="chat-title">
<span>Edu<span class="highlight">Sphere</span> AI</span>
</div>
<button class="chat-close" onclick="toggleChat()">✕</button>
</div>
<div class="chat-messages" id="chatMessages">
<div class="msg ai-msg">
<p>Hi! I'm EduSphere AI. I'll be fully functional soon. How can I help you today?</p>
</div>
</div>
<div class="chat-input-row">
<input type="text" id="chatInput" placeholder="Ask anything..." />
<button class="chat-send" onclick="sendMessage()">➤</button>
</div>
</div>
<script src="sidebar.js"></script>
<script src="dashboard.js"></script>
<script src="student-doubt.js"></script>
</body>
</html>