Spaces:
No application file
No application file
File size: 6,120 Bytes
ca4728d d344831 ca4728d f263564 ca4728d f263564 ca4728d f263564 ca4728d f263564 ca4728d f263564 ca4728d f263564 ca4728d f263564 ca4728d f263564 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Lalit Gangwani</title>
<meta property="og:title" content="Lalit Gangwani"/>
<meta property="og:type" content="website"/>
<meta property="og:site_name" content="Lalit Gangwani"/>
<meta name="theme-color" content="#000000"/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<link rel="manifest" href="VirtualXP.json"/>
<link rel="icon" sizes="16x16" type="image/png" href="VirtualXPFavIcon_16x16.png"/>
<link rel="icon" sizes="192x192" type="image/png" href="VirtualXPFavIcon_192x192.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
<style>
html,body{background-color:black;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:default}
#canvas{position:fixed;left:0;right:0;top:0;bottom:0;height:100%;width:100%}
.percentage{position:fixed;width:64px;height:64px;left:0;right:0;top:120px;bottom:0;margin:auto auto;border:0;font-family:Arial;font-weight:bold;font-size:20px;background-color:black;color:white;text-align:center}
.pleasewait{position:fixed;width:64px;height:64px;left:0;right:0;top:-50px;bottom:0;margin:auto auto;border:0}
.lds-spinner{color:white;display:inline-block;position:relative;width:64px;height:64px}
.lds-spinner div{transform-origin:32px 32px;animation:lds-spinner 1.2s linear infinite}
.lds-spinner div:after{content:" ";display:block;position:fixed;top:3px;left:29px;width:5px;height:14px;border-radius:20%;background:white}
.lds-spinner div:nth-child(1){transform:rotate(0deg);animation-delay:-1.1s}
.lds-spinner div:nth-child(2){transform:rotate(30deg);animation-delay:-1s}
.lds-spinner div:nth-child(3){transform:rotate(60deg);animation-delay:-0.9s}
.lds-spinner div:nth-child(4){transform:rotate(90deg);animation-delay:-0.8s}
.lds-spinner div:nth-child(5){transform:rotate(120deg);animation-delay:-0.7s}
.lds-spinner div:nth-child(6){transform:rotate(150deg);animation-delay:-0.6s}
.lds-spinner div:nth-child(7){transform:rotate(180deg);animation-delay:-0.5s}
.lds-spinner div:nth-child(8){transform:rotate(210deg);animation-delay:-0.4s}
.lds-spinner div:nth-child(9){transform:rotate(240deg);animation-delay:-0.3s}
.lds-spinner div:nth-child(10){transform:rotate(270deg);animation-delay:-0.2s}
.lds-spinner div:nth-child(11){transform:rotate(300deg);animation-delay:-0.1s}
.lds-spinner div:nth-child(12){transform:rotate(330deg);animation-delay:0s}
@keyframes lds-spinner{0%{opacity:1}100%{opacity:0}}
</style>
</head>
<body>
<div class="pleasewait"><div class="lds-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div>
<div class="percentage"></div>
<canvas id="canvas" width="800" height="600"></canvas>
<script src="VirtualXPLoader.js"></script>
<script>
var finalResponse;
function getISOImage()
{
var oReq = new XMLHttpRequest();
oReq.open("GET", "VirtualXP.iso", true);
oReq.responseType = "blob";
oReq.onload = function (oEvent)
{
if (oReq.readyState==oReq.DONE)
{
if (oReq.status==200)
{
finalResponse = oReq.response;
var opts = {reportSpeed: function(s){document.title = "Lalit Gangwani - " + s + " MIPS";}};
// बेहतर परफॉरमेंस और स्पेस के लिए RAM को 512MB और VGA को 32MB किया गया
opts.mem = "512";
opts.vgamem = "32";
opts.fast = true;
opts.bios = "VirtualXPBIOS.bin";
opts.vgabios = "VirtualXPVGA.bin";
opts.apic = false;
opts.acpi = false;
opts.pci = false;
opts.pcivga = false;
opts.floppy = false;
opts.winnt_hack = true;
opts.canvas = document.getElementById("canvas");
opts["cda"] = new File(["empty.txt"], "filename");
var halfix = new Halfix(opts);
halfix.init(function()
{
halfix.run();
setInterval(function(){try{halfix.updateScreen();}catch(err){}}, 1000);
setTimeout(function()
{
document.getElementsByClassName("pleasewait")[0].style.display = "none";
document.getElementsByClassName("percentage")[0].style.display = "none";
},5000);
});
}
else
{
getISOImage();
}
}
};
oReq.onprogress = function (oEvent)
{
if (oEvent.total>0)
{
document.getElementsByClassName("percentage")[0].innerHTML = Math.floor(oEvent.loaded * 100 / oEvent.total) + "%";
}
};
oReq.onerror = function(){setTimeout(function(){getISOImage();},1000);};
oReq.ontimeout = function(e){setTimeout(function(){getISOImage();},1000);};
oReq.send(null);
}
function blockSpecialKeys(e)
{
try
{
e = e || window.event;
if (e.altKey || e.ctrlKey || e.metaKey || e.keyCode == 27)
{
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
}
}
catch(err)
{
}
}
window.oncontextmenu = function()
{
return false;
}
window.addEventListener("load", function()
{
document.getElementById("canvas").addEventListener("click",function(event)
{
try
{
document.getElementById("canvas").requestPointerLock();
}
catch(err)
{
}
});
document.addEventListener("keydown",function(e){blockSpecialKeys(e)});
document.addEventListener("keypress",function(e){blockSpecialKeys(e)});
document.addEventListener("keyup", function(e){blockSpecialKeys(e)});
if (window.top == window.self)
{
getISOImage();
}
});
if ("serviceWorker" in navigator)
{
navigator.serviceWorker.register("worker.js").then(function(registration)
{
}).catch(function(err)
{
});
}
</script>
</body>
</html>
|