@pimaonline/pimaonline-themepack 3.12.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/README.md +13 -26
  2. package/dist/css/main.css +1 -1
  3. package/dist/css/plugins/alt-icons.css +1 -1
  4. package/dist/css/plugins/dark-mode.css +1 -0
  5. package/dist/css/plugins/font-awesome.css +1 -1
  6. package/dist/css/routes.css +1 -1
  7. package/dist/css/themes/ait/styles.css +1 -1
  8. package/dist/css/themes/ajs/styles.css +1 -1
  9. package/dist/css/themes/ant/styles.css +1 -0
  10. package/dist/css/themes/art/styles.css +1 -1
  11. package/dist/css/themes/aviation/styles.css +1 -1
  12. package/dist/css/themes/bct/styles.css +1 -1
  13. package/dist/css/themes/bio/styles.css +1 -1
  14. package/dist/css/themes/blobs/styles.css +1 -0
  15. package/dist/css/themes/business/styles.css +1 -1
  16. package/dist/css/themes/cad/styles.css +1 -1
  17. package/dist/css/themes/cards/styles.css +1 -1
  18. package/dist/css/themes/cas/styles.css +1 -0
  19. package/dist/css/themes/cda/styles.css +1 -1
  20. package/dist/css/themes/chm/styles.css +1 -0
  21. package/dist/css/themes/cis/styles.css +1 -1
  22. package/dist/css/themes/communication/styles.css +1 -1
  23. package/dist/css/themes/computer-information-systems/styles.css +1 -1
  24. package/dist/css/themes/culinary/styles.css +1 -1
  25. package/dist/css/themes/culinary/versions/black-marble.css +1 -1
  26. package/dist/css/themes/culinary/versions/stainless.css +1 -1
  27. package/dist/css/themes/culinary/versions/wood.css +1 -1
  28. package/dist/css/themes/dental/styles.css +1 -1
  29. package/dist/css/themes/ece/styles.css +1 -1
  30. package/dist/css/themes/ecn/styles.css +1 -1
  31. package/dist/css/themes/eng/styles.css +1 -1
  32. package/dist/css/themes/fashion/styles.css +1 -1
  33. package/dist/css/themes/fitness/styles.css +1 -1
  34. package/dist/css/themes/fsc/styles.css +1 -1
  35. package/dist/css/themes/geography/styles.css +1 -1
  36. package/dist/css/themes/geology/styles.css +1 -1
  37. package/dist/css/themes/health-it/styles.css +1 -1
  38. package/dist/css/themes/history/styles.css +1 -1
  39. package/dist/css/themes/hrm/styles.css +1 -1
  40. package/dist/css/themes/hrs/styles.css +1 -1
  41. package/dist/css/themes/journalism/styles.css +1 -1
  42. package/dist/css/themes/lang/styles.css +1 -1
  43. package/dist/css/themes/lgm/styles.css +1 -1
  44. package/dist/css/themes/machine/styles.css +1 -1
  45. package/dist/css/themes/math/styles.css +1 -1
  46. package/dist/css/themes/mgt/styles.css +1 -1
  47. package/dist/css/themes/minimalist/styles.css +1 -1
  48. package/dist/css/themes/mkt/styles.css +1 -0
  49. package/dist/css/themes/music/styles.css +1 -1
  50. package/dist/css/themes/nursing/styles.css +1 -0
  51. package/dist/css/themes/philosophy/styles.css +1 -1
  52. package/dist/css/themes/pht/styles.css +1 -1
  53. package/dist/css/themes/phy/styles.css +1 -0
  54. package/dist/css/themes/pos/styles.css +1 -0
  55. package/dist/css/themes/psy/styles.css +1 -1
  56. package/dist/css/themes/reading/styles.css +1 -0
  57. package/dist/css/themes/resort/styles.css +1 -1
  58. package/dist/css/themes/soc/styles.css +1 -1
  59. package/dist/css/themes/ss/styles.css +1 -1
  60. package/dist/css/themes/tps/styles.css +1 -0
  61. package/dist/css/themes/university/styles.css +1 -1
  62. package/dist/css/themes/vet/styles.css +1 -1
  63. package/dist/css/themes/welding/styles.css +1 -1
  64. package/dist/css/themes/writing/styles.css +1 -1
  65. package/dist/img/general/arrow-right-black.svg +1 -0
  66. package/dist/img/general/arrow-right-primary-blue.svg +1 -0
  67. package/dist/img/general/arrow-right-white.svg +1 -0
  68. package/dist/img/general/eye-icon.svg +4 -0
  69. package/dist/img/general/gear-icon.svg +3 -0
  70. package/dist/img/general/moon-icon.svg +4 -0
  71. package/dist/img/general/sliders-icon.svg +1 -0
  72. package/dist/img/general/text-icon.svg +4 -0
  73. package/dist/img/general/width-icon.svg +4 -0
  74. package/dist/img/theme-images/ant/texture.png +0 -0
  75. package/dist/img/theme-images/cas/city-vector.svg +92 -0
  76. package/dist/img/theme-images/cas/farm-vector.svg +1 -0
  77. package/dist/img/theme-images/cas/ocean-vector.svg +1 -0
  78. package/dist/img/theme-images/cas/recycle-symbol.svg +1 -0
  79. package/dist/img/theme-images/chm/chem-letters/letter-a.png +0 -0
  80. package/dist/img/theme-images/chm/chem-letters/letter-b.png +0 -0
  81. package/dist/img/theme-images/chm/chem-letters/letter-c.png +0 -0
  82. package/dist/img/theme-images/chm/chem-letters/letter-d.png +0 -0
  83. package/dist/img/theme-images/chm/chem-letters/letter-e.png +0 -0
  84. package/dist/img/theme-images/chm/chem-letters/letter-f.png +0 -0
  85. package/dist/img/theme-images/chm/chem-letters/letter-g.png +0 -0
  86. package/dist/img/theme-images/chm/chem-letters/letter-h.png +0 -0
  87. package/dist/img/theme-images/chm/chem-letters/letter-i.png +0 -0
  88. package/dist/img/theme-images/chm/chem-letters/letter-j.png +0 -0
  89. package/dist/img/theme-images/chm/chem-letters/letter-k.png +0 -0
  90. package/dist/img/theme-images/chm/chem-letters/letter-l.png +0 -0
  91. package/dist/img/theme-images/chm/chem-letters/letter-m.png +0 -0
  92. package/dist/img/theme-images/chm/chem-letters/letter-n.png +0 -0
  93. package/dist/img/theme-images/chm/chem-letters/letter-o.png +0 -0
  94. package/dist/img/theme-images/chm/chem-letters/letter-p.png +0 -0
  95. package/dist/img/theme-images/chm/chem-letters/letter-q.png +0 -0
  96. package/dist/img/theme-images/chm/chem-letters/letter-r.png +0 -0
  97. package/dist/img/theme-images/chm/chem-letters/letter-s.png +0 -0
  98. package/dist/img/theme-images/chm/chem-letters/letter-t.png +0 -0
  99. package/dist/img/theme-images/chm/chem-letters/letter-u.png +0 -0
  100. package/dist/img/theme-images/chm/chem-letters/letter-v.png +0 -0
  101. package/dist/img/theme-images/chm/chem-letters/letter-w.png +0 -0
  102. package/dist/img/theme-images/chm/chem-letters/letter-x.png +0 -0
  103. package/dist/img/theme-images/chm/chem-letters/letter-y.png +0 -0
  104. package/dist/img/theme-images/chm/chem-letters/letter-z.png +0 -0
  105. package/dist/img/theme-images/mkt/blue/bluebars.svg +36 -0
  106. package/dist/img/theme-images/mkt/blue/blueheader.jpg +0 -0
  107. package/dist/img/theme-images/mkt/blue/bluepie.svg +42 -0
  108. package/dist/img/theme-images/mkt/green/greenbars.svg +36 -0
  109. package/dist/img/theme-images/mkt/green/greenheader.jpg +0 -0
  110. package/dist/img/theme-images/mkt/green/greenpie.svg +42 -0
  111. package/dist/img/theme-images/mkt/yellow/yellowbars.svg +36 -0
  112. package/dist/img/theme-images/mkt/yellow/yellowheader.jpg +0 -0
  113. package/dist/img/theme-images/mkt/yellow/yellowpie.svg +42 -0
  114. package/dist/img/theme-images/nursing/blue/bottomright-blue.svg +95 -0
  115. package/dist/img/theme-images/nursing/blue/topleft-blue.svg +111 -0
  116. package/dist/img/theme-images/nursing/green/bottomright-green.svg +95 -0
  117. package/dist/img/theme-images/nursing/green/topleft-green.svg +111 -0
  118. package/dist/img/theme-images/nursing/purple/bottomright-purple.svg +95 -0
  119. package/dist/img/theme-images/nursing/purple/topleft-purple.svg +111 -0
  120. package/dist/img/theme-images/nursing/teal/bottomright-teal.svg +95 -0
  121. package/dist/img/theme-images/nursing/teal/topleft-teal.svg +111 -0
  122. package/dist/img/theme-images/phy/background.svg +150 -0
  123. package/dist/img/theme-images/phy/tape-style1.svg +8 -0
  124. package/dist/img/theme-images/reading/bg10.jpg +0 -0
  125. package/dist/js/scripts2.js +1 -1552
  126. package/dist/js/themes/blobs.js +1 -0
  127. package/dist/js/themes/cas.js +1 -0
  128. package/dist/js/themes/chm.js +1 -0
  129. package/dist/js/themes/ecn.js +1 -13
  130. package/dist/js/themes/hrs.js +1 -19
  131. package/dist/plugins/fancybox/fancybox-example.html +1 -1
  132. package/dist/plugins/fancybox/helpers/jquery.fancybox-buttons.js +2 -122
  133. package/dist/plugins/fancybox/helpers/jquery.fancybox-media.js +2 -201
  134. package/dist/plugins/fancybox/helpers/jquery.fancybox-thumbs.js +2 -165
  135. package/dist/plugins/fancybox/jquery.fancybox.js +2 -2018
  136. package/dist/plugins/fancybox/jquery.fancybox.pack.js +2 -46
  137. package/dist/plugins/flashcards/flashcards-example.html +1 -1
  138. package/dist/plugins/flashcards/js/flash_cards.min.js +1 -12
  139. package/dist/plugins/flashcards/js/plugins/flash_cards.js +1 -62
  140. package/dist/plugins/flashcards/js/plugins/jquery.cycle.js +2 -1148
  141. package/dist/plugins/flashcards/js/vendor/jquery-1.7.2.js +2 -9404
  142. package/dist/plugins/flashcards/js/vendor/jquery-1.7.2.min.js +2 -4
  143. package/dist/plugins/flashcards/js/vendor/modernizr-2.5.3.min.js +1 -4
  144. package/dist/plugins/floating-particles/floating-particles.js +1 -68
  145. package/dist/plugins/global-homepage-overrides/global-homepage-overrides.js +1 -53
  146. package/dist/plugins/preview-banner/preview-banner.js +1 -57
  147. package/package.json +12 -16
  148. package/dist/js/jumpTo.js +0 -4
  149. package/dist/js/scripts-ts.js +0 -1
  150. package/dist/js/scripts.js +0 -327
  151. package/dist/js/themes/ss.js +0 -197
@@ -1,197 +0,0 @@
1
- // JS specifically for the Social Sciences (SS) theme
2
-
3
- // Add items for the button
4
- function replaceButtons() {
5
- const buttons = document.querySelectorAll(".btn");
6
- const vocabBtns = document.querySelectorAll(".vocab-list button");
7
-
8
- vocabBtns.forEach(button => {
9
- button.classList.add("blob-btn");
10
-
11
- const innerSpan = document.createElement("span");
12
- innerSpan.classList.add("blob-btn__inner");
13
-
14
- const blobsSpan = document.createElement("span");
15
- blobsSpan.classList.add("blob-btn__blobs");
16
-
17
- for (let i = 0; i < 4; i++) {
18
- const blob = document.createElement("span");
19
- blob.classList.add("blob-btn__blob");
20
- blobsSpan.appendChild(blob);
21
- }
22
-
23
- innerSpan.appendChild(blobsSpan);
24
- button.appendChild(innerSpan);
25
-
26
- })
27
-
28
- buttons.forEach(button => {
29
- // Create the elements for the new structure
30
- const newButton = document.createElement("a");
31
- newButton.classList.add("blob-btn");
32
-
33
- // Create a new span element for the original button text
34
- const originalTextSpan = document.createElement("span");
35
- originalTextSpan.classList.add("original-text");
36
- originalTextSpan.textContent = button.textContent;
37
-
38
- // Copy the original button's href attribute
39
- const hrefAttribute = button.getAttribute("href");
40
-
41
- if (hrefAttribute) {
42
- newButton.setAttribute("href", hrefAttribute);
43
- }
44
-
45
- const innerSpan = document.createElement("span");
46
- innerSpan.classList.add("blob-btn__inner");
47
-
48
- const blobsSpan = document.createElement("span");
49
- blobsSpan.classList.add("blob-btn__blobs");
50
-
51
- for (let i = 0; i < 4; i++) {
52
- const blob = document.createElement("span");
53
- blob.classList.add("blob-btn__blob");
54
- blobsSpan.appendChild(blob);
55
- }
56
-
57
- innerSpan.appendChild(blobsSpan);
58
- newButton.appendChild(originalTextSpan); // Add the original button text
59
- newButton.appendChild(innerSpan);
60
-
61
- // Replace the existing button with the new structure
62
- button.parentNode.replaceChild(newButton, button);
63
- });
64
- }
65
-
66
- replaceButtons();
67
-
68
- // Create and add the SVG to HTML document
69
- const svgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
70
- svgElement.setAttribute("xmlns", "http://www.w3.org/2000/svg");
71
- svgElement.setAttribute("version", "1.1");
72
- svgElement.style.display = "none"; // Hide the SVG
73
- document.body.appendChild(svgElement);
74
-
75
- // Create and add the filter definition to the SVG
76
- const svgDefs = document.createElementNS("http://www.w3.org/2000/svg", "defs");
77
- svgElement.appendChild(svgDefs);
78
-
79
- const filter = document.createElementNS("http://www.w3.org/2000/svg", "filter");
80
- filter.setAttribute("id", "goo");
81
- svgDefs.appendChild(filter);
82
-
83
- const feGaussianBlur = document.createElementNS("http://www.w3.org/2000/svg", "feGaussianBlur");
84
- feGaussianBlur.setAttribute("in", "SourceGraphic");
85
- feGaussianBlur.setAttribute("result", "blur");
86
- feGaussianBlur.setAttribute("stdDeviation", "10");
87
- filter.appendChild(feGaussianBlur);
88
-
89
- const feColorMatrix = document.createElementNS("http://www.w3.org/2000/svg", "feColorMatrix");
90
- feColorMatrix.setAttribute("in", "blur");
91
- feColorMatrix.setAttribute("mode", "matrix");
92
- feColorMatrix.setAttribute("values", "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 21 -7");
93
- feColorMatrix.setAttribute("result", "goo");
94
- filter.appendChild(feColorMatrix);
95
-
96
- const feBlend = document.createElementNS("http://www.w3.org/2000/svg", "feBlend");
97
- feBlend.setAttribute("in2", "goo");
98
- feBlend.setAttribute("in", "SourceGraphic");
99
- feBlend.setAttribute("result", "mix");
100
- filter.appendChild(feBlend);
101
-
102
- // Add items for text container for header
103
- const header = document.querySelector(".header");
104
-
105
- const root = document.documentElement; // Get the root element (HTML or :root)
106
-
107
- const colorPrimary = getComputedStyle(root).getPropertyValue('--color-primary');
108
- const colorSecondary = getComputedStyle(root).getPropertyValue('--color-secondary');
109
- const colorQuaternary = getComputedStyle(root).getPropertyValue('--color-quaternary');
110
-
111
- // Function to create and append an SVG element to a container with attributes and path content
112
- function appendSVG(container, width, height, viewBox, pathContent, fillColor, addedClass) {
113
- // Create a new SVG element
114
- const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
115
- svg.setAttribute("width", width);
116
- svg.setAttribute("height", height);
117
- svg.setAttribute("viewBox", viewBox);
118
- svg.classList.add(addedClass);
119
-
120
- // Create the path element
121
- const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
122
- path.setAttribute("fill", fillColor);
123
- path.setAttribute("d", pathContent);
124
-
125
- // Append the path to the SVG
126
- svg.appendChild(path);
127
-
128
- // Append the SVG to the container
129
- container.appendChild(svg);
130
- }
131
-
132
- //Text container blobs
133
- const textContainerSmallBlobSVG = `
134
- <svg width="520" height="459" viewBox="0 0 520 459" fill="none" xmlns="http://www.w3.org/2000/svg">
135
- <path fill-rule="evenodd" clip-rule="evenodd" d="M518.747 292.757C511.163 363.898 440.15 404.891 377.856 437.098C326.398 463.702 270.615 462.018 214.356 450.131C145.576 435.598 67.8836 426.477 32.6383 364.155C-8.37421 291.635 -10.4849 197.618 30.2012 124.499C71.6254 50.0538 151.869 1.46188 235.136 0.237608C309.302 -0.852853 359.552 65.0224 411.778 118.889C461.313 169.98 526.413 220.85 518.747 292.757Z" fill="${colorPrimary}"/>
136
- </svg>`;
137
-
138
- const textContainerLargeBlobSVG = `<svg width="1024" height="285" viewBox="0 0 1024 285" fill="none" xmlns="http://www.w3.org/2000/svg">
139
- <path fill-rule="evenodd" clip-rule="evenodd" d="M514.156 49.6823C564.805 56.965 616.051 59.1393 668.904 64.096C762.93 72.9141 878.419 64.6177 944.009 89.9955C1015.02 117.472 1043.01 160.905 1010.6 196.305C978.193 231.716 875.223 252.546 780.388 268.761C697.795 282.883 602.567 289.866 514.156 281.188C436.033 273.519 409.15 238.597 337.375 225.273C243.966 207.934 105.924 223.16 41.923 193.526C-22.351 163.765 -2.11912 119.429 32.3376 84.0315C66.4424 48.9954 126.608 8.23296 229.425 0.903027C335.419 -6.65334 414.006 35.2816 514.156 49.6823Z" fill="${colorPrimary}"/>
140
- </svg>
141
- `;
142
-
143
- // SVG content for "small blob"
144
- const smallBlobSVG = `
145
- M192.013 7.52222C214.383 27.4062 184.038 72.2918 203.388 95.132C223.515 118.891 277.432 95.6132 290.57 123.857C301.863 148.137 264.142 169.094 247.593 190.168C235.224 205.919 222.205 220.428 205.763 231.852C190.226 242.647 173.165 249.94 154.841 254.61C135.115 259.637 115.381 261.357 95.0731 260.059C68.3899 258.355 32.8537 267.757 17.5267 245.837C1.76764 223.3 31.5572 192.865 28.9319 165.469C26.5454 140.566 -8.77626 118.326 3.20184 96.3545C15.9424 72.984 56.4801 89.4153 78.5187 74.5108C97.6061 61.6021 97.8281 30.652 117.67 18.9405C139.648 5.96868 172.953 -9.4198 192.013 7.52222Z`;
146
-
147
- // SVG content for "tallBlob"
148
- const tallBlobSVG = `
149
- M122.209 11.1194C145.616 1.52446 173.459 -9.48853 193.008 14.1527C212.611 37.8602 211.527 86.7738 217.321 126.143C222.085 158.521 224.726 190.244 223.825 223.561C222.835 260.165 222.737 297.625 211.823 329.361C199.641 364.788 182.152 396.846 159.319 411.148C135.807 425.875 109.654 420.299 85.5729 408.442C61.4883 396.583 36.8662 378.545 22.6348 343.846C8.88936 310.332 13.78 266.304 10.7226 225.942C7.72455 186.365 -7.70321 142.971 4.85214 109.093C17.6055 74.681 49.0013 82.3697 70.621 64.3208C89.0654 48.9228 102.197 19.3226 122.209 11.1194Z`;
150
-
151
- appendSVG(header, "293", "261", "0 0 293 261", smallBlobSVG, colorSecondary, "small-blob");
152
- appendSVG(header, "224", "420", "0 0 224 420", tallBlobSVG, colorQuaternary, "tall-blob");
153
-
154
- // Encode the textContainerBlobSVG as a data URI
155
- const encodedTextContainerSmallBlobSVG = 'url("data:image/svg+xml,' + encodeURIComponent(textContainerSmallBlobSVG) + '")';
156
- const encodedTextContainerLargeBlobSVG = 'url("data:image/svg+xml,' + encodeURIComponent(textContainerLargeBlobSVG) + '")';
157
-
158
- // Select your HTML element
159
- const textContainer = document.querySelector(".text-container");
160
- const hasLargeClass = header.classList.contains('large');
161
-
162
-
163
- // Apply the background image to the HTML element
164
- if (hasLargeClass) {
165
- // The element has the 'large' class
166
- textContainer.style.backgroundImage = encodedTextContainerLargeBlobSVG;
167
- } else {
168
- // The element does not have the 'large' class
169
- textContainer.style.backgroundImage = encodedTextContainerSmallBlobSVG;
170
- }
171
-
172
- //Media Queries for changing SVG background images via JS
173
- // Function to handle viewport width changes
174
- function handleViewportChanges() {
175
- const viewportWidth = window.innerWidth;
176
-
177
- if (viewportWidth > 1000) {
178
- if (hasLargeClass) {
179
- // The element has the 'large' class
180
- textContainer.style.backgroundImage = encodedTextContainerLargeBlobSVG;
181
- } else {
182
- // The element does not have the 'large' class
183
- textContainer.style.backgroundImage = encodedTextContainerSmallBlobSVG;
184
- }
185
- }
186
- if (viewportWidth <= 1000) {
187
- textContainer.style.backgroundImage = encodedTextContainerLargeBlobSVG;
188
- } else if (viewportWidth <= 768) {
189
- textContainer.style.backgroundImage = "none";
190
- }
191
- }
192
-
193
- // Initial check on page load
194
- handleViewportChanges();
195
-
196
- // Add event listener to track changes in viewport width
197
- window.addEventListener("resize", handleViewportChanges);