kcc-gem-theme 1.51.32 → 1.51.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/theme_hash.yml +1 -1
- data/assets/css/kcc-theme.css +3145 -1
- data/assets/css/translate.css +102 -1
- data/assets/js/theme/dist/alerts.bundle.js +1709 -1
- data/assets/js/theme/dist/kcc-alerts.bundle.js +1878 -1
- data/assets/js/theme/dist/kcc-mega-nav.bundle.js +1295 -1
- data/assets/js/theme/dist/kcc-nav.bundle.js +1425 -1
- data/assets/js/theme/dist/kcc-theme-landing.bundle.js +748 -1
- data/assets/js/theme/dist/kcc-theme.bundle.js +1260 -1
- data/assets/js/theme/emergency/campusAlertsSheetsAPI.js +1 -1
- data/assets/js/theme/emergency/parseMarkdownToHTML.js +11 -3
- metadata +1 -1
@@ -2,7 +2,7 @@ import setSheetParameters from './simpleSetSheetParameters.js';
|
|
2
2
|
import createAlertsHtml from './createAlertsHtml.js';
|
3
3
|
|
4
4
|
const SHEET_KEY = '1plXBiZY5pVbhNT-mszxEuqCl4zy8wMnz9gXXbbT_yLs';
|
5
|
-
const SHEET_TAB_NAME = 'Alerts';
|
5
|
+
const SHEET_TAB_NAME = 'Alerts Testing';
|
6
6
|
const EMERGENCY_ALERT_DIV_ID = 'emergencyAlerts'
|
7
7
|
|
8
8
|
function start() {
|
@@ -32,8 +32,8 @@ function createAnchorElements(string) {
|
|
32
32
|
return string = string.replace(/\[(?<linkText>[^\]]*)\]\((?<linkHref>[^\)]*)\)/g, '<a href="$<linkHref>" target="_blank" rel="noopener noreferrer">$<linkText></a>');
|
33
33
|
}
|
34
34
|
|
35
|
-
function replacer(match, p1
|
36
|
-
if ( p1 === '' ) { //
|
35
|
+
function replacer(match, p1) {
|
36
|
+
if ( p1 === '' ) { // Filters out the '__' (double underscore) matches.
|
37
37
|
return match;
|
38
38
|
} else {
|
39
39
|
for (var el in INLINE_MARKDOWN_ELEMENTS_OBJECT) {
|
@@ -54,8 +54,16 @@ function createInlineElements(string) {
|
|
54
54
|
return string;
|
55
55
|
}
|
56
56
|
|
57
|
+
function paragraphReplacer(match, p1) {
|
58
|
+
if ( p1 === '' ) { // Filters out blank lines
|
59
|
+
return match;
|
60
|
+
} else {
|
61
|
+
return match.replace(/^(.*)$/gm, '<p class="typography__alert">$1</p>');
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
57
65
|
function createParagraphElements(string) {
|
58
|
-
return string = string.replace(
|
66
|
+
return string = string.replace(/^(.*)$/gm, paragraphReplacer);
|
59
67
|
}
|
60
68
|
|
61
69
|
function parseMarkdownToHTML(string) {
|