Morsa Medikal Ortopedi Mak. San Ve Tic. Ltd. Sti
Activity: Manufacturer
City: İstanbul
Categories:Orthopedics
', sub: 'Market overviews, regulatory guides and Turkish manufacturer spotlights for importers and procurement teams.', search: true, moreTitle: 'More articles' }; var mq = function (q) { return window.matchMedia && window.matchMedia(q).matches; }; var reduce = mq('(prefers-reduced-motion: reduce)'); var canHover = mq('(hover: hover) and (pointer: fine)'); var HAS_IO = 'IntersectionObserver' in window; var SEARCH = ''; function $(s, r) { return (r || document).querySelector(s); } function $$(s, r) { return Array.prototype.slice.call((r || document).querySelectorAll(s)); } function el(t, c, h) { var e = document.createElement(t); if (c) e.className = c; if (h != null) e.innerHTML = h; return e; } function esc(s) { return String(s).replace(/[&<>"']/g, function (c) { return { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]; }); } function norm(s) { return (s || '').toLowerCase().replace(/[^a-z0-9]+/g, ''); } function kind(card) { var t = ($('.article-header h2', card) || {}).textContent || ''; var href = ($('.article-header h2 a', card) || {}).getAttribute ? $('.article-header h2 a', card).getAttribute('href') : ''; if (card.querySelector('.sp-vcard') || /company of the week/i.test(t) || card.querySelector('.sp-vcard-content')) return ['spot', 'Company of the week']; if (/business cultures/i.test(t) || /culture/.test(href)) return ['culture', 'Business culture']; if (/market (overview|outlook)|market:|opportunities/i.test(t) || /market/.test(href)) return ['market', 'Market']; return ['insight', 'Insight']; } function init() { var root = $('.com-content-category-blog'); if (!root) return; if (root.classList.contains('tm-blog')) return; var cols = $$('.article-list .row > [class*="col-"]', root).filter(function (c) { return c.querySelector('.article'); }); if (!cols.length) return; root.classList.add('tm-blog'); var h1 = $('h1', root); var kinds = {}, order = []; var names = { spot: 'Company of the week', market: 'Markets', culture: 'Business cultures', insight: 'Insights' }; cols.forEach(function (col, i) { var card = $('.article', col); card.classList.add('tm-card'); col.style.setProperty('--i', i); var k = kind(card); card.setAttribute('data-tm', k[0]); col._tmKind = k[0]; if (!kinds[k[0]]) { kinds[k[0]] = 0; order.push(k[0]); } kinds[k[0]]++; var h2a = $('.article-header h2 a', card); col._tmKey = norm((h2a ? h2a.textContent : '') + ' ' + (k[0] === 'spot' ? ($('.sp-vcard-title', card) || {}).textContent || '' : '')); /* tag */ var body = $('.article-body', card); if (body) body.insertBefore(el('span', 'tm-tag', k[1]), body.firstChild); /* date pill on the picture */ var time = $('.article-info time', card), imgBox = $('.article-intro-image', card); if (time && imgBox) imgBox.appendChild(el('span', 'tm-date', esc(time.textContent.trim()))); /* spotlight cards: no separate Read more, so make sure the logo box stays in the link flow */ if (canHover && !reduce) { card.addEventListener('mousemove', function (e) { var r = card.getBoundingClientRect(), x = e.clientX - r.left, y = e.clientY - r.top; card.style.setProperty('--mx', x + 'px'); card.style.setProperty('--my', y + 'px'); card.style.setProperty('--ry', ((x / r.width - .5) * 6).toFixed(2) + 'deg'); card.style.setProperty('--rx', ((.5 - y / r.height) * 6).toFixed(2) + 'deg'); }); card.addEventListener('mouseleave', function () { card.style.setProperty('--rx', '0deg'); card.style.setProperty('--ry', '0deg'); }); } }); /* header */ var head = el('div', 'tm-head'); var main = el('div', 'tm-head-main'); main.appendChild(el('span', 'tm-badge', '' + CFG.badge)); if (h1) { h1.className += ' tm-title'; h1.innerHTML = CFG.title; main.appendChild(h1); } else main.appendChild(el('h1', 'tm-title', CFG.title)); if (CFG.sub) main.appendChild(el('p', 'tm-sub', CFG.sub)); head.appendChild(main); var tools = el('div', 'tm-tools'); var chip = el('span', 'tm-chip', cols.length + ' articles on this page'); tools.appendChild(chip); var input; if (CFG.search) { var lab = el('label', 'tm-search', SEARCH + ''); tools.appendChild(lab); input = $('input', lab); } head.appendChild(tools); var active = 'all', pills = []; var filters = el('div', 'tm-filters'); function addPill(key, label, n) { var b = el('button', 'tm-pill' + (key === 'all' ? ' on' : ''), esc(label) + '' + n + ''); b.type = 'button'; b._k = key; filters.appendChild(b); pills.push(b); } addPill('all', 'All', cols.length); order.forEach(function (k) { addPill(k, names[k], kinds[k]); }); if (order.length > 1) head.appendChild(filters); root.insertBefore(head, root.firstChild); var list = $('.article-list', root); var empty = el('p', 'tm-empty'); empty.hidden = true; list.appendChild(empty); function apply() { var q = input ? norm(input.value) : '', shown = 0; cols.forEach(function (c) { var ok = (active === 'all' || c._tmKind === active) && (!q || c._tmKey.indexOf(q) > -1); if (ok) { shown++; if (c.hidden) { c.hidden = false; void c.offsetWidth; } c.classList.remove('tm-hide'); } else { c.classList.add('tm-hide'); (function (cc) { setTimeout(function () { if (cc.classList.contains('tm-hide')) cc.hidden = true; }, 320); })(c); } }); /* collapse empty rows */ $$('.article-list .row', root).forEach(function (r) { var any = Array.prototype.some.call(r.children, function (c) { return !c.classList.contains('tm-hide') && !c.hidden; }); setTimeout(function () { r.style.display = any ? '' : 'none'; }, any ? 0 : 330); }); chip.textContent = (q || active !== 'all') ? shown + ' of ' + cols.length + ' articles' : cols.length + ' articles on this page'; empty.hidden = shown > 0; if (!shown) empty.innerHTML = 'No article matches “' + esc(input ? input.value : '') + '”. '; } pills.forEach(function (b) { b.addEventListener('click', function () { active = b._k; pills.forEach(function (p) { p.classList.toggle('on', p === b); }); apply(); }); }); if (input) { input.addEventListener('input', apply); input.addEventListener('keydown', function (e) { if (e.key === 'Escape') { input.value = ''; apply(); } }); } empty.addEventListener('click', function (e) { if (e.target.tagName === 'BUTTON') { if (input) input.value = ''; active = 'all'; pills.forEach(function (p) { p.classList.toggle('on', p._k === 'all'); }); apply(); } }); /* more-articles list + subcategories */ var more = $('.items-more', root); var links = $$('.com-content-blog__link', root); if (more && links.length) more.insertBefore(el('h3', 'tm-more-h', CFG.moreTitle), more.firstChild); var ch = $('.cat-children', root); if (ch && !$('a, li', ch)) ch.classList.add('tm-nochild'); /* reveal */ if (reduce || !HAS_IO) { head.classList.add('tm-in'); cols.forEach(function (c) { c.classList.add('tm-in'); }); links.forEach(function (l) { l.classList.add('tm-in'); }); } else { root.classList.add('tm-ready'); var hio = new IntersectionObserver(function (es) { if (es[0].isIntersecting) { head.classList.add('tm-in'); hio.disconnect(); } }, { threshold: .1 }); hio.observe(head); var io = new IntersectionObserver(function (es) { var k = 0; es.forEach(function (e) { if (!e.isIntersecting) return; e.target.style.setProperty('--d', (k++ * 80) + 'ms'); e.target.classList.add('tm-in'); io.unobserve(e.target); }); }, { threshold: .1, rootMargin: '0px 0px -5% 0px' }); cols.forEach(function (c) { io.observe(c); }); links.forEach(function (l) { io.observe(l); }); /* safety net: never leave content hidden */ setTimeout(function () { cols.concat(links).forEach(function (c) { c.classList.add('tm-in'); }); }, 12000); } } function boot() { var n = 0; (function s() { try { init(); } catch (e) { if (window.console) console.warn('[tmi-blog]', e); return; } if (!document.querySelector('.tm-blog') && ++n < 20) setTimeout(s, 250); })(); } if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', boot); else boot(); })();
Morsa Medikal Ortopedi Mak. San Ve Tic. Ltd. Sti
Activity: Manufacturer
City: İstanbul
Categories:Orthopedics