The best medical practice management software makes it simple and easy to use single platform to cover all your medical practice needs. Invariably that means featuring a section for Electronic Health ...
";inherits:false;initial-value:100%;}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 rgba(0,0,0,0);}@property --tw-inset-shadow-color{syntax:"*";inherits:false;}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%;}@property --tw-ring-color{syntax:"*";inherits:false;}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 rgba(0,0,0,0);}@property --tw-inset-ring-color{syntax:"*";inherits:false;}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 rgba(0,0,0,0);}@property --tw-ring-inset{syntax:"*";inherits:false;}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0;}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff;}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 rgba(0,0,0,0);}@property --tw-font-weight{syntax:"*";inherits:false;} SPONSORED Skip to main content Become a TechRadar Insider now Sign up with your email below to instantly access member features, newsletters and exclusive Insider perks
By submitting your information you agree to the Terms & Conditions and Privacy Policy and are aged 16 or over.
Black Friday The most sought-after deals right now See top deals Hide top deals Most popular
Prices were correct when checked but can change. We may earn a commission when you buy through these links.
. */ html.pcgamer .bf-name { font-family: var(--font-ui-heading, "Roboto Condensed", Arial, sans-serif); } .bf-price { margin-top: 8px; font-weight: 800; } .bf-price del { margin-left: 4px; color: var(--bf-ink-2); font-size: 12px; font-weight: 400; } .bf-merchant { margin-top: 2px; color: var(--bf-ink-2); font-size: 11px; } .bf-cta { align-self: flex-start; margin-top: auto; padding-top: 8px; color: var(--bf-accent); font-size: 11px; font-weight: 700; } .bf-card:hover .bf-cta { text-decoration: underline; } .bf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--bf-ink-2); font-size: 12px; } .bf-all { color: var(--bf-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--bf-accent); text-underline-offset: 2px; } .bf-all:hover { text-decoration: none; } @media (min-width: 640px) { .bf-bar { gap: 16px; padding: 8px 24px; } .bf-bar-title { font-size: 14px; } .bf-pill { display: inline-grid; } .bf-inner { padding: 16px 32px; } .bf-title { font-size: 18px; } .bf-status { display: block; } .bf-card { flex-basis: 210px; width: 210px; } .bf-photo { height: 126px; } } /* Reduced motion, scoped to the banner only */ @media (prefers-reduced-motion: reduce) { .bf-banner, .bf-banner * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } } } function black_friday_banner_1794848278036_blackFridayDealsBanner() { // --- Data source: our cached API, never the sheet directly ----------------- // GET /api/black-friday-deals (BlackFridayDealsController) picks the site's sheet tab from the // host and returns the deals already parsed, link-repaired and price-formatted by // BlackFridayDealsService. Google is asked at most once per 5 minutes per tab (Redis, plus the // CDN in front of it), and a last good copy is served if Google fails. // Each reader also keeps a 10-minute copy in sessionStorage, so browsing several pages costs one // request, not one per page. The copy holds every currency; the region filter below runs on each // page, because one session can visit both / (US) and /uk/ (GB). var DEALS_URL = '/api/black-friday-deals'; var STORE_KEY = 'bf-banner-deals-v3'; // bump with BlackFridayDealsService::CACHE_VERSION var STORE_TTL = 10 * 60 * 1000; var DEFAULT_HUB = '/deals'; // Returns { deals, hub } or null. function readStored() { try { var stored = JSON.parse(window.sessionStorage.getItem(STORE_KEY) || 'null'); return stored && Array.isArray(stored.deals) && Date.now() - stored.at < STORE_TTL ? stored : null; } catch (e) { return null; } } function store(deals, hub) { try { window.sessionStorage.setItem(STORE_KEY, JSON.stringify({ at: Date.now(), deals: deals, hub: hub })); } catch (e) {} } // The sheet holds the live URL (https://www.tomsguide.com/deals/). When the page is the same site // on another host (a QA host such as www.tomsguide.com..van-qa...), keep the reader on it by // using the same path on this host. Anything that isn't an http(s) URL falls back to /deals. function hubHref(hub) { if (!hub) return DEFAULT_HUB; try { var url = new URL(String(hub || ''), window.location.href); if (url.protocol !== 'http:' && url.protocol !== 'https:') return DEFAULT_HUB; var here = window.location.hostname; if (url.hostname === here || here.indexOf(url.hostname + '.') === 0) { return url.pathname + url.search + url.hash; } return url.href; } catch (e) { return DEFAULT_HUB; } } // The API only sends rows with a name, price and safe http(s) link; this just guards the shape. function usable(deals) { return (Array.isArray(deals) ? deals : []).filter(function (d) { return d && typeof d === 'object' && d.key && d.name && d.price && d.link; }); } // --- Region: only show deals in the reader's currency ---------------------- // is set by the server: the site section (root = US, /uk/ = GB, /au/ = AU), // or the reader's GeoIP country when it is an alias of that section (e.g. CA on the US section). // Deals whose Currency doesn't match are dropped, as are rows with no Currency. If nothing is // left (e.g. a CA reader and no CAD rows), the banner stays hidden. No fallback to another // currency, so a reader never sees a price in a currency that isn't theirs. // Keys are the locale codes the sites use (GB, not UK), checked against every site with a sheet // tab: TechRadar, GamesRadar, Homes & Gardens, Tom's Hardware, Who What Wear, Tom's Guide, PC // Gamer. GeoIP aliases count too: CA (US sections), AU (Tom's Hardware, Who What Wear US). var LOCALE_CURRENCY = { // English sections on every site US: 'USD', CA: 'CAD', GB: 'GBP', AU: 'AUD', // TechRadar-only English sections NZ: 'NZD', SG: 'SGD', IN: 'INR', AE: 'AED', // TechRadar global editions (also the FR / ES / AU article territory overrides) DE: 'EUR', FR: 'EUR', ES: 'EUR', IT: 'EUR', NL: 'EUR', BE: 'EUR', FI: 'EUR', SE: 'SEK', NO: 'NOK', DK: 'DKK', MX: 'MXN' }; function readerCurrency() { var locale = String(document.documentElement.getAttribute('data-locale') || '').trim().toUpperCase(); return LOCALE_CURRENCY[locale] || null; } // No known currency for this page = show nothing, rather than guess. function forReader(deals) { var wanted = readerCurrency(); if (!wanted) return []; return deals.filter(function (d) { return d.currencyCode === wanted; }); } // --- Analytics --------------------------------------------------------- // Same route as the legacy membership banner: Freyr turns this into the GTM dataLayer push // { event: 'membershipEvent', membership: { action, label, type }, _clear: true } function track(action) { var eventObject = { membership: { action: action, label: 'membership-banner', type: 'BF-banner-sticky' } }; if (typeof window.dispatchOrQueueAction === 'function') { window.dispatchOrQueueAction('freyr.sendEventToFreyr', { name: 'membershipEvent', eventObject: eventObject }); } else { // Freyr not on the page (e.g. a test page): push the same shape straight to GTM. (window.dataLayer = window.dataLayer || []).push(Object.assign({ event: 'membershipEvent', _clear: true }, eventObject)); } } // --- Affiliate links (ecomlinks.js, formerly hawklinks.js) ----------------- // The rewriter scans the page once, before our deals arrive, and only inside its own selector // (normally the article body). So: add the banner's cards to that selector, then ask it to // process them with its 'processArticle' event. // // Send that event ONCE. Each run picks every link without data-hawk-tracked, then awaits network // calls before marking the link and attaching its click listener. A second event during that wait // picks the same links again and adds a second listener, so every click sends duplicate hawkEvents. var LINK_SELECTOR = '.bf-banner a.bf-card[href]'; var MAX_REWRITE_CHECKS = 40; // x 500ms = 20s for the script to load and finish // ecomlinks sets window.hawklinks.site and registers its processArticle listener in the same // step, and sets .complete when a run finishes. Waiting for .complete also keeps our run from // overlapping its first pass over the article. function rewriterReady() { var h = window.hawklinks; return !!(h && h.complete && h.site && typeof h.site.selector === 'string'); } function addToRewriterScope() { var site = window.hawklinks.site; if (site.selector.indexOf(LINK_SELECTOR) === -1) { site.selector = site.selector ? site.selector + ', ' + LINK_SELECTOR : LINK_SELECTOR; } } // Scoped to the banner's track, so the rest of the page is not processed again. function requestRewrite(root) { try { document.dispatchEvent(new CustomEvent('processArticle', { detail: { element: root } })); } catch (error) { console.warn('[Black Friday banner] processArticle dispatch failed', error); } } // --- Position -------------------------------------------------------------- // Like the legacy membership banner: sit just below whatever is pinned to the top of the screen // (the sticky site nav on mobile, a sticky leaderboard ad), or at the very top if nothing is. var TOP_OBSTACLES = [ '.dfp-leaderboard-container [style*="position: fixed"]', '.dfp-leaderboard-container [id^="bordeaux-ad-"]', '.dfp-leaderboard-container', '[data-component-name="SiteHeader:Masthead"]', 'nav.primary-nav', '.navigation__container' ]; function topOffset() { var offset = 0; TOP_OBSTACLES.forEach(function (selector) { var el = document.querySelector(selector); if (!el) return; var rect = el.getBoundingClientRect(); var style = window.getComputedStyle(el); var shown = style.display !== 'none' && style.visibility !== 'hidden'; if (shown && rect.height > 0 && rect.bottom > 0 && rect.top < 300) { offset = Math.max(offset, rect.bottom); } }); return Math.round(offset); } // --- Alpine component ---------------------------------------------------- return { deals: [], visible: false, open: false, offsetTop: 0, panelMaxHeight: null, scrollTracked: false, positionFrame: null, atStart: true, atEnd: false, status: '', threshold: 500, frame: null, rewriteRequested: false, rewriteChecks: 0, rewriteTimer: null, dealsRequested: false, everOpened: false, carouselReady: false, mutations: null, scrollFrame: null, hubUrl: DEFAULT_HUB, // Page weight: on page load this only adds one passive scroll listener and one resize listener. // Everything else waits: // - the deals are fetched the first time the reader scrolls far enough to trigger the banner, // so readers who never scroll that far cost no request at all; // - the header/ad MutationObservers run only while the banner is on screen; // - card images, the carousel's listeners and its ResizeObserver start on the first expand. init() { // Show once the reader has scrolled past the threshold. Deliberately not tied to an ad slot: // ads fill at unpredictable times, and a sticky ad never leaves the screen, which could keep // the banner hidden for the whole page view. const shouldShow = () => window.scrollY >= this.threshold; // One scroll handler, at most once a frame: visibility, then position. const onScroll = () => { if (this.scrollFrame) return; this.scrollFrame = requestAnimationFrame(() => { this.scrollFrame = null; this.visible = shouldShow(); if (this.visible) this.updatePosition(); }); }; window.addEventListener('scroll', onScroll, { passive: true }); window.addEventListener('resize', () => { this.schedulePosition(); if (this.open) this.scheduleUpdate(); }, { passive: true }); onScroll(); this.$watch('visible', (isVisible) => { if (isVisible && !this.dealsRequested) { this.dealsRequested = true; this.loadDeals(); } if (!isVisible) this.open = false; this.watchObstacles(isVisible); if (isVisible) this.updatePosition(); // GA: one scroll event the first time the banner actually appears on this page. this.trackShown(); }); this.$watch('deals', () => this.trackShown()); this.$watch('open', (isOpen) => { if (!isOpen) return; this.everOpened = true; // lets the card images load (see :src in the markup) this.updatePosition(); // size the panel to the space left on screen this.setUpCarousel(); setTimeout(() => this.updateCarousel(), 50); }); // Affiliate links: hand the cards to ecomlinks as soon as they exist, so a fast click never // gets a raw link. deals is only set once per page, so Alpine never re-renders :href back. this.$watch('deals', () => this.$nextTick(() => this.rewriteLinks())); }, // Keep the banner under the sticky nav / ad. Headers and ads change size or stick/unstick // without a scroll, so watch them too, but only while the banner is showing: ad slots mutate // constantly and there is no point reacting while we're hidden. watchObstacles(on) { if (!on) { if (this.mutations) this.mutations.disconnect(); return; } const header = document.querySelector('[data-component-name="SiteHeader:Masthead"]'); const ad = document.querySelector('.dfp-leaderboard-container'); if (!header && !ad) return; if (!this.mutations) this.mutations = new MutationObserver(() => this.schedulePosition()); const config = { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }; if (header) this.mutations.observe(header, config); if (ad) this.mutations.observe(ad, config); }, // Carousel listeners, attached on the first expand. They're added here rather than with // @scroll in the markup, so they can't be lost if the editor rewrites "@" attributes. // Without the scroll one, Previous never enables. setUpCarousel() { if (this.carouselReady) return; this.carouselReady = true; this.$refs.viewport.addEventListener('scroll', () => this.scheduleUpdate(), { passive: true }); window.addEventListener('keydown', (event) => { if (event.key === 'Escape') this.open = false; }); // Covers the panel being revealed a frame after $nextTick, and the window resizing. if ('ResizeObserver' in window) { new ResizeObserver(() => this.scheduleUpdate()).observe(this.$refs.viewport); } }, // Polls until ecomlinks is ready, asks it ONCE to process the cards, then polls (without // asking again) until it has marked them data-hawk-tracked. See the note at LINK_SELECTOR. rewriteLinks() { clearTimeout(this.rewriteTimer); const links = Array.from(this.$refs.track.querySelectorAll('a.bf-card')); // Backup for :data-original-link in the markup, in case the CMS drops it on save. Runs // before the rewriter has seen the cards, so href is still the raw URL at this point. links.forEach((a) => { if (!a.hasAttribute('data-original-link')) a.setAttribute('data-original-link', a.getAttribute('href') || ''); }); // Finished: ecomlinks marks every link it handles, rewritten or not. if (!links.length || links.some((a) => a.hasAttribute('data-hawk-tracked'))) return; if (!this.rewriteRequested && rewriterReady()) { addToRewriterScope(); requestRewrite(this.$refs.track); this.rewriteRequested = true; } this.rewriteChecks += 1; if (this.rewriteChecks >= MAX_REWRITE_CHECKS) { console.warn('[Black Friday banner] Affiliate links were not processed (ecomlinks.js not loaded on this page?)'); return; } this.rewriteTimer = setTimeout(() => this.rewriteLinks(), 500); }, async loadDeals() { let sheet = readStored(); try { if (!sheet) { const response = await fetch(DEALS_URL, { credentials: 'omit', headers: { Accept: 'application/json' } }); if (!response.ok) throw new Error('HTTP ' + response.status); const body = await response.json(); sheet = { deals: usable(body.deals), hub: body.hub || null }; // Don't remember an empty list (e.g. Google down with no last good copy), so the next page retries. if (sheet.deals.length) store(sheet.deals, sheet.hub); } this.hubUrl = sheet.hub ? hubHref(sheet.hub) : DEFAULT_HUB; // Only the reader's currency; an empty list keeps the banner hidden (x-show checks deals.length). this.deals = forReader(usable(sheet.deals)); } catch (error) { // No deals = the banner stays hidden (x-show checks deals.length). console.warn('[Black Friday banner] Could not load deals', error); } }, trackShown() { if (this.scrollTracked || !this.visible || this.deals.length === 0) return; this.scrollTracked = true; this.updatePosition(); track('scroll-page'); }, toggle() { this.open = !this.open; // GA: one event each time the banner is expanded (not when it's collapsed). if (this.open) track('click-banner'); }, schedulePosition() { if (!this.visible) return; if (this.positionFrame) cancelAnimationFrame(this.positionFrame); this.positionFrame = requestAnimationFrame(() => this.updatePosition()); }, // Also sizes the open panel: the screen height minus whatever sits above it (sticky nav/ad, then // the bar, which can wrap to two lines). Runs on scroll, resize (including a mobile browser's // address bar showing or hiding) and when the header/ad changes size. updatePosition() { this.offsetTop = topOffset(); const barHeight = this.$refs.bar ? this.$refs.bar.offsetHeight : 52; this.panelMaxHeight = Math.max(160, window.innerHeight - this.offsetTop - barHeight); }, move(cards) { const card = this.$refs.track.querySelector('a'); if (!card) return; const gap = parseFloat(getComputedStyle(this.$refs.track).columnGap) || 12; this.$refs.viewport.scrollBy({ left: cards * (card.getBoundingClientRect().width + gap), behavior: 'smooth' }); // Backup: re-check the buttons once the smooth scroll has finished. setTimeout(() => this.updateCarousel(), 450); }, scheduleUpdate() { if (this.frame) cancelAnimationFrame(this.frame); this.frame = requestAnimationFrame(() => this.updateCarousel()); }, updateCarousel() { const viewport = this.$refs.viewport; // Hidden panel = zero width; measuring now would give wrong numbers, so wait until it's visible. if (!viewport || viewport.clientWidth === 0) return; const max = Math.max(0, viewport.scrollWidth - viewport.clientWidth); this.atStart = viewport.scrollLeft = max - 2; const card = this.$refs.track.querySelector('a'); const gap = parseFloat(getComputedStyle(this.$refs.track).columnGap) || 12; const step = card ? card.getBoundingClientRect().width + gap : 1; const count = this.deals.length; if (!count) { this.status = ''; return; } const start = Math.min(count, Math.floor((viewport.scrollLeft + 2) / step) + 1); const shown = Math.max(1, Math.ceil(viewport.clientWidth / step)); // \u2013 is an en dash. Written as an escape because Flexi saves a literal one as "–". this.status = 'Showing ' + start + '\u2013' + Math.min(count, start + shown - 1) + ' of ' + count; } }; } Tech Radar Tech Radar Pro Tech Radar Gaming Main navigation menu Open menu Close main menu TechRadar the business technology experts @layer global { #burgerbar ~ [data-component-name="SiteHeader:Masthead"] .button-menu.checked { display: none; } #burgerbar:checked ~ [data-component-name="SiteHeader:Masthead"] .button-menu.unchecked { display: none; } #burgerbar:checked ~ [data-component-name="SiteHeader:Masthead"] .button-menu.checked { display: block; } } US Edition Asia Singapore Europe Danmark Suomi Norge Sverige UK Italia Nederland België (Nederlands) France Deutschland España North America US (English) Canada México Australasia Australia New Zealand RSS Sign in View Profile Sign out Search Search TechRadar Jump To: Best overall Best all-in-one Best comprehensive Best adaptable Best for integration FAQs How we test @layer legacy { #jump-to-section__floating-list::-webkit-scrollbar { width: 3px; background: rgba(0, 0, 0, 0); } #jump-to-section__floating-list::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.3); border-radius: 10px; } } Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
By submitting your information you agree to the Terms & Conditions and Privacy Policy and are aged 16 or over. Tech Radar Pro Are you a pro? Subscribe to our newsletter Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!