kcc-gem-theme 1.60.40 → 1.60.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_data/theme_hash.yml +1 -1
- data/_includes/emergency-alerts.html +16 -1
- data/_layouts/default-core.html +2 -4
- data/assets/js/theme/alerts/alerts.js +1 -2
- data/assets/js/theme/alerts/campusAlertsSheetsAPI.js +14 -12
- data/assets/js/theme/{emergency → alerts}/createAlertsHtml.js +0 -0
- data/assets/js/theme/{emergency → alerts}/parseMarkdownToHTML.js +0 -0
- data/assets/js/theme/dist/alerts.bundle.js +1 -1
- data/assets/js/theme/dist/kcc-mega-nav.bundle.js +1 -1
- data/assets/js/theme/dist/kcc-nav.bundle.js +1 -1
- data/assets/js/theme/dist/kcc-theme-landing.bundle.js +1 -1
- data/assets/js/theme/dist/kcc-theme.bundle.js +1 -1
- metadata +4 -11
- data/assets/js/theme/alerts/createCampusAlertsHtml.js +0 -166
- data/assets/js/theme/alerts/gapi.js +0 -17
- data/assets/js/theme/alerts/trackAlertsCloseClicks.js +0 -26
- data/assets/js/theme/dist/kcc-alerts.bundle.js +0 -1
- data/assets/js/theme/emergency/alerts.js +0 -5
- data/assets/js/theme/emergency/campusAlertsSheetsAPI.js +0 -41
- data/assets/js/theme/emergency/simpleSetSheetParameters.js +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35adf6dcd42942215de419198e02447bbf78d205469d265c078bc21da632eac6
|
4
|
+
data.tar.gz: 78274a9219742670de8f4327d2a55f8a4f010622ce15c5df153b7ba73f1b7715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0289983ed56028802e81b3637a6480cf2c00c57b9dd5ebd8c408e6910f407dddf0d3301199d349abba1e0a7820a2c6137232c71608b5d653b31398f831d5d04
|
7
|
+
data.tar.gz: dfc396d926503137dfb685c1503cbe02a3ff825f82558432220b67b085d637bd88bb65035dc120ab99f69d35370058e7742cbf1c7b428c442505cb0984faa4ee
|
data/_data/theme_hash.yml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
0d5f1ce6602401783caf
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div id="emergencyAlerts" class="position__offset-alert">
|
1
|
+
<div id="emergencyAlerts" class="position__offset-alert{% if site.core_site == true %} position__offset-alert-core{% endif %}{% if site.core_root == true %} position__offset-alert-core--root{% endif %}">
|
2
2
|
<!-- Alerts get built here via JS if they are set to be active -->
|
3
3
|
{% comment %}
|
4
4
|
<div class="container position__offset-alert">
|
@@ -12,3 +12,18 @@
|
|
12
12
|
</div>
|
13
13
|
{% endcomment %}
|
14
14
|
</div>
|
15
|
+
{% comment %}
|
16
|
+
|
17
|
+
<!-- TODO:
|
18
|
+
|
19
|
+
AFTER CORE IS LAUNCHED
|
20
|
+
|
21
|
+
REMOVE:
|
22
|
+
```
|
23
|
+
{% if site.core_site == true %} position__offset-alert-core{% endif %}{% if site.core_root == true %} position__offset-alert-core--root{% endif %}
|
24
|
+
```
|
25
|
+
(ALSO REMOVE FROM CONFIG)
|
26
|
+
|
27
|
+
ENDTODO -->
|
28
|
+
|
29
|
+
{% endcomment %}
|
data/_layouts/default-core.html
CHANGED
@@ -14,15 +14,13 @@
|
|
14
14
|
{% include scripts/google-noscript.html %}
|
15
15
|
{% if site.translate == true %}{% include translate.html %}{% endif %}
|
16
16
|
{% include header-global.html %}
|
17
|
-
{% include alerts.html %}
|
17
|
+
{% include emergency-alerts.html %}
|
18
18
|
{{ content }}
|
19
19
|
{% include footer.html %}
|
20
20
|
{% include scripts/vendor-cdn.html %}
|
21
21
|
{% include scripts/kcc-mega-nav.html %}
|
22
|
-
{% if page.homepage == true %}
|
23
22
|
{% include scripts/google-api.html %}
|
24
|
-
{% include scripts/
|
25
|
-
{% endif %}
|
23
|
+
{% include scripts/emergency-alerts.html %}
|
26
24
|
{% include scripts/kcc-theme.html %}
|
27
25
|
{% if page.sheet_key %}
|
28
26
|
{% include scripts/table-cdn.html %}
|
@@ -1,11 +1,21 @@
|
|
1
1
|
import setSheetParameters from './simpleSetSheetParameters.js';
|
2
|
-
import
|
3
|
-
import trackAlertsCloseClicks from './trackAlertsCloseClicks.js';
|
2
|
+
import createAlertsHtml from './createAlertsHtml.js';
|
4
3
|
|
5
|
-
const SHEET_KEY = '
|
4
|
+
const SHEET_KEY = '1plXBiZY5pVbhNT-mszxEuqCl4zy8wMnz9gXXbbT_yLs';
|
6
5
|
const SHEET_TAB_NAME = 'Alerts';
|
6
|
+
const EMERGENCY_ALERT_DIV_ID = 'emergencyAlerts'
|
7
7
|
|
8
8
|
function start() {
|
9
|
+
if ( ! document.getElementById(EMERGENCY_ALERT_DIV_ID) )
|
10
|
+
return;
|
11
|
+
|
12
|
+
//var t0 = performance.now();
|
13
|
+
init();
|
14
|
+
//var t1 = performance.now();
|
15
|
+
//console.info("Call to 'init' took " + (t1 - t0) + " milliseconds.");
|
16
|
+
}
|
17
|
+
|
18
|
+
function init() {
|
9
19
|
const params = {
|
10
20
|
'apiKey': 'AIzaSyCEBsbXfFcdbkASlg-PodD1rT_Fe3Nw62A',
|
11
21
|
'discoveryDocs': ['https://www.googleapis.com/discovery/v1/apis/sheets/v4/rest']
|
@@ -16,15 +26,7 @@ function start() {
|
|
16
26
|
function execute() {
|
17
27
|
return gapi.client.sheets.spreadsheets.values.get(sheetParams)
|
18
28
|
.then(function(response) {
|
19
|
-
|
20
|
-
// Do stuff with the response here
|
21
|
-
// returned array of arrays w/ values = response.result.values
|
22
|
-
createCampusAlertsHtml(response, resolve);
|
23
|
-
});
|
24
|
-
createCampusAlertsPromise.then(() => {
|
25
|
-
// Do stuff after you handled the response here
|
26
|
-
trackAlertsCloseClicks();
|
27
|
-
});
|
29
|
+
createAlertsHtml(response);
|
28
30
|
},
|
29
31
|
function(err) {
|
30
32
|
console.error("Execute error", err);
|
File without changes
|
File without changes
|
@@ -1 +1 @@
|
|
1
|
-
!function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=165)}([function(t,n,r){(function(n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||Function("return this")()}).call(this,r(77))},function(t,n,r){var e=r(6);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n,r){var e=r(0),o=r(34),i=r(4),u=r(29),c=r(35),a=r(55),f=o("wks"),s=e.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(0),o=r(26).f,i=r(10),u=r(11),c=r(33),a=r(51),f=r(40);t.exports=function(t,n){var r,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(r=y?e:h?e[d]||c(d,{}):(e[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(r,s,p,t)}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(8),o=r(45),i=r(1),u=r(27),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(i(t),n=u(n,!0),i(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(3);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n){t.exports=!1},function(t,n,r){var e=r(8),o=r(7),i=r(21);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(0),o=r(10),i=r(4),u=r(33),c=r(38),a=r(16),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,r,c){var a=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof n||i(r,"name")||o(r,"name",n),s(r).source=l.join("string"==typeof n?n:"")),t!==e?(a?!p&&t[n]&&(f=!0):delete t[n],f?t[n]=r:o(t,n,r)):f?t[n]=r:u(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,n,r){var e=r(43),o=r(22);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(52),o=r(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e,o,i,u=r(67),c=r(0),a=r(6),f=r(10),s=r(4),l=r(28),p=r(23),v=c.WeakMap;if(u){var d=new v,y=d.get,h=d.has,g=d.set;e=function(t,n){return g.call(d,t,n),n},o=function(t){return y.call(d,t)||{}},i=function(t){return h.call(d,t)}}else{var x=l("state");p[x]=!0,e=function(t,n){return f(t,x,n),n},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!a(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,n,r){var e=r(22);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(14);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 0:return function(){return t.call(n)};case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(1),o=r(80),i=r(20),u=r(18),c=r(68),a=r(79),f=function(t,n){this.stopped=t,this.result=n};(t.exports=function(t,n,r,s,l){var p,v,d,y,h,g,x,b=u(n,r,s?2:1);if(l)p=t;else{if("function"!=typeof(v=c(t)))throw TypeError("Target is not iterable");if(o(v)){for(d=0,y=i(t.length);y>d;d++)if((h=s?b(e(x=t[d])[0],x[1]):b(t[d]))&&h instanceof f)return h;return new f(!1)}p=v.call(t)}for(g=p.next;!(x=g.call(p)).done;)if("object"==typeof(h=a(p,b,x.value,s))&&h&&h instanceof f)return h;return new f(!1)}).stop=function(t){return new f(!0,t)}},function(t,n,r){var e=r(25),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports={}},function(t,n){t.exports={}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(8),o=r(50),i=r(21),u=r(12),c=r(27),a=r(4),f=r(45),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=u(t),n=c(n,!0),f)try{return s(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,r){var e=r(6);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(34),o=r(29),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+e).toString(36)}},function(t,n,r){var e=r(53),o=r(36).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e,o=r(1),i=r(93),u=r(36),c=r(23),a=r(71),f=r(39),s=r(28),l=s("IE_PROTO"),p=function(){},v=function(t){return" |