Skip to content

ccc #25984

@bhupatichapagai-blip

Description

@bhupatichapagai-blip

Type: Bug

You are a senior front-end engineer, UI/UX designer, and mathematics education expert for CDC Nepal Grade 8 curriculum.

Your task is to build a COMPLETE, PROFESSIONAL, OFFLINE-READY interactive HTML5 learning application.

TOPIC:
Mathematics - Grade 8
Lesson: Ratio and Proportion (CDC Nepal)


🚨 CRITICAL OUTPUT RULES

  1. Output ONLY code (no explanation, no comments outside code)
  2. Must be a SINGLE fully working HTML file
  3. Must start with:
  4. Must end with:
  5. No external libraries
  6. No CDN links
  7. Must work completely offline
  8. Must be mobile + desktop responsive
  9. Must be production-level UI (modern app style)

If output is too large, split automatically:

PART 1: HTML + CSS + UI Layout
PART 2: Core JavaScript + Interactions
PART 3: Quiz, Teacher Mode, Solver, Certificate, Sound System

Each part MUST:

  • Continue seamlessly from previous part
  • Not repeat code unnecessarily
  • Be fully consistent

At the end of PART 3, ensure final merged result forms ONE complete working HTML file.


🎨 UI/UX REQUIREMENTS

  • Modern educational app design
  • Gradient background
  • Glassmorphism cards
  • Smooth animations
  • Hover + click effects
  • Progress bar
  • Icons and badges
  • Attractive typography
  • Student-friendly visuals

📚 STRUCTURE (MUST INCLUDE ALL)

  1. HEADER
  • Title: Ratio and Proportion
  • Grade 8 Mathematics
  • CDC Nepal
  • Start button + animated intro
  1. INTRODUCTION
  • Meaning
  • Importance
  • Real-life uses in Nepal
  • Key terms
  1. CONCEPT VISUALIZATION
  • Interactive ratio models
  • Clickable objects
  • Simple animations
  1. FORMULAS
  • Ratio
  • Proportion
  • Cross multiplication
  • Show/Hide toggle
  1. STEP-BY-STEP LEARNING
  • Next/Previous navigation
  • Progressive teaching flow
  1. REAL-LIFE EXAMPLES (5+)
  • Nepal context
  • Market, school, sports, home
  1. WORKED EXAMPLES (10)
  • Step-by-step solution reveal button
  1. PRACTICE SECTION
  • Input answer box
  • Instant feedback
  • Hint system
  1. STEP SOLVER
  • User enters question
  • System shows stepwise solution
  1. EXERCISES (20+)
  • MCQ + short + long + HOTS
  1. QUIZ SYSTEM
  • 15–20 questions
  • Random order
  • Timer + scoring
  1. SCOREBOARD
  • Score, percentage, grade, stars
  1. TEACHER MODE
  • Highlight tool
  • Pen tool
  • Laser pointer
  • Dark mode toggle
  • Full screen
  1. SOUND SYSTEM
  • Click, correct, wrong sounds (offline generated via JS)
  1. ACCESSIBILITY
  • Large text mode
  • High contrast mode
  • Keyboard navigation
  1. FINAL SUMMARY
  • Key points
  • Formula summary
  • Exam tips
  1. CERTIFICATE SCREEN
  • Score based certificate
  • Restart button

⚡ IMPORTANT ENGINEERING RULES

  • Use clean modular JavaScript
  • Use event-driven architecture
  • No broken functions allowed
  • No placeholder text like "TODO"
  • Everything must be fully implemented
  • All buttons must work
  • All features must be functional

🎯 FINAL INSTRUCTION

Generate PART 1 now only.

Wait for my message:
"NEXT PART"

before continuing.

Do not skip steps.
Do not summarize.
Do not explain.

ONLY output working code.

Extension version: 2026.4.0
VS Code version: Code 1.122.1 (8761a5560cfd65fdd19ce7e2bd18dab5c0a4d84e, 2026-05-29T09:25:37+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x9a49 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=30.0.101.1404 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.78GB (5.13GB free)
Process Argv --crash-reporter-id 0f37809e-8bba-4a4a-a716-e21f7147d2e0
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
6abeh943:31336334
envsactivate1:31505457
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ddidt:31399633
ec5jj548:31422691
cp_cls_t_966_ss:31454198
inlinechat_v2_hd992725:31505030
4je02754:31466945
c3h7c220:31478652
38bie571_auto:31426784
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
rl_a_xe_098a3278:31520953
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_c:31478207
hmra_i5g22:31518061
getcmakediagnosticsoff:31489825
7df3h592:31512476
cp_cls_t_1082:31516087
logging_enabled_new:31498466
j0d79568:31499440
nes-extended-cfe-himalia-004:31500446
jb_cp_cls_c_632:31517842
56dj4588:31512888
32d76977:31512328
ha629193:31508444
nes-charagree-ctrl:31521373
31fi7170_t:31522396
jh5f2457_c:31515489
61138546:31518536
nes-gb-5k:31521376

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions