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

512 Updated converter to get card on application page #513

Merged
merged 7 commits into from
Nov 29, 2023
Merged
Changes from 1 commit
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
Next Next commit
updated converter to get card on application page
  • Loading branch information
rgravitvl committed Nov 29, 2023
commit c3ab34a27419780d99bf1bf25b59ce059c5562de
Original file line number Diff line number Diff line change
@@ -34,8 +34,20 @@ <h1>Synthetic Biology</h1>
</div>
</div>
<hr>
<hr>
<h1>Synthetic Biology Solutions</h1>
<p>To learn more about how Danaher Life Sciences companies facilitate synthetic biology workflows visit:</p>
<div class="cards articlecard">
<div>
<div>
<img src="https://s7d9.scene7.com/is/image/danaherstage/plasmid-dna-hero" alt="Danaher Corporation">
</div>
<div>
<h3>Plasmid DNA Development and Manufacturing</h3>
<p>High quality plasmid vectors are the essential building blocks of life-saving biologics like mRNA drugs, monoclonal antibodies and immunotherapies. <a href="/us/en/solutions/pdna-synthesis.html">View Solution</a></p>
</div>
</div>
</div>
<div class="section-metadata">
<div>
<div>style</div>
2 changes: 1 addition & 1 deletion tools/importer/transformers/cards.js
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
const createCards = (main, document) => {
main.querySelectorAll('fulllayout').forEach((fl) => {
const cards = [];
fl.querySelectorAll('grid[columns="3"] > template').forEach((tmp) => {
fl.querySelectorAll('grid[columns="3"] > template ,grid[columns="4"] > template').forEach((tmp) => {
const h2 = tmp.content.querySelector('h2');
const articleCard = tmp.content.querySelector('articlecard');
if (articleCard) {