Skip to content
Open
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
6 changes: 3 additions & 3 deletions _layouts/pricing.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,23 +485,23 @@ <h2>Add-ons</h2>
<div class="card">
<img src="/images/pricing/edge-add-on-icon.svg" alt="Edge add on icon">
<div class="text">
<h3 data-faq-id="${addOnsPricing[product].edge.faq}" data-faq-link-size="50%" data-faq-tooltip="Run a local on-prem instance to keep operations running even when the internet is down.">Edge Computing</h3>
<h3 class="faq" data-faq-id="${addOnsPricing[product].edge.faq}" data-faq-tooltip="Run a local on-prem instance to keep operations running even when the internet is down.">Edge Computing<a class="faq-link faq-link-50"></a></h3>
<p>Process data where it is collected</p>
<p>Starting from <span>${edgePrice}</span></p>
</div>
</div>
<div class="card">
<img src="/images/pricing/trendz-add-on-icon.svg" alt="Trendz add on icon">
<div class="text">
<h3 data-faq-id="${addOnsPricing[product].trendz.faq}" data-faq-link-size="50%" data-faq-tooltip="Turn raw IoT data into actionable insights with advanced analytics and trend prediction.">Trendz Analytics</h3>
<h3 class="faq" data-faq-id="${addOnsPricing[product].trendz.faq}" data-faq-tooltip="Turn raw IoT data into actionable insights with advanced analytics and trend prediction.">Trendz Analytics<a class="faq-link faq-link-50"></a></h3>
<p>Advanced analytics for your solution</p>
<p>Starting from <span>${trendzPrice}</span></p>
</div>
</div>
<div class="card">
<img src="/images/pricing/wl-add-on-icon.svg" alt="White-labeling add on icon">
<div class="text">
<h3 data-faq-id="${addOnsPricing[product].wl.faq}" data-faq-link-size="50%" data-faq-tooltip="Launch a client-ready mobile app under your brand—your name, logo, colors, and a fully polished look & feel—so customers experience your product, not a third-party app.">White-labeled Mobile App</h3>
<h3 class="faq" data-faq-id="${addOnsPricing[product].wl.faq}" data-faq-tooltip="Launch a client-ready mobile app under your brand—your name, logo, colors, and a fully polished look & feel—so customers experience your product, not a third-party app.">White-labeled Mobile App<a class="faq-link faq-link-50"></a></h3>
<p>Сustomizable mobile application</p>
<p>${wlPrice}</p>
</div>
Expand Down
10 changes: 3 additions & 7 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@ var tb = (function () {
$('[data-faq-id]').each(function () {
let faqAnchor = this;
let nodeId = this.getAttribute('data-faq-id');
let fontSize = this.getAttribute('data-faq-link-size') || 'smaller';
let faqLink = newDOMElement('a', 'faq-link');
$(faqLink).css('fontSize', fontSize);
faqAnchor.appendChild(faqLink);
let faqLink = $(faqAnchor).children('a')[0];
$(faqLink).on('click', function() {
navigateToFaq(nodeId);
});
Expand All @@ -178,10 +175,9 @@ var tb = (function () {
let nodeId = this.getAttribute('data-faq-id');
let faqLink = $(faqAnchor).children('a')[0];
let contentSource = document.querySelector('div[data-item-id="' + nodeId + '"] .container');

if (contentSource) {
let customTooltip = this.getAttribute('data-faq-tooltip');
if (contentSource || customTooltip) {
let fullText = $(contentSource).text().trim().replace(/\s+/g, ' ');
let customTooltip = this.getAttribute('data-faq-tooltip');
let charsPerLine = 24;
let maxLines = 5;
let maxChars = charsPerLine * maxLines;
Expand Down
Loading