Adding current file hierarchy to repository

/Prep/ contains the prep files (Photoshop, etc.) and any accompanying documentation for files.

/www/ contains actual scripts and graphics.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Ignore .ignore files

I have rejiggered the .gitignore file so that I can maintain a file with a plaintext copy of the API key and matching instance URL without committing it to Git accidentally.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Deprecated exitOnError()

I build myself a much better error display function a while back, but hadn't replaced all the calls to exitOnError() with it. Now I have, and I have removed exitOnError().

Also: .gitignore has been updated to reflect the presence of .orig merge files scattered throughout the directory. Eventually they should get cleaned up. But, meanwhile, no need to commit them to the repo.
Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Non-PHP Javascript

Using global.js to amalgamate my Javascript files, rather than PHP (which our lame web server doesn't support).

Reduce testers list and default to student view of resources menu.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Safer Function Naming Pattern

I realized that just tossing my arbitrarily named Javascript functions into the same namespace as the app that I'm modifying… could end badly.

Now all of my functions are named stmarks_*.

'would be good to move my variables out of that namespace as well, but so far nothing is breaking!

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Hide Pages if Hidden

Seems self-evident, but [this thread](https://help.instructure.com/entries/21422345) on the Canvas Communities highlights an annoying visibility issue: users who can't see the Pages section can still see the whole list of pages if they are on a Page.

This removes those lists from the interface.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Scrollable Faculty Journal

Allow teachers to open a scrollable faculty journal page from their People listing for a course. Inserts a menu and next/prev buttons into the resulting faculty journal page to let teachers scroll through each student in their course, from within the faculty journal.

Signed-off-by: Seth Battis <seth@battis.net>
Timing

Put a delay in before adding the Faculty Journal button (I'm guessing the timing wasn't about the menus -- although we're now dependent on resources-menu.js running ahead of us -- but actually on the sidebar completing loading dynamically.

Whatevs. It works.

Signed-off-by: Seth Battis <seth@battis.net>
Timing Update

Updated hide-future-courses.js to simply keep retrying until the variables and/or DOM elements required are available (as in [dev-faculty-journal](https://github.com/smtech/canvas/commit/38955ef47b33478d0549712689844734dc66001d))

Also, re-added discussion-permalinks.js back into global.js.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Disabled.

Removed the triggering JavaScript from global.js, pending fuller discussion of the use of the Faculty Journal after the Parents' Weekend updates have been completed.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Grading Analytics Button

Add a grading analytics button to the course home page for teachers (only).

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Hash

Send a hash of the username and other… stuff to the PHP script, which will check to make sure the username and other… stuff are valid.

Time to figure out LTIs, huh?

Signed-off-by: Seth Battis <seth@battis.net>
Reorganization

Pulling files into better organized directories. Rewrote includes and HREFs to be more durable across different folder organizations.

Added top-level configuration for school information in config.inc.php

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Restructured dev-grading-analytics

Restructured to use the new dev-support branch and more reliable includes and HREF paths (which feel a little hack-y).

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Removing Buggy Redundancy

Fixing some lingering issues from the transition to dev-support.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Wait for DOM

I got tired of tired retyping the same code again and again, so I put it — finally — in global.js, hopefully in a generalizable form.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Protect Data Collection

Just relying on security through obscurity to protect the summary pages, but putting the actual data collection script behind a password). The summaries should, of course, be protected too -- probably should figure out how to make this an LTI.

Signed-off-by: Seth Battis <seth@battis.net>
Helper Functions

Using the new built-in helper functions in global.js.

Also, currently filtering so only testers can see summary page links.

Signed-off-by: Seth Battis <seth@battis.net>
Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Notify of Unsaved Changes in RCE

Added Steven H's script from [this thread](https://help.instructure.com/entries/20451427-Save-reminder-before-leaving-an-edit-screen?page=1#post_21624684) to notify users of unsaved changes in the Rich Content Editor before leaving a page.

Also: Steven H's code model suggests a better way of using JQuery to load things when the DOM is ready. Sigh. I should revise my code, rather than constructing my own tacky approach.
Signed-off-by: Seth Battis <seth@battis.net>
Turn off limited availability

Make Grading Analytics button available to all teachers.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>