@pimaonline/pimaonline-themepack 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -4,7 +4,7 @@ The PimaOnline Themepack is a web development toolkit for building online course
4
4
 
5
5
  ## Version
6
6
 
7
- 2.2.0
7
+ 2.2.1
8
8
 
9
9
  ## What's included
10
10
 
@@ -20,7 +20,7 @@ The PimaOnline Themepack is a web development toolkit for building online course
20
20
 
21
21
  ### Npm Commands
22
22
 
23
- `npm run dev` Run this command to enter development mode.
23
+ `npm run dev` Run this command to enter development mode.
24
24
 
25
25
  Development mode includes a server running at `http://localhost:8080`. All files are watched so that when you make a change the compiler will run automatically. Note: Compiler will run prior to server starting.
26
26
 
@@ -34,7 +34,7 @@ This will compile all `src ` content into `dist`. Also creates duplicate (develo
34
34
 
35
35
  `npm run webdocs` Run this command to compile Webdocs.
36
36
 
37
- This will compile `docs/src` into `docs/dist`.
37
+ This will compile `docs/src` into `docs/dist`.
38
38
 
39
39
  ## Stylesheets
40
40
 
@@ -293,9 +293,11 @@ if (document.querySelector(".toggle-btn") || document.querySelector(".toggle-foo
293
293
  // Change footnotes from 'show' to 'hide'
294
294
  const footnotes = document.querySelector(".toggle-footnotes");
295
295
 
296
- footnotes.addEventListener("click", () => {
297
- footnotes.innerHTML = (footnotes.innerHTML === "[Show Footnotes]") ? "[Hide Footnotes]" : "[Show Footnotes]";
298
- })
296
+ if(footnotes) {
297
+ footnotes.addEventListener("click", () => {
298
+ footnotes.innerHTML = (footnotes.innerHTML === "[Show Footnotes]") ? "[Hide Footnotes]" : "[Show Footnotes]";
299
+ })
300
+ }
299
301
 
300
302
  // Animated border for HRS theme
301
303
  const hrsBorders = document.querySelectorAll(".hrs-border");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimaonline/pimaonline-themepack",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "A cloud based, course theme-pack for building courses efficiently within the D2L learning environment.",
5
5
  "main": "index.js",
6
6
  "files": [