{"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\/msd-schweiz-ein-arbeitgeber-mit-verantwortung-und-mit-herz\/\"\n                                aria-label=\"Wir sind ein Arbeitgeber mit Verantwortung \u2013 und mit Herz\"                            >\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\/2026\/04\/Child-holding-poppy-closeup_LO.jpg?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\/2026\/04\/Child-holding-poppy-closeup_LO.jpg?resize=656,399\">\n                                        <source media=\"(min-width: 1200px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2026\/04\/Child-holding-poppy-closeup_LO.jpg?resize=560,404\">\n                                        <img\n                                                data-src=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2026\/04\/Child-holding-poppy-closeup_LO.jpg?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\/msd-schweiz-ein-arbeitgeber-mit-verantwortung-und-mit-herz\/\"\n                                aria-label=\"Wir sind ein Arbeitgeber mit Verantwortung \u2013 und mit Herz\"                            >\n\t\t\t\t\t\t\t\t                                    <small class=\"tagline\">Unternehmen<\/small>\n\t\t\t\t\t\t\t\t                                <h4><span>Wir sind ein Arbeitgeber mit Verantwortung \u2013 und mit Herz<\/span><\/h4>\n                                <p>Wir bei MSD Schweiz sind \u00fcberzeugt: Unsere Arbeit macht einen Unterschied. F\u00fcr Patientinnen und Patienten, f\u00fcr die Gesellschaft \u2013 und f\u00fcr unsere Mitarbeitenden. Wir sind seit 1963 in Luzern zuhause \u2013 seit 1. April im neuen R\u00f6sslimatt-Quartier.<\/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\/msd-switzerland-new-headquarter\/\"\n                                aria-label=\"Unser neues Zuhause in der R\u00f6sslimatt\"                            >\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>Unser neues Zuhause in der R\u00f6sslimatt<\/span><\/h4>\n                                <p>F\u00fcr rund 850 unserer Mitarbeitenden beginnt ein neues Kapitel: An unserem neuen Hauptsitz im Luzerner R\u00f6sslimatt-Quartier kommen Kolleg:innen aus drei Luzerner Niederlassungen unter einem Dach zusammen. Wir freuen uns!<\/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\/msd-switzerland-new-headquarter\/\"\n                                aria-label=\"Unser neues Zuhause in der R\u00f6sslimatt\"                            >\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\/2026\/03\/Picture-Rosslimatt.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\/2026\/03\/Picture-Rosslimatt.jpg?resize=141,144\">\n                                        <source media=\"(min-width: 1200px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2026\/03\/Picture-Rosslimatt.jpg?resize=180,180\">\n                                        <img\n                                                data-src=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2026\/03\/Picture-Rosslimatt.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\/nachhaltigkeit-bei-msd-schweiz\/\"\n                                aria-label=\"Nachhaltigkeit bei MSD Schweiz \u2013 mehr als ein Versprechen\"                            >\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>Nachhaltigkeit bei MSD Schweiz \u2013 mehr als ein Versprechen<\/span><\/h4>\n                                <p>Nachhaltigkeit ist bei MSD Schweiz kein Schlagwort, sondern Teil unseres t\u00e4glichen Handelns. Unsere Nachhaltigkeits\u00fcbersicht (Sustainability Summary) zeigt, wie wir Verantwortung f\u00fcr Umwelt, Mitarbeitende und Gesellschaft \u00fcbernehmen.<\/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\/nachhaltigkeit-bei-msd-schweiz\/\"\n                                aria-label=\"Nachhaltigkeit bei MSD Schweiz \u2013 mehr als ein Versprechen\"                            >\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\/2026\/03\/Sustainability-Global-Health_1500x938.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\/2026\/03\/Sustainability-Global-Health_1500x938.jpg?resize=141,144\">\n                                        <source media=\"(min-width: 1200px)\"\n                                                data-srcset=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2026\/03\/Sustainability-Global-Health_1500x938.jpg?resize=180,180\">\n                                        <img\n                                                data-src=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2026\/03\/Sustainability-Global-Health_1500x938.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\/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 class=\"mco-featured-stories-e1-content-item-image-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                                    <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=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\/06\/rainbow-alliance_pride-month_6.png?resize=141,144\">\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=180,180\">\n                                        <img\n                                                data-src=\"https:\/\/www.msd.ch\/de\/wp-content\/uploads\/sites\/88\/2023\/06\/rainbow-alliance_pride-month_6.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>\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 mcc_image_optimization_enabled = false;\n    let mcc_image_quality_desktop = 80;\n    let mcc_image_quality_mobile = 70;\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    \/**\n     * Apply image optimization parameters\n     *\n     * @param url\n     * @param isDesktop\n     * @returns {string|*}\n     *\/\n    function applyImageOptimization(url, isDesktop = true) {\n        if (!mcc_image_optimization_enabled) return url;\n        let quality = isDesktop ? mcc_image_quality_desktop : mcc_image_quality_mobile;\n\n        return quality ? url + `&allow_lossy=1&quality=${quality}` : url;\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=\"${applyImageOptimization(post_image+'?w=321', false)} 1x,${applyImageOptimization(post_image+'?w=642', false)} 2x,${applyImageOptimization(post_image+'?w=963', false)} 3x\">\n                        <source media=\"(min-width: 768px) and (max-width: 1199px)\" ${img_dataprefix}srcset=\"${applyImageOptimization(post_image+'?w=656', false)} 1x,${applyImageOptimization(post_image+'?w=1312', false)} 2x,${applyImageOptimization(post_image+'?w=1968', false)} 3x\">\n                        <source media=\"(min-width: 1200px)\" ${img_dataprefix}srcset=\"${applyImageOptimization(post_image+'?w=852')} 1x,${applyImageOptimization(post_image+'?w=1704')} 2x,${applyImageOptimization(post_image+'?w=2556')} 3x\">\n                        <img\n                            ${img_dataprefix}src=\"${applyImageOptimization(post_image+'?w=852')}\"\n                            srcset=\"${applyImageOptimization(post_image+'?w=852')} 1x,${applyImageOptimization(post_image+'?w=1704')} 2x,${applyImageOptimization(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=\"${applyImageOptimization(post_image+'?w=321', false)} 1x,${applyImageOptimization(post_image+'?w=642', false)} 2x,${applyImageOptimization(post_image+'?w=963', false)} 3x\">\n                        <source media=\"(min-width: 768px) and (max-width: 1199px)\" ${img_dataprefix}srcset=\"${applyImageOptimization(post_image+'?w=313', false)} 1x,${applyImageOptimization(post_image+'?w=626', false)} 2x,${applyImageOptimization(post_image+'?w=939', false)} 3x\">\n                        <source media=\"(min-width: 1200px)\" ${img_dataprefix}srcset=\"${applyImageOptimization(post_image+'?w=405')} 1x,${applyImageOptimization(post_image+'?w=810')} 2x,${applyImageOptimization(post_image+'?w=1215')} 3x\">\n                        <img\n                            ${img_dataprefix}src=\"${applyImageOptimization(post_image+'?w=405')}\"\n                            srcset=\"${applyImageOptimization(post_image+'?w=405')} 1x,${applyImageOptimization(post_image+'?w=810')} 2x,${applyImageOptimization(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}]}}