Spring fever: 3-month free hosting trial + domains up to 90% off first year compared to year 2. **

Claim offer
.co.uk
£ 1.99 £ 11.99 /1st year
.com
£ 1.99 £ 19.99 /1st year

Log in

Control Panel Webmail Website Builder Online Shop File Manager WordPress
alt text

This is the story of Alf

Danish bike shop owner Alf Henriksen started greenrider.dk – a shop that converts regular bicycles into electric bikes. Hear his success story and how he turned his dream into reality.

Why start your journey at one.com?

Online solutions should never be confusing or difficult. With one.com, it’s easy to start growing your business, even without technical skills. Still, need help? Our support teams are dedicated to providing you with first-class assistance. Whatever your question.

View all plans
Why start your journey at one.com?Why start your journey at one.com?
All the way to online successAll the way to online success

All the way to online success

1. Start

Kick-start your success today by registering the perfect domain name. If you already own a domain name, we’ll help you transfer it.

Find your name
2. Build

Build your website with the simple Website Builder or more advanced WordPress. Create a beautiful, responsive site in just a few steps.

Choose your tool
3. Grow

Grow your customer base. You’ve put in the effort of creating something you are proud of, and now you want the world to see it.

Market your site

The right help when you need it

Help centre
Help centre

Find the answer to your question in our help articles.

Chat with us
Chat with us

We are always here to help you. 24/7 – 365 days a year.

Academy
Academy

Learn more about websites with in-depth guides and tips & tricks.

Contact
Contact

Whatever your question, we will respond within 24 hours all year round.

The right help when you need itThe right help when you need it
Help centre
Help centre

Find the answer to your question in our help articles.

Chat with us
Chat with us

We are always here to help you. 24/7 – 365 days a year.

The right help when you need it
Academy
Academy

Learn more about websites with in-depth guides and tips & tricks.

Contact
Contact

Whatever your question, we will respond within 24 hours all year round.

Our customers like us

Millions of customers trust us with their websites

  • The first choice for domain hosting
  • Reliable online partner
  • 24-hour support

Guru

Pro

Best for businesses

First 3 months 0,-

After that 200,- /mo.

Add to cart
  • 10 websites supported
  • 750 GB SSD storage
  • Unlimited mail accounts with premium features
  • Daily backup & restore
  • Free site protection
  • Free SEO tool
  • Free advanced WordPress tools

Explorer

Best for blogs

First 3 months 0,-

After that 200,- /mo.

Add to cart
  • 1 website supported
  • 100 GB SSD storage
  • Unlimited mail accounts
  • Daily backup
  • 1-click WordPress install

Beginner

Best for small projects

First 3 months 0,-

After that 200,- /mo.

Add to cart
  • 1 website supported
  • 50 GB SSD storage
  • Unlimited mail accounts
  • Daily backup

12-month subscription period with the first 3 months free. Billed yearly.

Included in all plans

3 months’ free hosting

To get you started, our plans include a free hosting trial period for 3 months.

Free website builder

Start building your dream online with our easy-to-use Website Builder.

Free Google Ads credit

Grow your website traffic with Google Ads. Get 1 month free when you sign up.

24/7 support

Our friendly support team is available 24/7, every day of the year.

Free SSL certificate

All our plans include a free SSL certificate. Your website is secure from day 1.

Web Stats

Get insights on how your visitors use your website.

Get a 14 day free trial

Start building your website now with our free 14 day trial of Website Builder. No credit card required!

Frequently Asked Questions

How can I register a domain name?

You can register a domain name using the search bar at the top of this page. Enter your desired name and possibly a top-level domain, and search. You will then see which domain names are still available. Add one or more domain names to your cart and follow the steps in the checkout. When your registration was completed successfully, we will send you an email, and you can get started.

How do I create a website?

You can create a website by purchasing a few things: a domain name, hosting and a website tool. A domain name allows visitors to reach your site. Hosting is needed to display content on your site. And with a website tool, you build your website. Are you a novice builder? With Website Builder, you can create a site without coding. Do you have technical knowledge and want to build freely? Then WordPress suits you best. All our plans include Website Builder. This allows you to start building your website right away.

Which hosting do I need?

Which hosting you need depends on your needs. Are you going to build a simple website? Then the ‘Beginner’ plan is sufficient. Do you want to start a blog? With ‘Explorer’ you can create a blog on WordPress. Do you need powerful resources? For example, because you run several sites? Then choose ‘Enthusiast’ or ‘Guru’. Are you planning to create an online shop? Then choose ‘Beginner’ in combination with the add-on ‘Website Builder Business + E-commerce’.

Do I get email with my website?

Yes, email is included with all our hosting packages. For this, you also need to purchase a domain name. Do you only want professional email with your own domain name? That is possible with email hosting.

Is my website secure?

We help you make your website more secure. With all our hosting plans, you receive a free SSL certificate to ensure a secure website connection for visitors. In the unlikely event that something goes wrong with your site, there is no need to worry. We make daily back-ups of your files, email and databases. We also continuously scan for malware to protect your site against cyberattacks. Want extra security? Then purchase one of SiteLock‘s add-ons: Find or Fix.

In some ways, you are also responsible for the security of your site. For instance, by using a strong password. You will find useful tips in our article on website security.

How can I manage my products?

You can manage your services via your own Control Panel. To do so, click on ‘Log in’ > ‘Control Panel’ at the top right of our website. The Control Panel also gives you direct access to Website Builder and Webshop.

What support do I get at one.com?

At one.com we are happy to help you. You can reach us 24 hours a day, 7 days a week. We are happy to answer all your technical questions and advise you on which package suits you best. Are you not (yet) familiar with one of our services? Even then we are a helping hand. You can reach us via chat, e-mail and phone. Or find the answer yourself on our helpdesk.

' + '
' + '' + rebatePriceInclCurrencyAsHtml + '' + '' + tldPrice.fullPriceInclCurrencyAsHtml + '' + '
' + '
' + verticalRenewText + ' ' + tldPrice.fullPriceInclCurrencyAsHtml + '
' + '
'; } return tldHtml; } // nice rounding function /** * @param {type} stringDigit * @returns {unresolved} */ function ocvpNiceRounding(stringDigit) { var lastCharIndex = stringDigit.length - 1; var lastDigit = stringDigit.charAt(lastCharIndex); var secondlastCharIndex = stringDigit.length - 2; var secondLastDigit = stringDigit.charAt(secondlastCharIndex); if ((lastDigit 5 ) && secondLastDigit == 9) { stringDigit = stringDigit.replace(/.$/, "9"); } return stringDigit; } /***API integration for all vertical pages ends here***/ /*** faq accordion js start ***/ const accordionQueFaq = osShadowElement.querySelectorAll(".acb-faq-que-wrapper"); if (accordionQueFaq.length) { accordionQueFaq.forEach((accordionQue) => { accordionQue.addEventListener("click", () => { if (accordionQue.classList.contains("active")) { accordionQue.classList.remove("active"); } else { const accordionQuesWithIsOpen = osShadowElement.querySelectorAll(".acb-faq-que-wrapper"); accordionQuesWithIsOpen.forEach((accordionQueWithIsOpen) => { accordionQueWithIsOpen.classList.remove("active"); }); accordionQue.classList.add("active"); } }); }); } /*** faq accordion js end ***/ /*** youtube video testimonial js start ***/ const imageOverlay = osShadowElement.getElementById('testimonial-video-section-block-image-overlay'); const playButton = osShadowElement.getElementById('testimonial-video-section-block-play'); if (playButton) { var vidId = playButton.getAttribute("data"); // Add the event listener for the play button. playButton.addEventListener('click', play) } // The function that is called when the button is clicked. function play(e) { e.preventDefault(); let iframe_tag = osShadowElement.getElementById('ytplayer'); iframe_tag.setAttribute('src', 'https://www.youtube.com/embed/' + vidId + '?autoplay=1&enablejsapi=1&origin=http%3A%2F%2Flocalhost&widgetid=1'); imageOverlay.style.opacity = '0'; playButton.style.opacity = '0'; window.setTimeout(function () { playButton.style.display = 'none'; imageOverlay.style.display = 'none'; }, 800); // timed to match animation-duration } /*** youtube video testimonial js end ***/ /*** silder banner js start ***/ /*const rightBtn = osShadowElement.querySelector('#right-button'); const leftBtn = osShadowElement.querySelector('#left-button'); if (rightBtn && leftBtn) { var scrollLeftCnt = 0; rightBtn.addEventListener("click", function (event) { const conent = osShadowElement.querySelector('#content'); if (document.querySelector(".banner-menu li:last-child").classList.contains('active')) { scrollLeftCnt = 0; } else{ scrollLeftCnt += 100; } //conent.scrollLeft += 100; //console.log(scrollLeftCnt); conent.scrollLeft = scrollLeftCnt; event.preventDefault(); let activeElement = osShadowElement.querySelector(".banner-thumb.active"); if (osShadowElement.querySelector(".banner-menu li:last-child").classList.contains('active')) { osShadowElement.querySelector(".banner-menu li:first-child").click(); } else { if (activeElement.nextElementSibling) { activeElement.nextElementSibling.click(); } } }); leftBtn.addEventListener("click", function (event) { const conent = osShadowElement.querySelector('#content'); if (document.querySelector(".banner-menu li:first-child").classList.contains('active')) { var liCount = document.querySelectorAll(".banner-menu li").length; scrollLeftCnt = ((liCount - 1) * 100); } else{ scrollLeftCnt -= 100; } //conent.scrollLeft -= 100; //console.log(scrollLeftCnt); conent.scrollLeft = scrollLeftCnt; event.preventDefault(); let activeElement = osShadowElement.querySelector(".banner-thumb.active"); if (osShadowElement.querySelector(".banner-menu li:first-child").classList.contains('active')) { osShadowElement.querySelector(".banner-menu li:last-child").click(); } else { if (activeElement.previousElementSibling) { activeElement.previousElementSibling.click(); } } }); }*/ const rightBtn = osShadowElement.querySelector('#right-button'); const leftBtn = osShadowElement.querySelector('#left-button'); if (rightBtn && leftBtn) { rightBtn.addEventListener("click", function (event) { const conent = osShadowElement.querySelector('#content'); conent.scrollLeft += 100; event.preventDefault(); let activeElement = osShadowElement.querySelector(".banner-thumb.active"); if (osShadowElement.querySelector(".banner-menu li:last-child").classList.contains('active')) { osShadowElement.querySelector(".banner-menu li:first-child").click(); } else { if (activeElement.nextElementSibling) { activeElement.nextElementSibling.click(); } } }); leftBtn.addEventListener("click", function (event) { const conent = osShadowElement.querySelector('#content'); conent.scrollLeft -= 100; event.preventDefault(); let activeElement = osShadowElement.querySelector(".banner-thumb.active"); if (osShadowElement.querySelector(".banner-menu li:first-child").classList.contains('active')) { osShadowElement.querySelector(".banner-menu li:last-child").click(); } else { if (activeElement.previousElementSibling) { activeElement.previousElementSibling.click(); } } }); } function nextSlide(thumbClass) { if (thumbClass.length > 0) { var elements = osShadowElement.querySelectorAll(".banner-section"); for (var i = 0, len = elements.length; i 0) { var elements = osShadowElement.querySelectorAll(".banner-section"); for (var i = 0, len = elements.length; i { bannerTouchstartX = e.changedTouches[0].screenX; }); bannerSlider.addEventListener('touchend', e => { bannerTouchendX = e.changedTouches[0].screenX; if (Math.abs(bannerTouchendX - bannerTouchstartX) > 50){ if (bannerTouchendX bannerTouchstartX) { osShadowElement.querySelector('#left-button').click(); } } }); }*/ /*** silder banner js end ***/ /*** image pointers accordion js start ***/ const accordionTitlesSuccess = osShadowElement.querySelectorAll(".success-steps-col"); accordionTitlesSuccess.forEach((accordionTitle) => { accordionTitle.addEventListener("click", () => { if (accordionTitle.classList.contains("active")) { accordionTitle.classList.remove("active"); } else { const accordionTitlesWithIsOpen = document.querySelectorAll(".success-steps-col"); accordionTitlesWithIsOpen.forEach((accordionTitleWithIsOpen) => { accordionTitleWithIsOpen.classList.remove("active"); }); accordionTitle.classList.add("active"); } }); }); /*** image pointers accordion js end ***/ var hasScrollToSectionElements = document.querySelectorAll('[data-scrolltosection]'); hasScrollToSectionElements.forEach(el => { el.addEventListener('click', (event) => { scrollToSection(event.target.dataset.scrolltosection); }); }); function scrollToSection(id) { if (id && id != '#') { var domainSearchbarOffset = 0; if(id == '#find-your-domain') { domainSearchbarOffset = 50; id = '#domain-search-input'; osShadowElement.querySelector(id).focus(); } var elmntToView = osShadowElement.querySelector(id); var elementPosition = elmntToView.getBoundingClientRect().top; var headerOffset = 0; var WebTopNav = document.querySelector(".WebTop-Nav"); if (WebTopNav) { headerOffset += WebTopNav.clientHeight; } var SpecialOfferBanner = document.querySelector("#SpecialOfferBanner"); if (SpecialOfferBanner) { headerOffset += SpecialOfferBanner.clientHeight; } var MegaMenuAndSearchWrapper = document.querySelector(".MegaMenuAndSearchWrapper"); if (MegaMenuAndSearchWrapper && elementPosition = elemTop) { osShadowElement.querySelector(".package-details-top-container-bg").classList.add('visible'); } else if (0 == elemBottom) { osShadowElement.querySelector(".package-details-top-container-bg").classList.remove('visible'); } else { osShadowElement.querySelector(".package-details-top-container-bg").classList.remove('visible'); } } }); /*** scroll to section js end ***/ // collaps for mobile let options = osShadowElement.querySelectorAll('.feature-section h3'); if (options) { options.forEach(option => { option.addEventListener('click', function () { let closestCollapseEle = this.closest('.feature-section'); if (closestCollapseEle.classList.contains('collapsed')) { closestCollapseEle.classList.remove('collapsed'); } else { closestCollapseEle.classList.add('collapsed'); } }); }); } let plans = osShadowElement.querySelectorAll('.package-details-wrapper .package-details-top-container .plan'); let mobilePlans = osShadowElement.querySelectorAll('.package-details-wrapper .mobile-buttons .mobile-plan'); let features = osShadowElement.querySelectorAll('.package-details-wrapper .features-row .cell '); plans.forEach(plan => { plan.addEventListener('click', function () { plans.forEach(plan => { plan.classList.remove('shown'); }); this.classList.add('shown'); mobilePlans.forEach(mobilePlan => { if (mobilePlan.classList.contains('shown')) { mobilePlan.classList.remove('shown'); } }); mobilePlans.forEach(mobilePlan => { if (mobilePlan.dataset.plan == plan.dataset.plantoggle) { mobilePlan.classList.add('shown'); } }); features.forEach(feature => { if (feature.classList.contains('shown')) { feature.classList.remove('shown'); } }); features.forEach(feature => { if (feature.dataset.plan == plan.dataset.plantoggle) { feature.classList.add('shown'); } }); }); }); /*** Feature comparison sticky header table js end ***/ /*** slider for plans and prices section js start ***/ var plangridContainer = osShadowElement.getElementById('slide-container'); var bestValueElem = osShadowElement.querySelectorAll('.plans-and-prices .best-value'); bestValueElem.forEach(bestValueEle => { if (plangridContainer && bestValueEle) { var containerRect = plangridContainer.getBoundingClientRect(); var eleRect = bestValueEle.getBoundingClientRect(); containerRectLeft = containerRect.left; eleRectLeft = eleRect.left; let eleWidth = bestValueEle.offsetWidth; let screenWidth = screen.width; let paddingWidth = (screenWidth - eleWidth) / 2; if (containerRectLeft { el.addEventListener('click', (event) => { ocvpSlidePlangrid(event.target.dataset.slidernav); }); }); function ocvpSlidePlangrid(direction) { var container = osShadowElement.getElementById('slide-container'); if (container && typeof container !== 'undefined') { scrollCompleted = 0; var slideVar = setInterval(function () { if (direction == 'left') { container.scrollLeft -= 15; } else { container.scrollLeft += 15; } scrollCompleted += 10; if (scrollCompleted >= 100) { window.clearInterval(slideVar); } }, 50); } } /*** slider for plans and prices section js end ***/ /*** plans table add to cart button extra class js start ***/ let plangrid = osShadowElement.querySelector('.plans-and-prices'); let ctaButtons = osShadowElement.querySelector('.section-info .cta-buttons > button:nth-child(2)'); let ctaBuyNows = osShadowElement.querySelectorAll('.plans-and-prices .widgets-wrapper .cta.BuyNow'); if (plangrid) { var addonPlan = plangrid.dataset.addon; } else { var addonPlan = 'wordpress_managed'; } if (plangrid && ctaButtons && ctaBuyNows) { ctaBuyNows.forEach(ctaBuyNow => { let cartUrl = ctaBuyNow.dataset.cart; let onclickUrl = 'window.open(`' + cartUrl + '&addon=' + addonPlan + '`,`_self`)'; ctaBuyNow.setAttribute('onclick', onclickUrl); ctaBuyNow.dataset.url = cartUrl + '&addon=' + addonPlan; ctaBuyNow.classList.add('ManagedWordpress'); }); } var hasPlansTableTabElements = document.querySelectorAll('[data-planstabletab]'); hasPlansTableTabElements.forEach(el => { el.addEventListener('click', (event) => { var buttonName = event.target.dataset.planstabletab; if(event.target.localName == 'img'){ buttonName = event.target.alt; } planDetailsChange(buttonName); }); }); // plan table header button - content hide/show function planDetailsChange(buttonName) { let buttons = osShadowElement.querySelectorAll('.cta-buttons button'); // 2. loop through the options and add the event listener to each element // buttons.forEach(button => { // button.classList.remove('active') // }); buttons.forEach(button => { if ( buttonName == button.dataset.planstabletab) { button.classList.add('active'); } else { button.classList.remove('active'); } }); let planHighlights = osShadowElement.querySelectorAll('.plan-heighlights'); let managedWordpress = osShadowElement.querySelectorAll('.features.ManagedWordpress'); let managedWordpressNotices = osShadowElement.querySelectorAll('.ManagedWordpress.ManagedWordpressNotice'); let selfManageds = osShadowElement.querySelectorAll('.plans-and-prices .self-managed'); let managedWps = osShadowElement.querySelectorAll('.plans-and-prices .managed-wp'); let ctaBuyNows = osShadowElement.querySelectorAll('.plans-and-prices .widgets-wrapper .cta.BuyNow'); if ('manage' === buttonName) { planHighlights.forEach(planHighlight => { planHighlight.style.display = 'flex'; }); managedWps.forEach(managedWp => { managedWp.style.display = 'block'; }); managedWordpressNotices.forEach(managedWordpressNotice => { managedWordpressNotice.style.display = 'flex'; }); selfManageds.forEach(selfManaged => { selfManaged.style.display = 'none'; }); managedWordpress.forEach(managedWordpres => { managedWordpres.style.display = 'block'; }); ctaBuyNows.forEach(ctaBuyNow => { ctaBuyNow.classList.remove('SelfManagedWordpress'); }); ctaBuyNows.forEach(ctaBuyNow => { ctaBuyNow.classList.add('ManagedWordpress'); let cartUrl = ctaBuyNow.dataset.cart; let onclickUrl = 'window.open(`' + cartUrl + '&addon=' + addonPlan + '`,`_self`)'; ctaBuyNow.dataset.url = cartUrl + '&addon=' + addonPlan; ctaBuyNow.setAttribute('onclick', onclickUrl); }); } else { planHighlights.forEach(planHighlight => { planHighlight.style.display = 'none'; }); managedWordpress.forEach(managedWordpres => { managedWordpres.style.display = 'none'; }); ctaBuyNows.forEach(ctaBuyNow => { ctaBuyNow.classList.remove('ManagedWordpress'); }); ctaBuyNows.forEach(ctaBuyNow => { ctaBuyNow.classList.add('SelfManagedWordpress'); let cartUrl = ctaBuyNow.dataset.cart; let onclickUrl = 'window.open(`' + cartUrl + '`,`_self`)'; ctaBuyNow.dataset.url = cartUrl; ctaBuyNow.setAttribute('onclick', onclickUrl); }); managedWps.forEach(managedWp => { managedWp.style.display = 'none'; }); selfManageds.forEach(selfManaged => { selfManaged.style.display = 'block'; }); managedWordpressNotices.forEach(managedWordpressNotice => { managedWordpressNotice.style.display = 'none'; }); } } /*** plans table add to cart button extra class js end ***/ /*** Plangrid link disclaimer popups js start ***/ osShadowElement.addEventListener("click", function (event) { let targetPopup = event.target.getAttribute('data-popup-trigger'); if (targetPopup) { let targetedPopup = osShadowElement.querySelector('[data-popup-modal=' + targetPopup + ']'); let targetedIframe = targetedPopup.querySelector('iframe'); targetedIframe.setAttribute('src', targetedIframe.getAttribute('data-src')); targetedPopup.setAttribute('style', 'display:flex !important'); targetedPopup.classList.add('show'); } else if ( event.target.classList.contains('closeModal') || ( ! event.target.classList.contains('popup-modal-container') && event.target.classList.contains('show') ) ) { osShadowElement.querySelector('body').classList.remove('No-Scroll'); osShadowElement.querySelectorAll(".disclaimer-popup").forEach(function (val) { val.style.display = 'none'; val.classList.remove('show'); }); } }); /*** Plangrid link disclaimer popups js end ***/ /*** ocvp slider js start ***/ const ocvpSlider = document.querySelectorAll('.ocvp-slider-wrapper'); if (ocvpSlider && typeof ocvpSlider !== 'undefined') { ocvpSlider.forEach((singleOCVPSlider, index) => { singleOCVPSliderNavs = singleOCVPSlider.querySelectorAll('.ocvp-slider-pagination span'); singleOCVPSliderNavs.forEach((curOCVPSliderNav) => { curOCVPSliderNav.addEventListener("click", () => { curOCVPSlider = ocvpSlider[index].querySelector('.ocvp-slider'); slides = curOCVPSlider.querySelectorAll('div'); slideWidth = 0; if (slides[0]['offsetWidth']) { slideWidth += slides[0]['offsetWidth']; } if (slides[0]['offsetLeft']) { slideWidth += slides[0]['offsetLeft']; } if (slideWidth == 0) { slideWidth = 300; } scrollAmount = slideWidth / 10; ocvpScrollCompleted = 0; var ocvpSlideVar = setInterval(function () { if (curOCVPSliderNav.classList.contains("prev")) { curOCVPSlider.scrollLeft -= scrollAmount; } else { curOCVPSlider.scrollLeft += scrollAmount; } ocvpScrollCompleted += 10; if (ocvpScrollCompleted >= 100) { window.clearInterval(ocvpSlideVar); } }, 50); }); }); }); } /*** ocvp slider js end ***/ /*** ocvp js end ***/ //domain search input form var ocvpDomainSearchForm = osShadowElement.querySelector('#domain-search-form'); if (ocvpDomainSearchForm) { ocvpDomainSearchForm.onsubmit = function () { var ocvpDefaultTLD = osShadowElement.querySelector('#default_tld').value; var ocvpDefaultPlanInput = osShadowElement.querySelector('#default_plan'); var ocvpDefaultPlan = ""; if (ocvpDefaultPlanInput) { ocvpDefaultPlan = osShadowElement.querySelector('#default_plan').value; } var ocvpDomainSearchInput = osShadowElement.querySelector('#domain-search-input').value; if (ocvpDomainSearchInput.indexOf('.') == -1 && ocvpDefaultTLD.length > 0) { osShadowElement.querySelector('#domain-search-input').value = ocvpDomainSearchInput + '.' + ocvpDefaultTLD; } var ocvpDomainSearchInputFinal = osShadowElement.querySelector('#domain-search-input').value; var ocvpFormAction = ocvpDomainSearchForm.getAttribute('action'); if (ocvpDefaultPlan.length > 0 && ocvpFormAction.indexOf('?plan') == -1 && ocvpFormAction.indexOf('&plan') == -1) { ocvpDomainSearchInputFinal = ocvpDomainSearchInputFinal + "&plan=" + ocvpDefaultPlan; } var ocvpRedirectUrl = ocvpFormAction; if (ocvpFormAction.indexOf('?') == -1) { ocvpRedirectUrl = ocvpFormAction + '?keyword=' + ocvpDomainSearchInputFinal; } else { ocvpRedirectUrl = ocvpFormAction + '&keyword=' + ocvpDomainSearchInputFinal; } if(ocvpDomainSearchInputFinal ) { window.location = ocvpRedirectUrl; } return false; //ocvpDomainSearchForm.submit(); }; } //domain search input form ends let featuresComparison = document.querySelector(".features-comparison-wrapper"); let topSearchBar = document.querySelector(".MegaMenuAndSearchWrapper"); let navSpacer = document.querySelector(".NavSpacer"); if ( featuresComparison && topSearchBar) { topSearchBar.style.position = 'static'; navSpacer.style.display = 'none'; } setLargestHeight( '.plans-and-prices header' ); setLargestHeight( '.plans-and-prices .plan-details' ); setLargestHeight( '.plans-and-prices .price-cta' ); setLargestHeight( '.plans-and-prices .features' ); setLargestHeight( '.plans-and-prices .included' ); window.onresize = function(){ setLargestHeight( '.plans-and-prices header' ); setLargestHeight( '.plans-and-prices .plan-details' ); setLargestHeight( '.plans-and-prices .price-cta' ); setLargestHeight( '.plans-and-prices .features' ); setLargestHeight( '.plans-and-prices .included' ); }; function setLargestHeight( selecter ) { var selectedElements = osShadowElement.querySelectorAll( selecter ); if (selectedElements) { var heightArr = []; selectedElements.forEach(selectedElement => { selectedElement.style.height = 'auto'; }); selectedElements.forEach(selectedElement => { heightArr.push(selectedElement.offsetHeight); }); var maxVar = Math.max( ...heightArr ); selectedElements.forEach(selectedElement => { selectedElement.style.height = maxVar + 'px'; }); } } /******* Custom MP4 / YouTube video embed js start *******/ let cv_thumb_wraps = document.querySelectorAll('.acb-cv-video-wrapper.cv-play-button'); if (cv_thumb_wraps) { cv_thumb_wraps.forEach(cv_thumb_wrap => { cv_thumb_wrap.addEventListener("click", function(event) { event.preventDefault(); let vid = event.target.dataset.vid; let cv_thumb = event.target; let vtitle = cv_thumb.getAttribute("title"); if(!vid){ cv_thumb = cv_thumb.querySelector('.video-thumbnail'); vid = cv_thumb.dataset.vid; vtitle = cv_thumb.getAttribute("title"); } if(vid && cv_thumb){ let cv_video = ''; if(cv_thumb.classList.contains('mp4')){ cv_video = ''; } else{ cv_video = ''; } let cv_thumb_wrap = cv_thumb.closest('.acb-cv-video-wrapper.cv-play-button'); cv_thumb_wrap.innerHTML = cv_video; cv_thumb_wrap.classList.remove("cv-play-button"); } }); }); } /******* Custom MP4 / YouTube video embed js end *******/