Skip to content

Commit da10a67

Browse files
authored
Merge pull request #77 from imsdev/ims-security-course
IMS Security course
2 parents 1672484 + 008a941 commit da10a67

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

ims-education.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
linktext="Sign up for an IBM ID →"
9191
link="https://login.ibm.com/authsvc/mtfim/sps/authsvc?PolicyId=urn:ibm:security:authentication:asf:basicldapuser&Target=https%3A%2F%2Flogin.ibm.com%2Foidc%2Fendpoint%2Fdefault%2Fauthorize%3FqsId%3D9fe3fe66-c22f-4c7b-8e5d-01dfc0e8defa%26client_id%3DMyIBMDallasProdCI"
9292
highlight="Implementing IMS Security"
93+
highlightsub="Available now!"
9394
highlightlink="#ims-security"
9495
></hero-section>
9596

web-components/hero-section/hero-section.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2 class="name"></h2>
2020
<div class="highlight-card">
2121
<div>
2222
<img src="wp-content/icons/icon_event.svg" alt="">
23-
<h3>Available now!</h3>
23+
<h3 class="highlight-sub"></h3>
2424
</div>
2525
<h2 class="highlight"></h2>
2626
<a class="highlight-link" rel="noopener noreferrer">See details</a>

web-components/hero-section/hero-section.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ function createComponent(html) {
7070
// Creates element with default values
7171
constructor() {
7272
super();
73+
this.highlightsub = 'Coming soon';
7374
}
7475

7576
/**
7677
* Returns an array of properties to observe.
7778
* @returns {Array} An array of property names.
7879
*/
7980
static get observedAttributes() {
80-
return ['name', 'image', 'section', 'desc', 'linktext', 'link', 'linktext2', 'link2', 'highlight', 'highlightlink'];
81+
return ['name', 'image', 'section', 'desc', 'linktext', 'link', 'linktext2', 'link2', 'highlight', 'highlightsub', 'highlightlink'];
8182
}
8283

8384
/**
@@ -114,6 +115,7 @@ function createComponent(html) {
114115

115116
// Display highlight card if content is provided
116117
if (this.highlight != undefined) {
118+
setContent('.highlight-sub', this.highlightsub, shadow);
117119
setContent('.highlight', this.highlight, shadow);
118120
setLink('.highlight-link', this.highlightlink, shadow, this.highlight);
119121
hero.classList.add('hero-highlight');

0 commit comments

Comments
 (0)