Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix for workflow carousel converter #789

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,124 +7,124 @@
<p>Leverage an extensive portfolio and accelerate Cell Line Development.</p>
<div class="workflow-carousel">
<div>
<div><a href="/us/en/solutions/mabs/cell-line-development/process-steps.html">View All Steps</a></div>
<div><a href="/us/en/solutions/mabs/cell-line-development/process-steps.html" title="link">View All Steps</a></div>
</div>
<div>
<div>01</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/vector-construction.jpg" alt="Danaher Corporation">
</p>
<p><strong>01</strong></p>
<p>Vector Construction</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/vector-construction.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>02</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/sequence-verification.jpg" alt="Danaher Corporation">
</p>
<p><strong>02</strong></p>
<p>Sequence Verification</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/sequence-verification.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>03</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/stable-transfection.jpg" alt="Danaher Corporation">
</p>
<p><strong>03</strong></p>
<p>Stable Transfection &#x26; Selection</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/stable-transfection.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>04</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/pool-screening.jpg" alt="Danaher Corporation">
</p>
<p><strong>04</strong></p>
<p>Pool Screening</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/pool-screening.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>05</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/monoclonal-verification.jpg" alt="Danaher Corporation">
</p>
<p><strong>05</strong></p>
<p>Monoclonality Verification</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/monoclonality-verification.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>06</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/selection-stability-expansion.jpg" alt="Danaher Corporation">
</p>
<p><strong>06</strong></p>
<p>Selection Based on Stability/Expansion</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/selection-based-on-stability-expansion.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>07</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/sequence-verification.jpg" alt="Danaher Corporation">
</p>
<p><strong>07</strong></p>
<p>Sequence Verification</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/sequence-verification.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>08</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/antibody-characterization.jpg" alt="Danaher Corporation">
</p>
<p><strong>08</strong></p>
<p>Antibody Characterization</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/antibody-characterization.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>09</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/scale-up-growth-cell-growth-and-selection.jpg" alt="Danaher Corporation">
</p>
<p><strong>09</strong></p>
<p>Scale up – Cell Growth/Expansion</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/scale-up-cell-growth-expansion.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>10</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/sequence-verification.jpg" alt="Danaher Corporation">
</p>
<p><strong>10</strong></p>
<p>Sequence Verification</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/sequence-verification.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>11</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/antibody-characterization.jpg" alt="Danaher Corporation">
</p>
<p><strong>11</strong></p>
<p>Antibody Characterization</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/antibody-characterization.html" title="link">Explore</a></p>
</div>
</div>
<div>
<div>12</div>
<div>
<p>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/solutions/cell-line-development/gmp-master-cell-bank.jpg" alt="Danaher Corporation">
</p>
<p><strong>12</strong></p>
<p>GMP Master Cell Bank</p>
<p><a href="/us/en/solutions/mabs/cell-line-development/process-steps/gmp-master-cell-bank.html" title="link">Explore</a></p>
</div>
Expand Down
23 changes: 13 additions & 10 deletions tools/importer/transformers/workflowCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,44 @@ const createWorkflowCarousel = (main, document) => {
try {
// eslint-disable-next-line no-undef
const carouselLists = JSON.parse(decodeHtmlEntities(carousel.getAttribute('slidedata')));

cells.push(['Workflow Carousel']);
const slides = carouselLists.map((slide) => {
const rightDiv = document.createElement('div');
const divEL = document.createElement('div');

const { image } = slide;
if (image) {
const img = document.createElement('img');
img.src = image;
img.alt = 'Danaher Corporation';
rightDiv.append(img);
divEL.append(img);
}

const cat = document.createElement('div');
const catStrong = document.createElement('strong');
catStrong.textContent = slide.category;
cat.append(catStrong);
if (slide.category) divEL.append(cat);

const title = document.createElement('div');
title.innerHTML = slide.title;
if (slide.title) rightDiv.append(title);
if (slide.title) divEL.append(title);

const { link } = slide;
if (link) {
const anc = document.createElement('a');
anc.title = 'link';
anc.href = link;
anc.textContent = 'Explore';
rightDiv.append(anc);
divEL.append(anc);
}

const leftDiv = document.createElement('div');
const cat = document.createElement('div');
cat.textContent = slide.category;
if (slide.category) leftDiv.append(cat);

return [leftDiv, rightDiv];
return [divEL];
});
const carouselLink = document.createElement('a');
carouselLink.textContent = carousel.getAttribute('text');
carouselLink.href = carousel.getAttribute('link');
carouselLink.title = 'link';
cells.push([carouselLink]);
cells.push(...slides);

Expand Down
Loading