const originalColumns = []; function setPricingColumnsBody(theSelectedProduct) { const columns = document.querySelectorAll('.pricing__bullet-list'); const leftColumn = columns[0]; const rightColumn = columns[1]; const leftBullets = [ 'Continuous vulnerability scanning', 'Modern browser compatibility', '14-day critical patch SLA', ].map(bullet => { return `
${bullet}
`; }); if (theSelectedProduct === 'vue') { leftColumn.innerHTML = leftBullets.join(''); const right_leftBulletItems = [ { icon: 'https://herodevs.github.io/webflow/images/nuxt.png', name: 'Nuxt', }, { icon: 'https://herodevs.github.io/webflow/images/Vuetify.png', name: 'Vuetify', }, { icon: '', name: '' }, ]; const right_rightBulletItems = [ { icon: 'https://herodevs.github.io/webflow/images/BootstrapVue.png', name: 'BootstrapVue', }, { icon: 'https://herodevs.github.io/webflow/images/vuejs.png', name: 'Vue Router', }, { icon: 'https://herodevs.github.io/webflow/images/vuejs.png', name: 'Vuex', }, ]; const getColumn = items => { return `
${items .map(item => { const itemIcon = item.icon ? `` : ` `; const itemName = item.name ? `${item.name}` : ``; const className = item.icon && item.name ? `core-plus-cell` : 'hider'; return `
${itemIcon} ${itemName}
`; }) .join('')}
`; }; rightColumn.innerHTML = `
Everything in Core plus compatibility and security patching for:
${getColumn(right_leftBulletItems)} ${getColumn(right_rightBulletItems)}
`; const parent = document.querySelector('.core-plus-bullet').parentElement.parentElement; const parentClasses = parent.getAttribute('class'); if (!~parentClasses.indexOf('core-plus-parent-container')) { parent.setAttribute( 'class', parentClasses + ' ' + 'core-plus-parent-container', ); } } else if (theSelectedProduct === 'angularjs') { const leftBullets = [ 'Continuous vulnerability scanning', 'Modern browser compatibility', '14-day critical patch SLA', ].map(bullet => { return `
${bullet}
`; }); // Angular UI Components // Angular UI Bootstrap // angular-filter // angular-local-storage // angular-moment leftColumn.innerHTML = leftBullets.join(''); const right_leftBulletItems = [ { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'Angular UI Router', }, { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'Angular UI Bootstrap', }, { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'angular-filter', }, { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'angular-local-storage', }, { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'angular-moment', }, ]; // angular-translate // angular-translate-loader-static-files // Protractor // ui-select // ui-sortable const right_rightBulletItems = [ { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'angular-translate', }, { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'angular-translate-loader-static-files', }, { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'Protractor', }, { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'ui-select', }, { icon: 'https://assets.website-files.com/62865614b39c464b76d339aa/63fe08dd56f1ef2552260c0c_check_circle.svg', name: 'ui-sortable', }, ]; const getColumn = items => { return `
${items .map(item => { const itemIcon = item.icon ? `` : ` `; const itemName = item.name ? `${item.name}` : ``; const className = item.icon && item.name ? `core-plus-cell` : 'hider'; return `
${itemIcon} ${itemName}
`; }) .join('')}
`; }; rightColumn.innerHTML = `
Everything in Core plus compatibility and security patching for:
${getColumn(right_leftBulletItems.concat(right_rightBulletItems))}
`; const parent = document.querySelector('.core-plus-bullet').parentElement.parentElement; const parentClasses = parent.getAttribute('class'); if (!~parentClasses.indexOf('core-plus-parent-container')) { parent.setAttribute( 'class', parentClasses + ' ' + 'core-plus-parent-container', ); } } else { // pricingColumnNodes.forEach((column, i) => { // column.innerHTML = originalColumns[i].innerHTML; // }); } // } if ( ~window.location.href.indexOf('support/nes-vue') || ~window.location.href.indexOf('support/nes-angularjs') ) { const leftPricingColumnHeader = document.getElementById('left-column-header'); const rightPricingColumnHeader = document.getElementById( 'right-column-header', ); leftPricingColumnHeader.innerText = 'Core'; rightPricingColumnHeader.innerText = 'Core + Essentials'; const productTheeStallion = ~window.location.href.indexOf('support/nes-vue') ? 'vue' : ~window.location.href.indexOf('support/nes-angularjs') ? 'angularjs' : ''; setPricingColumnsBody(productTheeStallion); } else { setPricingColumnsBody(); }