Modifying the refernece file
The text references and several other "control" are contained in a non-HTML file called "reflist.js". This is simply a text file that is called by all of the pages for common use. It is easily modified to suit. The instructions below should suffice. It is recommended that you make a copy of "reflist.js" before modifying it to protect against errors. Making an error in changing "reflist.js" will not likely be disabling to using the files, but it could cause spurious error messages to be produced.
reflist.js is a simple text file and can be modified using any text editor. A couple of general points should be emphasized
Below is the opening section of reflist.js. It contains all of the relevant information. Most of the entries should be self-explanatory.
- Make sure that the modified file is saved as reflist.js. Don't save it with any other name or extension.
- In making your changes, be absolutely certain that you do not add or remove any quotation marks. These act as string delimiters and changing them is certain to produce a "broken" file.
- Your best bet is to make the modifications locally and verify that all is well before distributing them to the students or replacing reflist.js on a server.
reflist.js begins below
- The first two lines declare two needed arrays-theref and comment. Don't change these.
- The next line is the text title. Change as desired, making sure that the quotation marks are not changed.
- The next line is the email link. If you wish your students to be able to email you from the pages, replace firstname.lastname@example.org with you complete email address. Again, do not change either the single or double quotes.
- Don't change the returnlink
- Skip down to "Basic Concept Section". Never change the function unless you're certain about what you're doing.
- Each web page has its own pair of entries and the entries are headed by the page title/topic. Thus, the entry shown here is for the significant figures page. The first entry,theref, is the detailed text reference. The second,comment, is for comments on the topic that you might want to add. Both of these can be changed readily. Again, make sure that the quotes are not changed. As distributed, this file contains no comments. If you decide to add some, you should keep them brief and make sure that you comments are placed between the quotation makrs provided.
booktitle="General Chemistry, Seventh Edition... Petrucci and Harwood;MacMillan Publishing
emaillink="...='mailto:email@example.com'>Feedback to George
returnlink=" ...='lechelpcs.html'>Back to Top"
//Basic Concept Section
theref="Chapter 1,p.19-23,Fig 1-10(p.20)"