blob: ae863d5b307250a5496f4698bf803d300c29fa2b [file] [log] [blame]
/**
* @file DTPS bookmarklet loader
* @author jottocraft
*
* @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
* @license GPL-2.0-only
*/
const DTPS_ROOT_URL = "https://powerplus.app/";
if (window.location.hostname == "dtechhs.instructure.com") {
//Load Design Tech High School script
jQuery.getScript(DTPS_ROOT_URL + "/scripts/lms/dtech.js");
} else if (window.location.hostname.endsWith("instructure.com")) {
//Load Canvas LMS script
jQuery.getScript(DTPS_ROOT_URL + "/scripts/lms/canvas.js");
} else {
throw "Error: Invalid domain";
}