srct / schedules

Browse the GMU course catalog, professors, and build your course schedule
https://schedules.gmu.edu
Apache License 2.0
2 stars 0 forks source link

Fix Issue 14 #30

Closed Nicholas-Thor-Page closed 4 years ago

Nicholas-Thor-Page commented 4 years ago

Issue resolved: #14

Fixed issue by doing the following:

When processing a CRN, add a hash to the url so that when the course page is loaded, the section with the CRN will be jumped to. (app/controllers/search_controller.rb)

Additionally, with CSS, highlight the target course with a green color (#afa) to signify that it is the desired course. (app/assets/stylesheets/application.scss)

Turbolink messes with the behaviour of anchors, so when the page is loaded, a script makes sure that the hash is acted upon. (app/views/courses/show.html)