+ /**
+ * Inserts HTML specified in the user config into the splash screen
+ * accepts plain strings and objects. String literals are interpreted as
+ * normal text element. Objects are set using the jQuery API
+ */
+ initHTML(opts) {
+ // handle single objects and strings
+ if (!Array.isArray(opts)) {
+ opts = [opts];
+ }
+
+ for (let el of opts) {
+ if (typeof el == "string") {
+ let $el = $("<text>");
+ $el.text(el);
+ // create simple text element
+ this.$content.append($el);
+ } else if (typeof el == "object") {
+ // let user specify element properites in object el
+ let $el = $("<div>");
+ for (let prop in el) {
+ $el[prop](el[prop]);
+ }
+ this.$content.append($el);
+
+ } else {
+ console.warn("Splash screen html element is invalid type");
+ }
+ }
+
+ }
+