RHUL-CS-Projects / compsci-superbasics

GitHub-pages hosted minisite with helpful superbasic info for students in CompSci labs (Foundation and CS1811/22)
https://rhul-cs-projects.github.io/compsci-superbasics/
MIT License
0 stars 3 forks source link

consolidate the interactive file Javascript into one place #6

Closed davewhiteland closed 3 years ago

davewhiteland commented 3 years ago

Currently there's a bit of DRY violation going on in absolute and relative — probably should make that JS an _include that serves both pages.

davewhiteland commented 3 years ago

Done in 5d5fc8d4ec2bd742bea9dc8d895844e0ae3b404d and thereabouts: everything in code.js with no JS inside individual topics.

That interactive directory stuff is a bit of a monster though. Probably still easiest to keep all JS in a single file though as it's effectively being cached on any visit now, which means navigating to any interactive dir page only needs to download the SVG to start.