Skip to content

Commit d0eafb7

Browse files
committed
update description
1 parent 3f85d28 commit d0eafb7

3 files changed

Lines changed: 25 additions & 6 deletions

File tree

ims-education.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,12 @@
465465
id="ims-fundamentals-april-2025"
466466
name="IMS Database Recovery Control (DBRC)"
467467
session="June 2025 session"
468-
desc="This live course runs for 9 sessions, 4 hours each day. It describes the benefits of DBRC and the
468+
desc="<p>This live course runs for 9 sessions, 4 hours each day. It describes the benefits of DBRC and the
469469
activities required to configure, implement, and manage Database Recovery Control (DBRC). DBRC is an
470470
IMS facility that provides database recovery and facilitates database sharing, between IMS systems in
471471
all IMS environments, but this class is most applicable for Database/Transaction Management (DB/TM),
472-
Database Control (DBCTL), and batch IMS systems. This is an intermediate to advanced IMS class that is
473-
intended for IMS DBAs and system programmers."
472+
Database Control (DBCTL), and batch IMS systems.</p> <p>This is an intermediate to advanced IMS class that is
473+
intended for IMS DBAs and system programmers.</p>"
474474
imgsrc="wp-content/icons/icon_education.svg"
475475
selfpaced="false"
476476
level="Intermediate"

web-components/course-card/course-card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div>
99
<h2 class="course-name"></h2>
1010
<h3 class="live-session"></h3>
11-
<p class="course-desc"></p>
11+
<span class="course-desc"></span>
1212
<div class="column-g">
1313
<div class="inline-g">
1414
<p><b><span class="course-type"></span></b> Yes</p>

web-components/course-card/course-card.js

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@ function createComponent(html) {
2222
selector.textContent = content;
2323
}
2424

25+
/**
26+
* Sets the content of an element based on a CSS selector.
27+
* @param {string} cssSelector - The CSS selector of the element to set the content for.
28+
* @param {string} content - The content to set for the element.
29+
* @param {boolean} shadow - A boolean indicating whether to use the shadow DOM for the element.
30+
* @returns {void}
31+
*/
32+
function setDesc(cssSelector, content, shadow) {
33+
const selector = shadow.querySelector(cssSelector);
34+
// Check if span tag is used in desc
35+
if ((content != undefined) && (content.includes('<p>'))) {
36+
// Update HTML
37+
selector.innerHTML = content;
38+
} else {
39+
const paragraph = '<p>' + content + '</p>';
40+
// Update the text
41+
selector.innerHTML = paragraph;
42+
}
43+
}
44+
2545
/**
2646
* Sets the link of an element based on a CSS selector.
2747
* @param {string} cssSelector - The CSS selector of the element to set the link for.
@@ -97,7 +117,7 @@ function createComponent(html) {
97117
// Set session for live course
98118
setContent('.live-session', this.session, shadow);
99119
// Set course desc
100-
setContent('.course-desc', this.desc, shadow);
120+
setDesc('.course-desc', this.desc, shadow);
101121
// Set course level
102122
setContent('.course-level', this.level, shadow);
103123
// Set course type
@@ -129,7 +149,6 @@ function createComponent(html) {
129149
// Set register link
130150
linkText = 'Register →'
131151
setLink('.register-link', this.registerlink, this.name, 'Register →', shadow);
132-
133152
}
134153
}
135154
}

0 commit comments

Comments
 (0)