{"id":32,"date":"2020-10-19T20:30:25","date_gmt":"2020-10-19T20:30:25","guid":{"rendered":"https:\/\/vip2-msd.com\/switzerland\/?page_id=32"},"modified":"2024-11-13T13:15:46","modified_gmt":"2024-11-13T12:15:46","slug":"stories","status":"publish","type":"page","link":"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/","title":{"rendered":"Stories"},"content":{"rendered":"\n<div class=\"text-hero-block mccberg-block mb-2\">\n\t<nav class=\"breadcrumbs wrapper text-descriptive\"aria-label=\"Breadcrumbs\"><\/nav>\t    <h1 class=\"heading\">Unsere Stories<\/h1>\t<p>Wir sind MSD Schweiz. Erfahren Sie in unseren Stories mehr \u00fcber uns!<\/p>\n\n\t\n\t\n\t\n<\/div>\n\n\n<div id=\"mco-featured-stories-e1-block-block_a5f58ec3c5a2f650c4c0af39da1dd8c3\"\n     class=\"mco-featured-stories-e1-block full mccberg-block\">\n\n    <div class=\"mco-featured-stories-e1-content-container\">\n\t\t                    <div class=\"mco-featured-stories-e1-content-item-first\">\n                        <div class=\"mco-featured-stories-e1-content-item-first-image-container \">\n\n\t\t\t\t\t\t\t                            <a\n                                href=\"https:\/\/www.msd.ch\/de\/stories\/diversity-and-inclusion\/\"\n                                aria-label=\"Diversit\u00e4t und Inklusion\"                            >\n\t\t\t\t\t\t\t\t                                    <picture>\n                                        <source media=\"(max-width: 767px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/06\/rainbow-alliance_pride-month_6.png?resize=375,196\">\n                                        <source media=\"(min-width: 768px) and (max-width: 1199px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/06\/rainbow-alliance_pride-month_6.png?resize=656,399\">\n                                        <source media=\"(min-width: 1200px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/06\/rainbow-alliance_pride-month_6.png?resize=560,404\">\n                                        <img\n                                                data-src=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/06\/rainbow-alliance_pride-month_6.png?resize=560,404\"\n                                                alt=\"Article thumbnail\"\n                                                class=\"lazyload\"\n                                                loading=\"lazy\"\n                                        \/>\n                                    <\/picture>\n\t\t\t\t\t\t\t\t\t                            <\/a>\n\t\t\t\t\t\t                        <\/div>\n\n                        <div class=\"mco-featured-stories-e1-content-item-first-content-container\">\n                            <a\n                                href=\"https:\/\/www.msd.ch\/de\/stories\/diversity-and-inclusion\/\"\n                                aria-label=\"Diversit\u00e4t und Inklusion\"                            >\n\t\t\t\t\t\t\t\t                                    <small class=\"tagline\">Diversit\u00e4t und Inklusion<\/small>\n\t\t\t\t\t\t\t\t                                <h4><span>Diversit\u00e4t und Inklusion<\/span><\/h4>\n                                <p>Diversit\u00e4t und Inklusion sind zentrale Bestandteile der Unternehmenskultur bei MSD Schweiz. Mitarbeitendennetzwerke und Initiativen f\u00f6rdern ein respektvolles Arbeitsumfeld und gleiche Chancen f\u00fcr alle.<\/p>\n                            <\/a>\n                        <\/div>\n\n                    <\/div>\n\t\t\t\t\t                    <div class=\"mco-featured-stories-e1-content-item\">\n\n                        <div class=\"mco-featured-stories-e1-content-item-content-container\">\n                            <a\n                                href=\"https:\/\/www.msd.ch\/de\/stories\/wir-unterstutzen-den-brustkrebsmonat-oktober\/\"\n                                aria-label=\"Wir unterst\u00fctzen den Brustkrebsmonat Oktober\"                            >\n\t\t\t\t\t\t\t\t                                    <small class=\"tagline\">Unsere Mitarbeitenden<\/small>\n\t\t\t\t\t\t\t\t                                <h4><span>Wir unterst\u00fctzen den Brustkrebsmonat Oktober<\/span><\/h4>\n                                <p>Wussten Sie, dass Brustkrebs die h\u00e4ufigste Krebsart bei Frauen ist? Bei MSD zeigen wir Solidarit\u00e4t mit Menschen, die von Brustkrebs betroffen sind, und tun alles, was wir k\u00f6nnen, um weitere Fortschritte bei der Bek\u00e4mpfung der Krankheit zu unterst\u00fctzen. Insbesondere w\u00e4hrend des Brustkrebsmonats Oktober unterst\u00fctzen wir verschiedene Aktivit\u00e4ten, um \u00fcber die Bedeutung von Pr\u00e4vention und Fr\u00fcherkennung aufzukl\u00e4ren. Erfahren Sie mehr \u00fcber unser Engagement.<\/p>\n                            <\/a>\n                        <\/div>\n\n                        <div class=\"mco-featured-stories-e1-content-item-image-container\">\n                            <a\n                                href=\"https:\/\/www.msd.ch\/de\/stories\/wir-unterstutzen-den-brustkrebsmonat-oktober\/\"\n                                aria-label=\"Wir unterst\u00fctzen den Brustkrebsmonat Oktober\"                            >\n\t\t\t\t\t\t\t\t                                    <picture>\n                                        <source media=\"(max-width: 767px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2022\/10\/Support-banner-stetoscope-e1664808142664.jpg?resize=133,133\">\n                                        <source media=\"(min-width: 768px) and (max-width: 1199px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2022\/10\/Support-banner-stetoscope-e1664808142664.jpg?resize=141,144\">\n                                        <source media=\"(min-width: 1200px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2022\/10\/Support-banner-stetoscope-e1664808142664.jpg?resize=180,180\">\n                                        <img\n                                                data-src=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2022\/10\/Support-banner-stetoscope-e1664808142664.jpg?resize=180,180\"\n                                                alt=\"Article thumbnail\"\n                                                class=\"lazyload\"\n                                                loading=\"lazy\"\n                                        \/>\n                                    <\/picture>\n\t\t\t\t\t\t\t\t\t                            <\/a>\n                        <\/div>\n                    <\/div>\n\t\t\t\t\t                    <div class=\"mco-featured-stories-e1-content-item\">\n\n                        <div class=\"mco-featured-stories-e1-content-item-content-container\">\n                            <a\n                                href=\"https:\/\/www.msd.ch\/de\/stories\/wie-wir-den-lungenkrebsmonat-unterstutzen\/\"\n                                aria-label=\"Wie wir den Lungenkrebsmonat unterst\u00fctzen\"                            >\n\t\t\t\t\t\t\t\t                                    <small class=\"tagline\">Verantwortung<\/small>\n\t\t\t\t\t\t\t\t                                <h4><span>Wie wir den Lungenkrebsmonat unterst\u00fctzen<\/span><\/h4>\n                                <p>November ist Lungenkrebsmonat. Ein Monat, der den Lungenkrebs-Betroffenen gewidmet ist und zur Sensibilisierung der Bev\u00f6lkerung \u00fcber die Ursachen, Fr\u00fcherkennung und Pr\u00e4vention der Krankheit beitragen soll. Wussten Sie, dass Lungenkrebs weltweit die h\u00e4ufigste Krebstodesursache ist? Wir bei MSD setzen uns f\u00fcr die Bek\u00e4mpfung von Lungenkrebs und die Verbesserung der Krebsbehandlung ein. Erfahren Sie, wie wir den Lungenkrebsmonat unterst\u00fctzen.<\/p>\n                            <\/a>\n                        <\/div>\n\n                        <div class=\"mco-featured-stories-e1-content-item-image-container\">\n                            <a\n                                href=\"https:\/\/www.msd.ch\/de\/stories\/wie-wir-den-lungenkrebsmonat-unterstutzen\/\"\n                                aria-label=\"Wie wir den Lungenkrebsmonat unterst\u00fctzen\"                            >\n\t\t\t\t\t\t\t\t                                    <picture>\n                                        <source media=\"(max-width: 767px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2022\/11\/MSD2730-Bild-Lung-Cancer-Awareness-1920x1080-V02.png?resize=133,133\">\n                                        <source media=\"(min-width: 768px) and (max-width: 1199px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2022\/11\/MSD2730-Bild-Lung-Cancer-Awareness-1920x1080-V02.png?resize=141,144\">\n                                        <source media=\"(min-width: 1200px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2022\/11\/MSD2730-Bild-Lung-Cancer-Awareness-1920x1080-V02.png?resize=180,180\">\n                                        <img\n                                                data-src=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2022\/11\/MSD2730-Bild-Lung-Cancer-Awareness-1920x1080-V02.png?resize=180,180\"\n                                                alt=\"Article thumbnail\"\n                                                class=\"lazyload\"\n                                                loading=\"lazy\"\n                                        \/>\n                                    <\/picture>\n\t\t\t\t\t\t\t\t\t                            <\/a>\n                        <\/div>\n                    <\/div>\n\t\t\t\t\t                    <div class=\"mco-featured-stories-e1-content-item\">\n\n                        <div class=\"mco-featured-stories-e1-content-item-content-container\">\n                            <a\n                                href=\"https:\/\/www.msd.ch\/de\/stories\/clean-up-days\/\"\n                                aria-label=\"Volunteering? Ehrensache f\u00fcr uns bei MSD\"                            >\n\t\t\t\t\t\t\t\t                                    <small class=\"tagline\">Unsere Mitarbeitenden<\/small>\n\t\t\t\t\t\t\t\t                                <h4><span>Volunteering? Ehrensache f\u00fcr uns bei MSD<\/span><\/h4>\n                                <p>Wussten Sie, dass MSD-Mitarbeitende jedes Jahr 40 Stunden bezahlte Arbeitszeit einsetzen k\u00f6nnen, um sich ehrenamtlich in unterschiedlichen Projekten zu engagieren? Hier erfahren Sie, wie das aussehen kann.<\/p>\n                            <\/a>\n                        <\/div>\n\n                        <div class=\"mco-featured-stories-e1-content-item-image-container\">\n                            <a\n                                href=\"https:\/\/www.msd.ch\/de\/stories\/clean-up-days\/\"\n                                aria-label=\"Volunteering? Ehrensache f\u00fcr uns bei MSD\"                            >\n\t\t\t\t\t\t\t\t                                    <picture>\n                                        <source media=\"(max-width: 767px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/10\/2023-Volunteers_2.jpg?resize=133,133\">\n                                        <source media=\"(min-width: 768px) and (max-width: 1199px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/10\/2023-Volunteers_2.jpg?resize=141,144\">\n                                        <source media=\"(min-width: 1200px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/10\/2023-Volunteers_2.jpg?resize=180,180\">\n                                        <img\n                                                data-src=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/10\/2023-Volunteers_2.jpg?resize=180,180\"\n                                                alt=\"Article thumbnail\"\n                                                class=\"lazyload\"\n                                                loading=\"lazy\"\n                                        \/>\n                                    <\/picture>\n\t\t\t\t\t\t\t\t\t                            <\/a>\n                        <\/div>\n                    <\/div>\n\t\t\t\t\t    <\/div>\n\n    <div class=\"mco-stock-ticker-hero-modal popup\" style=\"display: none;\">\n        <div class=\"popup-wrapper\">\n            <div class=\"mco-featured-stories-e1-modal-content popup-content\">\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n<div id=\"mco-e2-all-stories-block-block_886d76e6403c3ece97446800f5a57c96\" class=\"mco-e2-all-stories-block full mccberg-block old-style\">\n    <div class=\"mco-e2-all-stories-filter-container\" style=\"--mcc-e2-filter-label-color: white;\">\n        <div class=\"wrapper\">\n            <p>Drop-Down Liste: Kategorie<\/p>\n\n                            <div class=\"dropdown-list-container\">\n                    <select class=\"dropdown-list mco-e2-ddl\" aria-label=\"Filter by\">\n                        <option selected value=\"View All\">\n                            View All                        <\/option>\n                    <\/select>\n                <\/div>\n\n                        <\/div>\n    <\/div>\n    <div class=\"mco-e2-all-stories-stories-container wrapper\">\n\n    <\/div>\n<\/div>\n<script\n    src=\"https:\/\/www.msd.ch\/de\/wp-content\/themes\/cex-wpvip-mhh-mhh2-mcc-theme\/js\/tinyslider.js\"><\/script>\n<script>\n        let main_url = \"https:\/\/www.msd.ch\/de\";\n    let global_posts = [];\n\n    function setSessionStorageItem(key, value) {\n        sessionStorage.setItem(encodeURIComponent(key), value);\n    }\n\n    function getSessionStorageItem(key) {\n        return sessionStorage.getItem(encodeURIComponent(key));\n    }\n\n    \/* Filter Slider Code *\/\n    function setAllStoriesE2Sliders() {\n        try {\n            let sliders = document.getElementsByClassName(\"mco-e2-all-stories-pills-container\");\n            let slider_controls = document.getElementsByClassName(\"mco-e2-all-stories-arrow-slider-control\");\n            for (let i = 0; i < sliders.length; i++) {\n                let next_btn = slider_controls[i];\n                let slider = tns({\n                    container: sliders[i],\n                    items: 2,\n                    slideBy: 1,\n                    autoplay: false,\n                    controls: false,\n                    nav: false,\n                    responsive: {\n                        768: {\n                            \/\/ enable slider on big viewport\n                            items: 4\n                        },\n                        1280: {\n                            \/\/ enable slider on big viewport\n                            items: 6\n                        }\n                    }\n                });\n                next_btn.onclick = function () {\n                    slider.goTo('next');\n                }\n                sliders[i].classList.remove('no-slider');\n            }\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n    function allStoriesE2SliderNavClearFix(slider_nav_items) {\n        try {\n            for (let i = 0; i < slider_nav_items.length; i++) {\n                slider_nav_items[i].classList.remove('active');\n            }\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n\n    function allStoriesE2NumberOfCardsVisible() {\n        try {\n            if (window.innerWidth < 768) {\n                return 2;\n            } else if (window.innerWidth >= 768 && window.innerWidth < 1280) {\n                return 4;\n            } else {\n                return 6;\n            }\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n    function allStoriesE2BindDropdownList(ddl, content_topics) {\n        try {\n            ddl.addEventListener('change', function (el) {\n                let value = el.target.options[el.target.selectedIndex].value;\n                allStoriesE2FetchPosts(value, content_topics); \/\/ Content Control\n            });\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n    function allStoriesE2ResetPills(pills) {\n        try {\n            for (let i = 0; i < pills.length; i++) {\n                pills[i].classList.remove('active');\n            }\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n    function allStoriesE2BindPills(pills, content_topics) {\n        try {\n            for (let i = 0; i < pills.length; i++) {\n                pills[i].addEventListener('click', function (el) {\n                    allStoriesE2ResetPills(pills);\n                    pills[i].classList.add('active');\n                    allStoriesE2FetchPosts(pills[i].textContent, content_topics); \/\/ Content Control\n                });\n            }\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n    function calculateFilterTerm() {\n        if (sessionStorage.getItem('e2FilterSource') !== 'default_filter') {\n            return sessionStorage.getItem('e2FilterSource');\n        }\n\n        return sessionStorage.getItem('isE2ToggleStyle') == '0' ? 'content_topic' : 'tags';\n    }\n\n\n    \/* This function inits session storage variables and fetches all the content topic term ids *\/\n    function allStoriesE2Init() {\n        \/\/ Set Up Session Storage\n        sessionStorage.setItem('isE2ToggleStyle', 0);\n        sessionStorage.setItem('e2FilterSource', 'default_filter');\n        sessionStorage.setItem('e2_all_stores_post_data', JSON.stringify([]));\n        sessionStorage.setItem('pill_all_last_page_loaded', '1');\n        sessionStorage.setItem('All', '1');\n\n        let url = window.location.host;\n        let path_check = window.location.pathname.split('\/')[1];\n        if (path_check === 'mcc') {\n            url = url + \"\/\" + path_check;\n        }\n\n        let filterTerm = calculateFilterTerm();\n        url = main_url + \"\/wp-json\/wp\/v2\/\" + filterTerm + \"?per_page=100\" + \"&#038;hide_empty=1\";\n\n        var xhr = new XMLHttpRequest();\n        xhr.open('GET', htmlDecode(url), true);\n        xhr.onload = function (e) {\n            if (this.status == 200) {\n                let response = JSON.parse(this.responseText);\n                let content_topics_or_tags = response;\n\n                if (calculateFilterTerm() === 'tags') {\n                    content_topics_or_tags = e2StoriesTags;\n                }\n\n                let ddl = document.getElementsByClassName('mco-e2-ddl')[0];\n                let pills = document.getElementsByClassName('mco-e2-all-stories-pill');\n                for (let i = 0; i < content_topics_or_tags.length; i++) {\n                    let content_topic_or_tag = content_topics_or_tags[i].name;\n                    setSessionStorageItem(content_topic_or_tag, '1');\n\n                    if (sessionStorage.getItem('isE2ToggleStyle') == '0') {\n                        let option = document.createElement(\"option\");\n                        option.text = content_topic_or_tag;\n                        option.value = content_topic_or_tag;\n                        ddl.add(option);\n                    } else if (content_topics_or_tags[i].id === undefined) {\n                        content_topics_or_tags[i].id = content_topics_or_tags[i].term_id;\n                    }\n                }\n                bindInfiniteScroll(content_topics_or_tags);\n\n                sessionStorage.getItem('isE2ToggleStyle') == '0' ? allStoriesE2BindDropdownList(ddl, content_topics_or_tags) : allStoriesE2BindPills(pills, content_topics_or_tags);\n                allStoriesE2FetchPosts('View All', content_topics_or_tags);\n            }\n        };\n\n        xhr.send(null);\n\n\n    }\n\n    function bindInfiniteScroll(content_topics) {\n        let scrollDebounce = true;\n        document.onscroll = function () {\n            try {\n                let stories_container = document.getElementsByClassName('mco-e2-all-stories-stories-container')[0];\n                if (shouldLazyLoadMorePosts(stories_container)) {\n                    if (scrollDebounce) {\n                        scrollDebounce = false;\n                        let active_pill = sessionStorage.getItem('isE2ToggleStyle') == '0' ?\n                            document.getElementsByClassName('mco-e2-ddl')[0] :\n                            document.querySelectorAll('.mco-e2-all-stories-pill.active')[0];\n\n                        let section = sessionStorage.getItem('isE2ToggleStyle') == '0' ?\n                            active_pill.options[active_pill.selectedIndex].value.trim() :\n                            active_pill.textContent.trim();\n\n                        let page;\n                        switch (section) {\n                            case 'View All':\n                                page = sessionStorage.getItem('pill_all_last_page_loaded') ?? '';\n                                break;\n                            default:\n                                page = getSessionStorageItem(section) ?? '';\n                        }\n                        if (page.toString() !== \"-1\") {\n                            allStoriesE2FetchPosts(section, content_topics);\n                        }\n\n                        setTimeout(function () { scrollDebounce = true; }, 500);\n                    }\n                }\n            } catch (ex) {\n                console.log(ex);\n            }\n        }\n    }\n\n    \/* This function fetches stories based on the inputed topic and adds them to the array of post data *\/\n    function allStoriesE2FetchPosts(section, content_topics) {\n        try {\n            let page, content_topic_id;\n            let filterType = calculateFilterTerm();\n            let url = window.location.host;\n            let path_check = window.location.pathname.split('\/')[1];\n            if (path_check === 'mcc') {\n                url = url + \"\/\" + path_check;\n            }\n            section = section.trim();\n            sessionStorage.setItem(\"active_pill_text\", section);\n            switch (section) {\n                case 'View All':\n                case 'All':\n                    page = sessionStorage.getItem('pill_all_last_page_loaded') ?? '';\n                    if (page.toString() !== \"-1\") {\n                        content_topic_id = \"\";\n                        for (let i = 0; i < content_topics.length; i++) {\n                            let term = content_topics[i];\n                            if (content_topic_id === \"\") {\n                                content_topic_id += term.id;\n                            } else {\n                                content_topic_id += \",\" + term.id;\n                            }\n                        }\n\n                        url = main_url + \"\/wp-json\/wp\/v2\/story\/?per_page=7&#038;pretty=true&#038;page=\" +\n                            page +\n                            `&#038;${filterType}=` + content_topic_id;\n                        sessionStorage.setItem('pill_all_last_page_loaded', (parseInt(page) + 1).toString());\n                    }\n                    break;\n                default:\n                    page = getSessionStorageItem(section) ?? '';\n                    if (page.toString() !== \"-1\") {\n                        const content_topic = content_topics\n                            .find( (content_topic) => encodeURIComponent(content_topic.name) === encodeURIComponent(section));\n                        content_topic_id = content_topic?.id ?? content_topic?.term_id;\n\n                        url = main_url + \"\/wp-json\/wp\/v2\/story\/?per_page=7&pretty=true&page=\" +\n                            page +\n                            `&${filterType}=` + content_topic_id;\n                        setSessionStorageItem(section, (parseInt(page) + 1).toString());\n                    }\n            }\n            var xhr = new XMLHttpRequest();\n\n            xhr.open('GET', htmlDecode(url), true);\n            xhr.onload = function (e) {\n                let post_data = global_posts;\n                if (this.status == 200) {\n                    let response = JSON.parse(this.responseText);\n\n                    response.forEach(function (post) {\n                        \/\/ let found_post = post_data.findIndex((obj => obj.id == post.id));\n                        \/\/ https:\/\/stackoverflow.com\/a\/37699217\/3019650\n                        \/\/ https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Array\/some#Browser_compatibility\n                        let found_post = post_data.filter(function (p) {\n                            return p.id == post.id\n                        });\n                        if (found_post.length === 0) {\n                            post_data.push(post);\n                        }\n                    });\n                    global_posts = post_data;\n                }\n\n                if (this.status == 400 || this.status == 404) {\n                    \/\/ No more posts to load\n                    switch (section) {\n                        case 'View All':\n                            sessionStorage.setItem('pill_all_last_page_loaded', \"-1\");\n                            break;\n\n                        default:\n                            setSessionStorageItem(section, \"-1\");\n                    }\n                }\n\n                \/\/ Filter post_data based on section\n                let filtered_post_data;\n                if (section === 'View All' || section == 'All') {\n                    filtered_post_data = post_data;\n                } else {\n                    const content_topic = content_topics\n                        .find( (content_topic) => encodeURIComponent(content_topic.name) === encodeURIComponent(section));\n                    content_topic_id = content_topic?.id ?? content_topic?.term_id;\n                    filtered_post_data = post_data.filter(function (p) {\n                        if (sessionStorage.getItem('isE2ToggleStyle') == '0') {\n                            return p.content_topic.includes(content_topic_id)\n                        } else if (sessionStorage.getItem('isE2ToggleStyle') == '1') {\n                            return (calculateFilterTerm() === 'tags' ? p.tags.includes(content_topic_id) : p.content_topic.includes(content_topic_id));\n                        }\n                    });\n                }\n                filtered_post_data = filtered_post_data.sort((a, b) => new Date(b.date) - new Date(a.date));\n                allStoriesE2InsertContent(filtered_post_data, content_topics);\n            };\n            xhr.send(null);\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n    \/* This post handles the insertion of content onthe page based on the post_pdata it is fed *\/\n    function allStoriesE2InsertContent(post_data, content_topics) {\n        try {\n            let img_dataprefix = 'loading' in HTMLImageElement.prototype ? '' : 'data-';\n            let stories_container = document.getElementsByClassName('mco-e2-all-stories-stories-container')[0];\n            stories_container.innerHTML = \"\";\n            let i = 1;\n            let added_posts = {};\n            post_data.forEach(function (post) {\n\n                let post_url = post.link;\n                let post_html = \"<div class='mco-e2-all-stories-story'>\";\n                let post_image = post.extended_data.featured_image ? post.extended_data.featured_image.split('?')[0] : '';\n\n                \/\/ Image Section of Post\n                \/\/ console.log(i % 4 === 0);\n                let picture_tags = (i % 4 === 0) ?\n                    `<picture>\n                        <source media=\"(max-width: 767px)\" ${img_dataprefix}srcset=\"${(post_image)}?w=321 1x,${(post_image)}?w=642 2x,${(post_image)}?w=963 3x\">\n                        <source media=\"(min-width: 768px) and (max-width: 1199px)\" ${img_dataprefix}srcset=\"${(post_image)}?w=656 1x,${(post_image)}?w=1312 2x,${(post_image)}?w=1968 3x\">\n                        <source media=\"(min-width: 1200px)\" ${img_dataprefix}srcset=\"${(post_image)}?w=852 1x,${(post_image)}?w=1704 2x,${(post_image)}?w=2556 3x\">\n                        <img\n                            ${img_dataprefix}src=\"${(post_image)}?w=852\"\n                            srcset=\"${(post_image)}?w=852 1x,${(post_image)}?w=1704 2x,${(post_image)}?w=2556 3x\"\n                            alt=\"${post.title.rendered}\"\n                            class=\"lazyload\"\n                            loading=\"lazy\"\n                        \/>\n                    <\/picture>`\n                    :\n                    `<picture>\n                        <source media=\"(max-width: 767px)\" ${img_dataprefix}srcset=\"${(post_image)}?w=321 1x,${(post_image)}?w=642 2x,${(post_image)}?w=963 3x\">\n                        <source media=\"(min-width: 768px) and (max-width: 1199px)\" ${img_dataprefix}srcset=\"${(post_image)}?w=313 1x,${(post_image)}?w=626 2x,${(post_image)}?w=939 3x\">\n                        <source media=\"(min-width: 1200px)\" ${img_dataprefix}srcset=\"${(post_image)}?w=405 1x,${(post_image)}?w=810 2x,${(post_image)}?w=1215 3x\">\n                        <img\n                            ${img_dataprefix}src=\"${(post_image)}?w=405\"\n                            srcset=\"${(post_image)}?w=405 1x,${(post_image)}?w=810 2x,${(post_image)}?w=1215 3x\"\n                            alt=\"${post.title.rendered}\"\n                            class=\"lazyload\"\n                            loading=\"lazy\"\n                        \/>\n                    <\/picture>`;\n                i++;\n                if (!post.extended_data.acf_fields.video_hosting_selection) {\n                    post_html += \"<div class='mco-e2-all-stories-story-image-container'>\";\n                    \/\/ No Video Present\n                    post_html += `<a href='${post_url}'>${picture_tags}<\/a>`;\n                } else {\n                    post_html +=\n                        \"<div class='mco-e2-all-stories-story-image-container'>\";\n                    \/\/ Video Present\n                    post_html += `<a href='${post_url}'>${picture_tags}<\/a>`\n                    post_html +=\n                        `<div style='display: none;' class='mco-e2-all-stories-story-video-type'>${post.extended_data.acf_fields.video_hosting_selection}<\/div>`;\n                    post_html +=\n                        `<div style='display: none;' class='mco-e2-all-stories-story-video-accessible-name'>${post.extended_data.acf_fields.video_accessible_name}<\/div>`;\n                    \/\/ Handle Video Info\n                    if (post.extended_data.acf_fields.video_hosting_selection === \"brightcove\") {\n                        \/\/ Brightcove Video\n                        let account_id = post.extended_data.acf_fields.brightcove_account_id;\n                        let video_id = post.extended_data.acf_fields.brightcove_video_id;\n                        post_html +=\n                            `<div style='display: none;' class='mco-e2-all-stories-story-brightcove-info'>${account_id}:${video_id}<\/div>`;\n                    } else {\n                        \/\/ YouTube Video\n                        let video_url = post.extended_data.acf_fields.youtube_url;\n                        post_html +=\n                            `<div style='display: none;' class='mco-e2-all-stories-story-youtube-info'>${video_url}<\/div>`;\n                    }\n                }\n                post_html += \"<div class='mco-e2-all-stories-story-box'><\/div>\";\n                post_html += \"<\/div>\";\n                \/\/ End Image Section\n\n                \/\/ Content Section of Post\n                post_html += \"<div class='mco-e2-all-stories-story-content-container'>\";\n\n                let content_topic_name;\n\n                if (sessionStorage.getItem('isE2ToggleStyle') == '0') {\n                    content_topic_name = content_topics.filter(function (t) {\n                        return t.id === post.content_topic[0];\n                    })[0].name;\n                } else if (sessionStorage.getItem('isE2ToggleStyle') == '1') {\n                    const active_pill_text = sessionStorage.getItem('active_pill_text');\n                    const has_no_filtered_tag = active_pill_text.includes('All');\n                    if (has_no_filtered_tag) {\n                        content_topic_name = content_topics.filter(function (t) {\n                            return t.id === (calculateFilterTerm() === 'tags' ? post.tags[0] : post.content_topic[0]);\n                        })[0].name;\n                    } else {\n                        content_topic_name = active_pill_text;\n                    }\n                }\n\n                post_html += `<small class='tagline'>${content_topic_name}<\/small>`;\n                post_html += `<h3><a href='${post_url}'>${post.title.rendered}<\/a><\/h3>`;\n                let content_data = (post.extended_data.acf_fields.subheader_title !== null && post\n                    .extended_data\n                    .acf_fields.subheader_title !== undefined) ?\n                    `<p>${post.extended_data.acf_fields.subheader_title}<\/p>` : '';\n                post_html += content_data;\n                let date = new Date(post.date);\n                let date_format = MCC_scripts_vars.format;\n                let post_year = date.getFullYear();\n                let post_month = date.getMonth() + 1;\n                let post_day = date.getDate();\n                if (date_format.includes('d') && date_format.includes('m') && date_format.includes('Y')) {\n                    const formatted_date = date_format.map(format => {\n                        if (format === 'd') {\n                            format = padTo2Digits(post_day);\n                        }\n                        if (format === 'm') {\n                            format = padTo2Digits(post_month);\n                        }\n                        if (format === 'Y') {\n                            format = post_year;\n                        }\n                        return format;\n                    });\n                    date = formatted_date.join('');\n                } else {\n                    let months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n                    date = months[post_month - 1] + \" \" + post_day + \", \" + post_year;\n                }\n                if ('yes' === 'yes') {\n                    post_html += `<p class='mco-e2-all-stories-story-date'>${date}<\/p>`;\n                }\n                post_html += \"<\/div>\";\n                \/\/ End Content Section\n\n                post_html += \"<\/div>\";\n                stories_container.innerHTML += post_html;\n            });\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n    function padTo2Digits(num) {\n        return num.toString().padStart(2, '0');\n    }\n\n    function htmlDecode(input) {\n        var e = document.createElement('div');\n        e.innerHTML = input;\n        return e.childNodes[0].nodeValue;\n    }\n\n    window.onunload = function () {\n        try {\n            \/\/ Clear Fetching Session Variables\n            sessionStorage.removeItem('pill_all_last_page_loaded');\n            sessionStorage.removeItem('pill_our_people_last_page_loaded');\n            sessionStorage.removeItem('pill_patients_last_page_loaded');\n            sessionStorage.removeItem('pill_health_awareness_last_page_loaded');\n            sessionStorage.removeItem('pill_responsibility_last_page_loaded');\n            sessionStorage.removeItem('pill_innovation_last_page_loaded');\n            sessionStorage.removeItem('e2_all_stores_post_data');\n            sessionStorage.removeItem('isE2ToggleStyle');\n            sessionStorage.removeItem('e2FilterSource');\n            sessionStorage.removeItem('All');\n        } catch (ex) {\n            console.log(ex);\n        }\n    }\n\n    \/* Lazy Load More Posts\/Infinite Scroll *\/\n    function shouldLazyLoadMorePosts(el) {\n        var rect = el.getBoundingClientRect(),\n            elemBottom = rect.bottom,\n            isVisible = false;\n        isVisible = elemBottom <= (window.innerHeight || document.documentElement.clientHeight)\n        return isVisible;\n    }\n\n    allStoriesE2Init();\n    setAllStoriesE2Sliders();\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":9,"featured_media":2117,"parent":7768,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"bdl_company_name":[],"bdl_item_external_link":[],"editor_notices":[],"footnotes":""},"class_list":["post-32","page","type-page","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MSD Schweiz - Unsere Stories I msd.ch<\/title>\n<meta name=\"description\" content=\"Erfahren Sie in unseren Stories mehr \u00fcber uns!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MSD Schweiz - Unsere Stories I msd.ch\" \/>\n<meta property=\"og:description\" content=\"Erfahren Sie in unseren Stories mehr \u00fcber uns!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/\" \/>\n<meta property=\"og:site_name\" content=\"msd.ch\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-13T12:15:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2021\/05\/msd-kopie-.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/\",\"url\":\"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/\",\"name\":\"MSD Schweiz - Unsere Stories I msd.ch\",\"isPartOf\":{\"@id\":\"https:\/\/www.msd.ch\/de\/#website\"},\"datePublished\":\"2020-10-19T20:30:25+00:00\",\"dateModified\":\"2024-11-13T12:15:46+00:00\",\"description\":\"Erfahren Sie in unseren Stories mehr \u00fcber uns!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.msd.ch\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u00dcber uns\",\"item\":\"https:\/\/www.msd.ch\/de\/home\/about-us\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Stories\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.msd.ch\/de\/#website\",\"url\":\"https:\/\/www.msd.ch\/de\/\",\"name\":\"msd.ch\",\"description\":\"MSD erforscht und entwickelt Medikamente und Impfstoffe, die Leben retten und die Gesundheit von Patienten verbessern sollen. In der Schweiz setzen sich 1000 Mitarbeitende in Luzern und Z\u00fcrich daf\u00fcr ein.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.msd.ch\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MSD Schweiz - Unsere Stories I msd.ch","description":"Erfahren Sie in unseren Stories mehr \u00fcber uns!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/","og_locale":"en_US","og_type":"article","og_title":"MSD Schweiz - Unsere Stories I msd.ch","og_description":"Erfahren Sie in unseren Stories mehr \u00fcber uns!","og_url":"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/","og_site_name":"msd.ch","article_modified_time":"2024-11-13T12:15:46+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2021\/05\/msd-kopie-.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/","url":"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/","name":"MSD Schweiz - Unsere Stories I msd.ch","isPartOf":{"@id":"https:\/\/www.msd.ch\/de\/#website"},"datePublished":"2020-10-19T20:30:25+00:00","dateModified":"2024-11-13T12:15:46+00:00","description":"Erfahren Sie in unseren Stories mehr \u00fcber uns!","breadcrumb":{"@id":"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.msd.ch\/de\/home\/about-us\/stories\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.msd.ch\/de\/"},{"@type":"ListItem","position":2,"name":"\u00dcber uns","item":"https:\/\/www.msd.ch\/de\/home\/about-us\/"},{"@type":"ListItem","position":3,"name":"Stories"}]},{"@type":"WebSite","@id":"https:\/\/www.msd.ch\/de\/#website","url":"https:\/\/www.msd.ch\/de\/","name":"msd.ch","description":"MSD erforscht und entwickelt Medikamente und Impfstoffe, die Leben retten und die Gesundheit von Patienten verbessern sollen. In der Schweiz setzen sich 1000 Mitarbeitende in Luzern und Z\u00fcrich daf\u00fcr ein.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.msd.ch\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/pages\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":50,"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/pages\/32\/revisions"}],"predecessor-version":[{"id":13808,"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/pages\/32\/revisions\/13808"}],"up":[{"embeddable":true,"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/pages\/7768"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/media\/2117"}],"wp:attachment":[{"href":"https:\/\/www.msd.ch\/de\/wp-json\/wp\/v2\/media?parent=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}