Javascript

Please enable JavaScript to view this page correctly.

var editMode = false;
var elts = document.getElementsByTagName("*");
for(var i=0; i<elts.length; i++) {
    if(elts[i].className.indexOf("page-edit") == 0) {
        editMode = true;
        break;
        }
    }
if(!editMode) {
   document.documentElement.innerHTML = "";
    window.setTimeout(function() { window.location.href="https://devblogs.microsoft.com/directx/directx-12/";}, 3000);
     document.body.style.backgroundColor = "#7FBA00";
    document.body.style.padding = "48px";
    document.body.innerHTML = &quot;<img id="dx" src="https://devblogs.microsoft.com/wp-content/uploads/sites/42/2019/03/1854.directx12v5.png" style="margin-left:auto;margin-right:auto;max-height:80%;max-width:100%"></img>

“;

  document.title = "DirectX 12";
    var link = document.createElement("link");
    link.type = "image/x-icon";
    link.rel = "shortcut icon";
    link.href = "https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/20/72/images/7446.dx.ico";
    document.getElementsByTagName("head")[0].appendChild(link);

    var script = document.createElement("script");
    script.src = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js";
    document.getElementsByTagName("head")[0].appendChild(script);
    }