Spaces:
Running
Running
Upload 4 files
Browse files
README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: INSERT TITLE
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: static
|
| 7 |
+
app_file: index.html
|
| 8 |
+
pinned: true
|
| 9 |
+
---
|
data.csv
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Timestamp,How do you think your friends would describe you?,What are you normally found doing at a party?,What is your favorite genre of movie?,What is your favorite genre of TV show?,What is/was your favorite subject in school?,Do you normally watch TV/movies with subtitles turned on?,What is your favorite thing to do on the weekend?,How many languages do you speak?,What documentary did you enjoy the most or are you most interested in?
|
| 2 |
+
3/31/2026 15:19:22,opinionated,People watching,Romance,Mystery/Thriller,Math,No,Hanging with Family/Friends,1,"13th (2016) - Explores racial inequality in the U.S., focusing on how mass incarceration relates to the 13th Amendment."
|
| 3 |
+
3/31/2026 15:19:57,opinionated,Dancing,Action/Thriller,Mystery/Thriller,Science,Yes,"Entertainment (movies, concerts, etc.)",2,My Octopus Teacher (2020) - A filmmaker forms a unique bond with an octopus in a South African kelp forest.
|
| 4 |
+
3/31/2026 15:20:02,caring,At home chilling,Comedy,Comedy/Sitcom,Math,Yes,Hanging with Family/Friends,1,"13th (2016) - Explores racial inequality in the U.S., focusing on how mass incarceration relates to the 13th Amendment."
|
| 5 |
+
3/31/2026 15:20:35,caring,Meeting new people,Comedy,Comedy/Sitcom,English,Only if it's in another language,Hanging with Family/Friends,1,Fyre: The Greatest Party That Never Happened (2019) - Investigates the disastrous Fyre Festival and its fraud.
|
| 6 |
+
3/31/2026 15:20:40,chill,Meeting new people,Drama,Drama,Art,Yes,Resting,1,Fyre: The Greatest Party That Never Happened (2019) - Investigates the disastrous Fyre Festival and its fraud.
|
| 7 |
+
3/31/2026 15:25:19,determined,People watching,Action/Thriller,Mystery/Thriller,English,Only if it's in another language,Dining Out,1,Navalny (2022) - Follows Russian opposition leader Alexei Navalny and his poisoning investigation.
|
| 8 |
+
3/31/2026 15:25:32,caring,At home chilling,Drama,Action/Adventure,Social Studies,Yes,Reading,1,Apollo 11 (2019) - Uses archival footage to retell NASAβs first moon landing mission.
|
| 9 |
+
3/31/2026 15:27:38,chill,Organizing everything,Science Fiction/Fantasy,Comedy/Sitcom,Math,Only if it's in another language,"Entertainment (movies, concerts, etc.)",1,Apollo 11 (2019) - Uses archival footage to retell NASAβs first moon landing mission.
|
| 10 |
+
3/31/2026 15:29:22,caring,People watching,Comedy,Comedy/Sitcom,Social Studies,Yes,Hanging with Family/Friends,1,My Octopus Teacher (2020) - A filmmaker forms a unique bond with an octopus in a South African kelp forest.
|
| 11 |
+
3/31/2026 15:29:26,outgoing,Dancing,Comedy,Comedy/Sitcom,Math,Only if it's in another language,Hanging with Family/Friends,1,"O.J.: Made in America (2016) - A sweeping look at O.J. Simpsonβs life, trial, and cultural impact."
|
| 12 |
+
3/31/2026 15:30:50,caring,At home chilling,Action/Thriller,Comedy/Sitcom,Art,Yes,Resting,5+,Fire of Love (2022) - Tells the story of volcanologists Katia and Maurice Krafft.
|
| 13 |
+
3/31/2026 15:31:54,patient,People watching,Action/Thriller,Comedy/Sitcom,English,Yes,Resting,1,Fyre: The Greatest Party That Never Happened (2019) - Investigates the disastrous Fyre Festival and its fraud.
|
| 14 |
+
3/31/2026 15:40:39,outgoing,Dancing,Romance,Comedy/Sitcom,Social Studies,No,Hanging with Family/Friends,1,"O.J.: Made in America (2016) - A sweeping look at O.J. Simpsonβs life, trial, and cultural impact."
|
| 15 |
+
3/31/2026 15:52:16,determined,Organizing everything,Drama,Mystery/Thriller,English,Yes,Hanging with Family/Friends,1,Free Solo (2018) - Chronicles climber Alex Honnoldβs attempt to scale El Capitan without ropes.
|
| 16 |
+
3/31/2026 16:54:52,caring,People watching,Science Fiction/Fantasy,Mystery/Thriller,English,Only if it's in another language,Resting,1,"13th (2016) - Explores racial inequality in the U.S., focusing on how mass incarceration relates to the 13th Amendment."
|
| 17 |
+
3/31/2026 17:49:50,patient,People watching,Drama,Drama,Social Studies,No,Reading,1,"13th (2016) - Explores racial inequality in the U.S., focusing on how mass incarceration relates to the 13th Amendment."
|
| 18 |
+
3/31/2026 19:05:55,caring,Meeting new people,Comedy,Mystery/Thriller,Science,Yes,"Outdoor Activities (sports, nature, walking, etc.)",1,My Octopus Teacher (2020) - A filmmaker forms a unique bond with an octopus in a South African kelp forest.
|
| 19 |
+
3/31/2026 19:51:14,caring,People watching,Action/Thriller,Drama,Math,No,"Outdoor Activities (sports, nature, walking, etc.)",1,RBG (2018) - Examines the life and legacy of Supreme Court Justice Ruth Bader Ginsburg.
|
| 20 |
+
3/31/2026 20:03:06,caring,Meeting new people,Science Fiction/Fantasy,Action/Adventure,Science,No,"Outdoor Activities (sports, nature, walking, etc.)",1,Apollo 11 (2019) - Uses archival footage to retell NASAβs first moon landing mission.
|
| 21 |
+
3/31/2026 20:13:47,caring,Dancing,Comedy,Comedy/Sitcom,English,Yes,"Outdoor Activities (sports, nature, walking, etc.)",1,RBG (2018) - Examines the life and legacy of Supreme Court Justice Ruth Bader Ginsburg.
|
| 22 |
+
3/31/2026 21:35:17,caring,People watching,Drama,Drama,Theology,Yes,Resting,1,Apollo 11 (2019) - Uses archival footage to retell NASAβs first moon landing mission.
|
| 23 |
+
4/1/2026 7:02:33,chill,People watching,Action/Thriller,Horror,Math,Only if it's in another language,Dining Out,1,"Summer of Soul (2021) - Unearths footage from the 1969 Harlem Cultural Festival, celebrating Black music and culture."
|
| 24 |
+
4/1/2026 7:26:04,caring,At home chilling,Action/Thriller,Reality TV,English,Yes,Resting,1,Free Solo (2018) - Chronicles climber Alex Honnoldβs attempt to scale El Capitan without ropes.
|
| 25 |
+
4/1/2026 7:41:33,patient,People watching,Science Fiction/Fantasy,Comedy/Sitcom,Math,No,Resting,1,Fire of Love (2022) - Tells the story of volcanologists Katia and Maurice Krafft.
|
| 26 |
+
4/1/2026 7:45:12,caring,People watching,Musical,Mystery/Thriller,English,Yes,Hanging with Family/Friends,1,"O.J.: Made in America (2016) - A sweeping look at O.J. Simpsonβs life, trial, and cultural impact."
|
| 27 |
+
4/1/2026 7:46:28,determined,Meeting new people,Horror,Comedy/Sitcom,Social Studies,Yes,"Outdoor Activities (sports, nature, walking, etc.)",5+,"13th (2016) - Explores racial inequality in the U.S., focusing on how mass incarceration relates to the 13th Amendment."
|
| 28 |
+
4/1/2026 7:48:36,patient,Meeting new people,Action/Thriller,Action/Adventure,Social Studies,Yes,"Outdoor Activities (sports, nature, walking, etc.)",1,"13th (2016) - Explores racial inequality in the U.S., focusing on how mass incarceration relates to the 13th Amendment."
|
| 29 |
+
4/1/2026 8:00:55,opinionated,Meeting new people,Romance,Comedy/Sitcom,English,Yes,Hanging with Family/Friends,2,RBG (2018) - Examines the life and legacy of Supreme Court Justice Ruth Bader Ginsburg.
|
| 30 |
+
4/1/2026 8:52:42,caring,At home chilling,Romance,Mystery/Thriller,Social Studies,Yes,Hanging with Family/Friends,2,My Octopus Teacher (2020) - A filmmaker forms a unique bond with an octopus in a South African kelp forest.
|
| 31 |
+
4/1/2026 10:00:14,outgoing,Meeting new people,Comedy,Comedy/Sitcom,Math,No,Dining Out,2,Fyre: The Greatest Party That Never Happened (2019) - Investigates the disastrous Fyre Festival and its fraud.
|
| 32 |
+
4/1/2026 10:47:09,caring,Meeting new people,Romance,Drama,Math,Yes,"Outdoor Activities (sports, nature, walking, etc.)",1,Free Solo (2018) - Chronicles climber Alex Honnoldβs attempt to scale El Capitan without ropes.
|
| 33 |
+
4/1/2026 13:00:05,opinionated,Meeting new people,Action/Thriller,Drama,English,No,Dining Out,2,RBG (2018) - Examines the life and legacy of Supreme Court Justice Ruth Bader Ginsburg.
|
| 34 |
+
4/1/2026 13:27:36,patient,People watching,Action/Thriller,Drama,Science,Yes,Reading,2,Free Solo (2018) - Chronicles climber Alex Honnoldβs attempt to scale El Capitan without ropes.
|
| 35 |
+
4/1/2026 13:38:23,patient,At home chilling,Drama,Comedy/Sitcom,Theology,Only if it's in another language,Reading,2,"13th (2016) - Explores racial inequality in the U.S., focusing on how mass incarceration relates to the 13th Amendment."
|
| 36 |
+
4/1/2026 13:48:44,caring,Meeting new people,Comedy,Action/Adventure,Science,Yes,Hanging with Family/Friends,2,"O.J.: Made in America (2016) - A sweeping look at O.J. Simpsonβs life, trial, and cultural impact."
|
| 37 |
+
4/1/2026 14:00:01,determined,Meeting new people,Drama,Drama,Science,Yes,Hanging with Family/Friends,1,"O.J.: Made in America (2016) - A sweeping look at O.J. Simpsonβs life, trial, and cultural impact."
|
| 38 |
+
4/1/2026 14:55:54,patient,Dancing,Drama,Science Fiction/Fantasy,English,Only if it's in another language,"Outdoor Activities (sports, nature, walking, etc.)",4,"Summer of Soul (2021) - Unearths footage from the 1969 Harlem Cultural Festival, celebrating Black music and culture."
|
| 39 |
+
4/4/2026 18:07:03,caring,People watching,Romance,Reality TV,Math,No,"Outdoor Activities (sports, nature, walking, etc.)",1,"O.J.: Made in America (2016) - A sweeping look at O.J. Simpsonβs life, trial, and cultural impact."
|
| 40 |
+
4/6/2026 12:26:31,chill,People watching,Drama,Drama,English,Yes,"Outdoor Activities (sports, nature, walking, etc.)",1,Free Solo (2018) - Chronicles climber Alex Honnoldβs attempt to scale El Capitan without ropes.
|
| 41 |
+
4/7/2026 10:11:26,caring,Organizing everything,Comedy,Comedy/Sitcom,Math,No,Hanging with Family/Friends,1,Free Solo (2018) - Chronicles climber Alex Honnoldβs attempt to scale El Capitan without ropes.
|
| 42 |
+
4/8/2026 9:22:46,outgoing,Meeting new people,Horror,Mystery/Thriller,Social Studies,Yes,Hanging with Family/Friends,2,"O.J.: Made in America (2016) - A sweeping look at O.J. Simpsonβs life, trial, and cultural impact."
|
| 43 |
+
4/10/2026 10:48:07,patient,People watching,Comedy,Drama,English,Yes,Hanging with Family/Friends,1,Fyre: The Greatest Party That Never Happened (2019) - Investigates the disastrous Fyre Festival and its fraud.
|
| 44 |
+
10/27/2026 14:15:26,caring,At home chilling,Science Fiction/Fantasy,Comedy/Sitcom,Social Studies,Yes,Reading,2,RBG (2018) - Examines the life and legacy of Supreme Court Justice Ruth Bader Ginsburg.
|
| 45 |
+
10/27/2026 14:15:59,outgoing,People watching,Comedy,Drama,Science,Yes,Hanging with Family/Friends,2,"O.J.: Made in America (2016) - A sweeping look at O.J. Simpsonβs life, trial, and cultural impact."
|
| 46 |
+
10/27/2026 14:16:17,determined,Meeting new people,Romance,Drama,Math,Yes,"Outdoor Activities (sports, nature, walking, etc.)",1,"13th (2016) - Explores racial inequality in the U.S., focusing on how mass incarceration relates to the 13th Amendment."
|
| 47 |
+
10/27/2026 14:16:42,determined,People watching,Comedy,Reality TV,Social Studies,Yes,Hanging with Family/Friends,2,RBG (2018) - Examines the life and legacy of Supreme Court Justice Ruth Bader Ginsburg.
|
| 48 |
+
10/27/2026 14:16:47,chill,At home chilling,Musical,Animation/Cartoons,Art,Yes,Hanging with Family/Friends,2,My Octopus Teacher (2020) - A filmmaker forms a unique bond with an octopus in a South African kelp forest.
|
| 49 |
+
10/27/2026 14:16:49,determined,People watching,Romance,Drama,Math,No,Hanging with Family/Friends,1,Fire of Love (2022) - Tells the story of volcanologists Katia and Maurice Krafft.
|
| 50 |
+
10/27/2026 14:17:19,outgoing,Meeting new people,Romance,Drama,Social Studies,Only if it's in another language,"Entertainment (movies, concerts, etc.)",1,Fyre: The Greatest Party That Never Happened (2019) - Investigates the disastrous Fyre Festival and its fraud.
|
| 51 |
+
10/27/2026 14:17:58,outgoing,Dancing,Romance,Drama,Social Studies,No,Hanging with Family/Friends,5+,Apollo 11 (2019) - Uses archival footage to retell NASAβs first moon landing mission.
|
| 52 |
+
10/27/2026 14:18:10,outgoing,Meeting new people,Drama,Drama,Science,No,Resting,2,My Octopus Teacher (2020) - A filmmaker forms a unique bond with an octopus in a South African kelp forest.
|
| 53 |
+
10/27/2026 14:19:22,chill,Meeting new people,Horror,Comedy/Sitcom,Math,Only if it's in another language,Hanging with Family/Friends,1,Apollo 11 (2019) - Uses archival footage to retell NASAβs first moon landing mission.
|
index.html
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
| 6 |
+
<title>AI Recommendation Engine</title>
|
| 7 |
+
|
| 8 |
+
<!-- Fast CSV Parser & Markdown Renderer CDNs -->
|
| 9 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.4.1/papaparse.min.js"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
| 11 |
+
|
| 12 |
+
<style>
|
| 13 |
+
:root {
|
| 14 |
+
--primary: #4f46e5;
|
| 15 |
+
--bg: #f9fafb;
|
| 16 |
+
--card: #ffffff;
|
| 17 |
+
--text: #1f2937;
|
| 18 |
+
--border: #e5e7eb;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
body {
|
| 22 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
| 23 |
+
background-color: var(--bg);
|
| 24 |
+
color: var(--text);
|
| 25 |
+
max-width: 1200px;
|
| 26 |
+
margin: 30px auto;
|
| 27 |
+
padding: 0 20px;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/* Responsive Two-Column Layout */
|
| 31 |
+
.container {
|
| 32 |
+
display: grid;
|
| 33 |
+
grid-template-columns: 1.6fr 1fr; /* Quiz takes ~60%, Sidebar ~40% */
|
| 34 |
+
gap: 24px;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/* Stack on mobile screens */
|
| 38 |
+
@media (max-width: 768px) {
|
| 39 |
+
.container {
|
| 40 |
+
grid-template-columns: 1fr;
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.card {
|
| 45 |
+
background: var(--card);
|
| 46 |
+
border: 1px solid var(--border);
|
| 47 |
+
border-radius: 12px;
|
| 48 |
+
padding: 24px;
|
| 49 |
+
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/* Form Styles */
|
| 53 |
+
.form-group {
|
| 54 |
+
margin-bottom: 16px;
|
| 55 |
+
}
|
| 56 |
+
label {
|
| 57 |
+
display: block;
|
| 58 |
+
font-weight: 600;
|
| 59 |
+
margin-bottom: 6px;
|
| 60 |
+
text-transform: capitalize;
|
| 61 |
+
}
|
| 62 |
+
select, input[type="number"] {
|
| 63 |
+
width: 100%;
|
| 64 |
+
padding: 10px;
|
| 65 |
+
border: 1px solid var(--border);
|
| 66 |
+
border-radius: 6px;
|
| 67 |
+
box-sizing: border-box;
|
| 68 |
+
font-size: 14px;
|
| 69 |
+
}
|
| 70 |
+
button {
|
| 71 |
+
width: 100%;
|
| 72 |
+
background-color: var(--primary);
|
| 73 |
+
color: white;
|
| 74 |
+
border: none;
|
| 75 |
+
padding: 12px;
|
| 76 |
+
border-radius: 6px;
|
| 77 |
+
font-size: 16px;
|
| 78 |
+
font-weight: 600;
|
| 79 |
+
cursor: pointer;
|
| 80 |
+
transition: background 0.2s;
|
| 81 |
+
}
|
| 82 |
+
button:hover {
|
| 83 |
+
background-color: #4338ca;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
/* Result Box */
|
| 87 |
+
.result-box {
|
| 88 |
+
margin-top: 20px;
|
| 89 |
+
padding: 16px;
|
| 90 |
+
background: #eef2ff;
|
| 91 |
+
border-left: 4px solid var(--primary);
|
| 92 |
+
border-radius: 4px;
|
| 93 |
+
display: none;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
/* Sidebar Markdown Styles */
|
| 97 |
+
.sidebar h1, .sidebar h2, .sidebar h3 {
|
| 98 |
+
color: var(--primary);
|
| 99 |
+
margin-top: 0;
|
| 100 |
+
}
|
| 101 |
+
.sidebar img {
|
| 102 |
+
max-width: 100%;
|
| 103 |
+
height: auto;
|
| 104 |
+
margin-top: 15px;
|
| 105 |
+
}
|
| 106 |
+
.disclaimer {
|
| 107 |
+
font-size: 13px;
|
| 108 |
+
color: #6b7280;
|
| 109 |
+
margin-top: 16px;
|
| 110 |
+
}
|
| 111 |
+
</style>
|
| 112 |
+
</head>
|
| 113 |
+
<body>
|
| 114 |
+
|
| 115 |
+
<div class="container">
|
| 116 |
+
|
| 117 |
+
<!-- MAIN COLUMN: Quiz Interface -->
|
| 118 |
+
<main class="card">
|
| 119 |
+
<h2>π AI Recommendation Engine</h2>
|
| 120 |
+
<p>Take the quiz below to get a personalized recommendation based on our dataset.</p>
|
| 121 |
+
|
| 122 |
+
<div id="loading">Loading dataset...</div>
|
| 123 |
+
<form id="quiz-form" style="display: none;"></form>
|
| 124 |
+
|
| 125 |
+
<div id="result-box" class="result-box">
|
| 126 |
+
<h3 style="margin: 0 0 8px 0;">Your Recommendation:</h3>
|
| 127 |
+
<p id="recommendation-text" style="font-size: 18px; font-weight: bold; margin: 0;"></p>
|
| 128 |
+
</div>
|
| 129 |
+
|
| 130 |
+
<div class="disclaimer">
|
| 131 |
+
β <strong>Note:</strong> Recommendations are derived using nearest-neighbor similarity matching against <code>data.csv</code> directly in your browser.
|
| 132 |
+
</div>
|
| 133 |
+
</main>
|
| 134 |
+
|
| 135 |
+
<!-- SIDEBAR COLUMN: Project Info (renders info.md) -->
|
| 136 |
+
<aside class="card sidebar" id="sidebar-content">
|
| 137 |
+
<p>Loading project details...</p>
|
| 138 |
+
</aside>
|
| 139 |
+
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<script>
|
| 143 |
+
let csvData = [];
|
| 144 |
+
let featureCols = [];
|
| 145 |
+
let targetCol = "";
|
| 146 |
+
|
| 147 |
+
// 1. Fetch & Render info.md into the sidebar automatically
|
| 148 |
+
fetch("info.md")
|
| 149 |
+
.then(res => res.text())
|
| 150 |
+
.then(text => {
|
| 151 |
+
document.getElementById("sidebar-content").innerHTML = marked.parse(text);
|
| 152 |
+
})
|
| 153 |
+
.catch(() => {
|
| 154 |
+
document.getElementById("sidebar-content").innerHTML = "<p>Could not load info.md</p>";
|
| 155 |
+
});
|
| 156 |
+
|
| 157 |
+
// 2. Fetch & Parse data.csv
|
| 158 |
+
Papa.parse("data.csv", {
|
| 159 |
+
download: true,
|
| 160 |
+
header: true,
|
| 161 |
+
skipEmptyLines: true,
|
| 162 |
+
complete: function(results) {
|
| 163 |
+
csvData = results.data;
|
| 164 |
+
if (csvData.length === 0) return;
|
| 165 |
+
|
| 166 |
+
const allCols = Object.keys(csvData[0]);
|
| 167 |
+
const hasTimestamp = allCols[0].toLowerCase().includes("time");
|
| 168 |
+
const cleanCols = hasTimestamp ? allCols.slice(1) : allCols;
|
| 169 |
+
|
| 170 |
+
targetCol = cleanCols[cleanCols.length - 1];
|
| 171 |
+
featureCols = cleanCols.slice(0, cleanCols.length - 1);
|
| 172 |
+
|
| 173 |
+
buildForm();
|
| 174 |
+
}
|
| 175 |
+
});
|
| 176 |
+
|
| 177 |
+
// 3. Dynamic Form Generator
|
| 178 |
+
function buildForm() {
|
| 179 |
+
const form = document.getElementById("quiz-form");
|
| 180 |
+
|
| 181 |
+
featureCols.forEach(col => {
|
| 182 |
+
const group = document.createElement("div");
|
| 183 |
+
group.className = "form-group";
|
| 184 |
+
|
| 185 |
+
const label = document.createElement("label");
|
| 186 |
+
label.innerText = col;
|
| 187 |
+
group.appendChild(label);
|
| 188 |
+
|
| 189 |
+
const sampleValue = csvData[0][col];
|
| 190 |
+
const isNumeric = !isNaN(parseFloat(sampleValue)) && isFinite(sampleValue);
|
| 191 |
+
|
| 192 |
+
if (isNumeric) {
|
| 193 |
+
const input = document.createElement("input");
|
| 194 |
+
input.type = "number";
|
| 195 |
+
input.name = col;
|
| 196 |
+
input.step = "any";
|
| 197 |
+
input.required = true;
|
| 198 |
+
input.placeholder = `Enter ${col}`;
|
| 199 |
+
group.appendChild(input);
|
| 200 |
+
} else {
|
| 201 |
+
const select = document.createElement("select");
|
| 202 |
+
select.name = col;
|
| 203 |
+
select.required = true;
|
| 204 |
+
|
| 205 |
+
const uniqueVals = [...new Set(csvData.map(row => row[col]))].filter(Boolean);
|
| 206 |
+
uniqueVals.forEach(val => {
|
| 207 |
+
const opt = document.createElement("option");
|
| 208 |
+
opt.value = val;
|
| 209 |
+
opt.innerText = val;
|
| 210 |
+
select.appendChild(opt);
|
| 211 |
+
});
|
| 212 |
+
group.appendChild(select);
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
form.appendChild(group);
|
| 216 |
+
});
|
| 217 |
+
|
| 218 |
+
const btn = document.createElement("button");
|
| 219 |
+
btn.type = "submit";
|
| 220 |
+
btn.innerText = "Click to see your personalized result!";
|
| 221 |
+
form.appendChild(btn);
|
| 222 |
+
|
| 223 |
+
document.getElementById("loading").style.display = "none";
|
| 224 |
+
form.style.display = "block";
|
| 225 |
+
|
| 226 |
+
form.addEventListener("submit", getRecommendation);
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
// 4. Recommendation Logic
|
| 230 |
+
function getRecommendation(e) {
|
| 231 |
+
e.preventDefault();
|
| 232 |
+
const formData = new FormData(e.target);
|
| 233 |
+
const userInputs = {};
|
| 234 |
+
featureCols.forEach(col => userInputs[col] = formData.get(col));
|
| 235 |
+
|
| 236 |
+
let minDistance = Infinity;
|
| 237 |
+
let bestMatchRow = null;
|
| 238 |
+
|
| 239 |
+
csvData.forEach(row => {
|
| 240 |
+
let distance = 0;
|
| 241 |
+
|
| 242 |
+
featureCols.forEach(col => {
|
| 243 |
+
const userVal = userInputs[col];
|
| 244 |
+
const rowVal = row[col];
|
| 245 |
+
|
| 246 |
+
if (!isNaN(userVal) && !isNaN(rowVal)) {
|
| 247 |
+
distance += Math.pow(parseFloat(userVal) - parseFloat(rowVal), 2);
|
| 248 |
+
} else {
|
| 249 |
+
distance += (userVal === rowVal ? 0 : 1);
|
| 250 |
+
}
|
| 251 |
+
});
|
| 252 |
+
|
| 253 |
+
if (distance < minDistance) {
|
| 254 |
+
minDistance = distance;
|
| 255 |
+
bestMatchRow = row;
|
| 256 |
+
}
|
| 257 |
+
});
|
| 258 |
+
|
| 259 |
+
const resultBox = document.getElementById("result-box");
|
| 260 |
+
const resultText = document.getElementById("recommendation-text");
|
| 261 |
+
resultText.innerText = bestMatchRow[targetCol];
|
| 262 |
+
resultBox.style.display = "block";
|
| 263 |
+
}
|
| 264 |
+
</script>
|
| 265 |
+
</body>
|
| 266 |
+
</html>
|
info.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# π [Edit info.md - Your app's title here]
|
| 2 |
+
|
| 3 |
+
### π§ Problem Statement and Research Summary
|
| 4 |
+
[add info about your problem statement and your research here!]
|
| 5 |
+
|
| 6 |
+
### π£ Data Collection Plan
|
| 7 |
+
[Edit info.md - add info about what data you collected and why here!]
|
| 8 |
+
|
| 9 |
+
### π₯ Ethical Considerations (Data Privacy and Bias)
|
| 10 |
+
* Data privacy: [Edit info.md - add info about you considered users' privacy here!]
|
| 11 |
+
* Bias: [Edit info.md - add info about you considered bias here!]
|
| 12 |
+
|
| 13 |
+
### π» Our Team
|
| 14 |
+
[Edit info.md - add info about your team members here!]
|
| 15 |
+
|
| 16 |
+

|