JSFiddle - React, Tailwind, and code Playground

by Handyman

HTML

<script src="https://enterprise.microsoft.com/en-us/wp-content/themes/my-theme/js/vendor/object-fit.min.js?ver=055"></script>
<link rel="stylesheet" href="https://assets.onestore.ms/cdnfiles/external/mwf/long/v1/v1.22.3/css/uhf-west-european-default.min.css">
<script src="https://enterprise.microsoft.com/en-us/wp-content/themes/my-theme/js/vendor/jquery-2.2.4.min.js?ver=055"></script>
<base href="https://enterprise.microsoft.com/en-us/industries/discrete-manufacturing/">
<link rel='stylesheet' id='epgdt_maincss-css' href='https://enterprise.microsoft.com/en-us/wp-content/themes/my-theme/css/main.css?ver=055' type='text/css' media='all' />
<link rel="preload" as="style" id='epgdt_slickcss-defer-css' href='https://enterprise.microsoft.com/en-us/wp-content/themes/my-theme/css/vendor/slick.css?ver=055' type='text/css' media='all' />
<link rel="preload" as="style" id='epgdt_slickthemecss-defer-css' href='https://enterprise.microsoft.com/en-us/wp-content/themes/my-theme/css/vendor/slick-theme.css?ver=055' type='text/css' media='all' />

<body>
  <section id="headerArea" data-m='{"cN":"headerArea","cT":"Area_coreuiArea","id":"a1Body","sN":1,"aN":"Body"}'>
    <div id="headerRegion" data-region-key="headerregion" data-m='{"cN":"headerRegion","cT":"Region_coreui-region","id":"r1a1","sN":1,"aN":"a1"}'>

      <div id="headerUniversalHeader" data-m='{"cN":"headerUniversalHeader","cT":"Module_coreui-universalheader","id":"m1r1a1","sN":1,"aN":"r1a1"}' data-module-id="Category|headerRegion|headerRegion|headerUniversalHeader|coreui-universalheader">

        <header role="banner" class="c-universal-header context-uhf no-js " itemscope="itemscope" data-header-footprint="en-us/epgeam/epgeamheader_vnext" itemtype="http://schema.org/Organization">
          <div class="theme-light js-global-head f-closed " ms.pgarea='Universal Header'>
            <div>
              <button class="c-action-trigger c-glyph glyph-global-nav-button" aria-label="Toggle menu" aria-expanded="false"...

CSS

@media only screen and (min-width:768px) {
                      .x-uhf-zero-width {
                        visibility: hidden !important;
                        width: 0 !important;
                        padding: 0 !important;
                      }
                    }
                 
                    .video {
                      background-repeat: no-repeat;
                      background-size: 100% 100%;
                      width: 100%;
                      min-width: 100%;
                      display: block;
                      height: auto;
                      position: absolute;
                      top: 0;
                      z-index: 0;
                    }
                    
                    .c-card__hero {
                      z-index: 10;
                      left: 7%;
                    }
                    
                    @media screen and (max-width: 64em) {
                      .c-card__hero {
                      bottom: 50px !important;
                      }
                    }

JavaScript

window.aiq = window.aiq || [];
        window.aiq.push(['setConfig', 'useExistingJQuery', true]);
        window.aiq.push(['setConfig', 'useExistingjQueryUI', true]);

        function loadScriptAtOnload(url) {
          var scriptTag = document.createElement("script");
          scriptTag.src = url;
          scriptTag.async = true;
          document.body.appendChild(scriptTag);
        }

        var epgOnloadScripts = [];

        function addScriptToOnload(url) {
          epgOnloadScripts.push(url);
        }

        function loadScriptsAtOnload() {
          var len = epgOnloadScripts.length;
          for (var i = 0; i < len; i++) {
            loadScriptAtOnload(epgOnloadScripts[i]);
          }
        }

        if (window.addEventListener) {
          window.addEventListener("load", loadScriptsAtOnload, false);
        } else if (window.attachEvent) {
          window.attachEvent("onload", loadScriptsAtOnload);
        }
        addScriptToOnload("https://enterprise.microsoft.com/en-us/wp-content/themes/my-theme/js/main-compiled.js?ver=055");
        var dtajaxloader = {
          "ajaxurl": "https:\/\/enterprise.microsoft.com\/en-us\/wp-admin\/admin-ajax.php",
          "themeurl": "https:\/\/enterprise.microsoft.com\/en-us\/wp-content\/themes\/my-theme",
          "query_vars": "{\"category_name\":\"industries\\\/discrete-manufacturing\"}"
        };
        addScriptToOnload("https://enterprise.microsoft.com/en-us/wp-content/themes/my-theme/js/dt_ajax.js?ver=055");
        addScriptToOnload("https://enterprise.microsoft.com/en-us/wp-includes/js/wp-embed.min.js?ver=055");