The source code for the templates used by Course Assembler.
This repository is the source code to the designs used by Course Assembler. You can download and modify the code if required.
If you use the Coursesuite API you can upload a zip package of a template to make it privately available through the design page programatically for your apikey. Any files other than the required files (see below) in the zip package will be persisted as-is when publishing.
Pull requests or additional themes may be accepted and used (with credit).
Themes currently require 4 files which must be named properly. These files are all considered to be HandlebarsJS templates and will have specific token replaced during the publishing process:
_package.css- contains all the styles including embedded resources (e.g. dataurls)._package.js- the main script runtime and all its required script libraries.index.html- the main HTML contentpreview.jpg- thumbnail for design tab screen (reccomended size 160 x 120px or larger)
apistring Compatibility setting; one of ["scorm12", "scorm2004", "imscp", "none"]enough-countinteger count of pages required to completenavbghex colour selected background colour, e.g. "#189082"navlockboolean whether navigation is freeform or sequentialnavtextrgb triplet foreground text colour, one of ["255,255,255", "0,0,0"]option-course-copyrightstring "© Anonymous 2020. All rights reserved."option-course-descriptionstring "This course was assembled at www.courseassembler.com"option-course-namestring "New features in CourseAssembler"option-ga-idstring Google analytics IDpagesarray The pages used in the course, array of:audiostring name of audio file for this page, if set, e.g. "d237ff96c68b03b9db61a7c818792dc5.mp3"contentstring renderer source for content, one of ["plugin", "h5p", "file", "media"]depthinteger 0 for outdented, 1 for intentedhrefstring url to content relative to root of package "data/file-ka2ajdgo-0.html"indexinteger order the page appears, zero basedscoreinteger / decimal page score (>0) or timestamp (seconds) requiredtitlestring "Course Introduction"
rulestring Completion rule setting; one of "[last", "show-enough"]templatestring Name of selected template, e.g. "Dark/Green"tierinteger Always 99timestampstring The timestamp the package was published, in base36, e.g. "kal3zldx"
MIT Licenced
Parts of these files include script references to third party libraries which may have their own licences. See the source code for credits and references.
