# final exam **Repository Path**: gaoruolin/final-exam ## Basic Information - **Project Name**: final exam - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-21 - **Last Updated**: 2026-06-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MCQ — JavaScript 交互式选择题网站 长安大学 × EPITA 网页开发 期末项目 ## 学生信息 - 姓名:Rain - 学校专业:长安大学 人工智能专业 - 学号:2025904740 - 项目类型:个人独立项目 - 测验主题:JavaScript 基础知识 ## 项目概述 本项目为网页开发期末考核作品,实现一个**三页面响应式网站**,包含课程学习页、交互式选择题测验、个人介绍页。 网站采用**移动端优先**设计,实现响应式导航栏、汉堡菜单、从 JSON 文件动态加载题目、答题锁定、自动计分与结果展示等完整功能。 ## 页面结构 1. index.html — 首页 / 课程学习页 2. quiz.html — 交互式选择题测验页 3. about.html — 个人介绍页 ## 项目目录结构 - mcq/ - ├── index.html # Page 1: Lesson / Home - ├── quiz.html # Page 2: Interactive MCQ - ├── about.html # Page 3: About the student - ├── css/ - │ ├── global.css # Shared styles (reset, navbar, footer,typography) - │ ├── home.css # Styles specific to index.html - │ ├── quiz.css # Styles specific to quiz.html - │ └── about.css # Styles specific to about.html - ├── js/ - │ ├── navbar.js # Navbar toggle logic (shared across pages) - │ └── quiz.js # Quiz logic (fetch, render, lock, score) - └── data/ - └── questions.json # Quiz questions and answers ## 实现功能 - 多页面结构与全局导航 - 移动端优先响应式布局 - 移动端汉堡菜单切换 - 从 JSON 动态加载并渲染题目 - 答案选择与锁定功能 - 自动计分与最终结果展示 - 统一的全局样式与交互体验 ## 功能开发提交记录 1. feat: create HTML structure for all 3 pages with navigation 2. feat: add responsive CSS with mobile-first navbar 3. feat: implement hamburger menu toggle for mobile 4. feat: load questions from JSON and render quiz dynamically 5. feat: add answer locking, scoring, and result display ## 技术栈 - HTML5 - CSS3(响应式 / 移动端优先) - JavaScript ## 运行方式 直接在浏览器中打开 `index.html` 即可运行,无需安装任何依赖。