forked from NEO001-2004/Stage_3IF_PathBased_Explanation
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
215 lines (196 loc) · 10.4 KB
/
Copy pathindex.html
File metadata and controls
215 lines (196 loc) · 10.4 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>ExplainGraph</title>
<!-- External libraries -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" rel="stylesheet" />
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<!-- App styles -->
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<!-- Conteneur principal à 3 colonnes -->
<div class="extracted-style-1" id="main-layout">
<!-- Barre de navigation -->
<div class="extracted-style-2" id="nav-bar">
<div>
<h1>ExplainGraph </h1>
</div>
<div class="extracted-style-3"><img alt="Description de l'image" height="50" src="./liris.png" /></div>
<div class="extracted-style-4">
<a href="https://liris.cnrs.fr/equipe/tweak">About</a>
</div>
</div>
<!-- Fenêtre de connexion -->
<div id="login-overlay">
<div id="login-box">
<h2>General Information</h2>
<p class="consent-text">
You are invited to participate in a study to evaluate a course recommendation system and the
associated explanations.
Participation is voluntary, and you may withdraw at any time. Your responses are anonymous and used
only for research purposes.
</p>
<form id="participant-form" onsubmit="event.preventDefault(); validateLogin();">
<div class="form-grid">
<!-- User ID (requis) + autocomplete -->
<div class="form-field">
<label for="userId">User ID <span class="req">*</span></label>
<input id="userId" placeholder="user_X.0" type="text" autocomplete="off" required />
<!-- Autocomplete dropdown (conservé) -->
<ul class="extracted-style-5" id="userId-suggest"></ul>
</div>
<!-- Age -->
<div class="form-field">
<label for="age">Age</label>
<input id="age" type="number" min="10" max="120" />
</div>
<!-- Gender -->
<div class="form-field">
<label>Gender</label>
<div class="radio-group">
<label class="radioOption"><input type="radio" name="gender" value="Female" />
Female</label>
<label class="radioOption"><input type="radio" name="gender" value="Male" />
Male</label>
<label class="radioOption"><input type="radio" name="gender" value="Prefer not to say"
checked /> Prefer not to say</label>
</div>
</div>
<!-- Education level -->
<div class="form-field">
<label for="educationLevel">Education level</label>
<select id="educationLevel">
<option value="">-- Select --</option>
<option>High school</option>
<option>Bachelor</option>
<option>Master</option>
<option>PhD</option>
<option>Other</option>
</select>
<input id="educationOther" class="hidden" type="text" placeholder="Please specify" />
</div>
<!-- Field of study / work -->
<div class="form-field">
<label for="fieldStudy">Field of study / work</label>
<input id="fieldStudy" type="text" placeholder="e.g., Computer Science" />
</div>
<!-- Have you ever used a course recommendation system? -->
<div class="form-field">
<label>Have you ever used a course recommendation system?</label>
<div class="radio-group">
<label class="radioOption"><input type="radio" name="usedReco" value="Yes" />
Yes</label>
<label class="radioOption"><input type="radio" name="usedReco" value="No" /> No</label>
</div>
</div>
<!-- Frequency of e-learning platform use -->
<div class="form-field">
<label for="frequency">Frequency of e-learning platform use</label>
<select id="frequency">
<option value="">-- Select --</option>
<option>Rarely</option>
<option>Sometimes</option>
<option>Often</option>
<option>Very often</option>
</select>
</div>
</div>
<p class="consent-note">
We will show you a recommended course along with an explanation (in the form of knowledge graph
paths).
Please read the recommendation and explanation carefully and then answer the questions below
based on what you saw.
</p>
<button class="button" type="submit">Start</button>
</form>
</div>
</div>
<!-- Zone de contenu principale -->
<div class="extracted-style-6" id="content-area">
<!-- Colonne centrale : graphe et contrôles -->
<div class="extracted-style-7" id="center-panel">
<div id="affichage-cours"></div>
<!-- Container pour graphe et questions côte à côte -->
<div id="graph-questions-container">
<!-- Section graphe -->
<div id="graph-section">
<!-- Graphe sans boutons navigation -->
<div id="graphs-container">
<div id="graph-wrapper">
<div class="g" id="graph"></div>
</div>
</div>
<!-- Contrôles du graphe centrés en dessous -->
<div class="graph-controls">
<button class="navigation" id="buttonPrecedent">⬅️ Previous Path</button>
<button class="button" id="resetView"
title="Click here to recenter the graph and adjust the zoom">Recenter The Graph</button>
<button class="button" id="resetPath"
title="Click here to come back to the initial path explanation">Reset Path</button>
<button class="button" id="exportSvg"
title="Export the current graph as SVG in a new tab and start a download automatically">Export
SVG</button>
<button class="navigation" id="buttonSuivant">Next Path ➡️</button>
</div>
</div>
<!-- Section questions -->
<div id="questions-section">
<div id="separateurChemin"></div>
<div id="formulaire-questions"></div>
</div>
</div>
<!-- Popup hover node-->
<div class="extracted-style-9" id="tooltip">
</div>
<!-- Espace pour les questions générales -->
<div id="separateurGeneral"></div>
<div id="questionsGenerales"></div>
</div>
<!-- Colonne de droite : explication + légende -->
<div class="extracted-style-10" id="right-panel">
<div class="panel-resizer" id="panel-resizer"></div>
<!-- Explication textuelle -->
<h3>Explanation</h3>
<p id="Explication"></p>
<!-- Legende des graphes -->
<h4>Legend</h4>
<ul class="extracted-style-11">
<li><span class="extracted-style-12"></span>
Topic</li>
<li><span class="extracted-style-13"></span>
User and recommended course</li>
<li><span class="extracted-style-14"></span>
Course</li>
<li><span class="extracted-style-15"></span>
Type</li>
<li>
<div class="extracted-style-16">
<div id="legendLiteral">
</div>
<span>Literal</span>
</div>
</li>
</ul>
<!-- Diagramme top 5 attributs sémantiques -->
<h4>Top 5 Semantic Attributes</h4>
<p>This bar chart shows what percentage of the user's high interest courses shares the same semantic
attributes as the recommended course. This chart only shows the top 5, non-zero percentages.</p>
<div id="messageTop5"></div>
<canvas height="200" id="top5chart" width="260"></canvas>
</div>
</div>
</div>
<!-- Loader -->
<div id="loader" class="loader-overlay" style="display: none;">
<div class="spinner"></div>
</div>
<!-- App script -->
<script src="app.js"></script>
</body>
</html>