Spaces:
No application file
No application file
Update index3.html
Browse files- index3.html +81 -132
index3.html
CHANGED
|
@@ -1,158 +1,107 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<title>Lalit Gangwani</title>
|
| 6 |
-
<meta
|
| 7 |
-
<
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
.
|
| 23 |
-
.lds-spinner{
|
| 24 |
-
.lds-spinner div{
|
| 25 |
-
|
| 26 |
-
.lds-spinner div:nth-child(1){transform:rotate(0deg);animation-delay:-1.1s}
|
| 27 |
-
.lds-spinner div:nth-child(2){transform:rotate(30deg);animation-delay:-1s}
|
| 28 |
-
.lds-spinner div:nth-child(3){transform:rotate(60deg);animation-delay:-0.9s}
|
| 29 |
-
.lds-spinner div:nth-child(4){transform:rotate(90deg);animation-delay:-0.8s}
|
| 30 |
-
.lds-spinner div:nth-child(5){transform:rotate(120deg);animation-delay:-0.7s}
|
| 31 |
-
.lds-spinner div:nth-child(6){transform:rotate(150deg);animation-delay:-0.6s}
|
| 32 |
-
.lds-spinner div:nth-child(7){transform:rotate(180deg);animation-delay:-0.5s}
|
| 33 |
-
.lds-spinner div:nth-child(8){transform:rotate(210deg);animation-delay:-0.4s}
|
| 34 |
-
.lds-spinner div:nth-child(9){transform:rotate(240deg);animation-delay:-0.3s}
|
| 35 |
-
.lds-spinner div:nth-child(10){transform:rotate(270deg);animation-delay:-0.2s}
|
| 36 |
-
.lds-spinner div:nth-child(11){transform:rotate(300deg);animation-delay:-0.1s}
|
| 37 |
-
.lds-spinner div:nth-child(12){transform:rotate(330deg);animation-delay:0s}
|
| 38 |
-
@keyframes lds-spinner{0%{opacity:1}100%{opacity:0}}
|
| 39 |
</style>
|
| 40 |
</head>
|
| 41 |
<body>
|
| 42 |
-
<div
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
<canvas id="canvas" width="800" height="600"></canvas>
|
| 45 |
|
| 46 |
-
<script src="VirtualXPLoader.js"></script>
|
| 47 |
<script>
|
| 48 |
var finalResponse;
|
| 49 |
-
function getISOImage()
|
| 50 |
{
|
| 51 |
var oReq = new XMLHttpRequest();
|
| 52 |
-
oReq.open("GET", "VirtualXP.iso", true);
|
| 53 |
oReq.responseType = "blob";
|
| 54 |
oReq.onload = function (oEvent)
|
| 55 |
{
|
| 56 |
-
if (oReq.readyState==oReq.DONE)
|
| 57 |
{
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
opts.mem = "256";
|
| 65 |
-
opts.vgamem = "16";
|
| 66 |
-
opts.fast = true;
|
| 67 |
-
opts.bios = "VirtualXPBIOS.bin";
|
| 68 |
-
opts.vgabios = "VirtualXPVGA.bin";
|
| 69 |
-
opts.apic = false;
|
| 70 |
-
opts.acpi = false;
|
| 71 |
-
opts.pci = false;
|
| 72 |
-
opts.pcivga = false;
|
| 73 |
-
opts.floppy = false;
|
| 74 |
-
opts.winnt_hack = true;
|
| 75 |
-
opts.canvas = document.getElementById("canvas"); [span_9](start_span)//[span_9](end_span)
|
| 76 |
-
opts["cda"] = new File(["empty.txt"], "filename"); [span_10](start_span)//[span_10](end_span)
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
{
|
| 81 |
-
[span_12](start_span)halfix.run(); //[span_12](end_span)
|
| 82 |
-
setInterval(function(){try{halfix.updateScreen();}catch(err){}}, 1000);
|
| 83 |
-
setTimeout(function()
|
| 84 |
-
{
|
| 85 |
-
document.getElementsByClassName("pleasewait")[0].style.display = "none";
|
| 86 |
-
document.getElementsByClassName("percentage")[0].style.display = "none";
|
| 87 |
-
},5000); [span_13](start_span)//[span_13](end_span)
|
| 88 |
-
});
|
| 89 |
-
}
|
| 90 |
-
else
|
| 91 |
{
|
| 92 |
-
|
| 93 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
}
|
| 95 |
};
|
| 96 |
-
oReq.onprogress = function (oEvent)
|
| 97 |
{
|
| 98 |
-
if (oEvent.total>0)
|
| 99 |
-
|
| 100 |
-
document.getElementsByClassName("percentage")[0].innerHTML = Math.floor(oEvent.loaded * 100 / oEvent.total) + "%"; [span_15](start_span)//[span_15](end_span)
|
| 101 |
}
|
| 102 |
};
|
| 103 |
-
oReq.
|
| 104 |
-
oReq.ontimeout = function(e){setTimeout(function(){getISOImage();},1000);}; [span_17](start_span)//[span_17](end_span)
|
| 105 |
-
oReq.send(null); [span_18](start_span)//[span_18](end_span)
|
| 106 |
}
|
| 107 |
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
[span_19](start_span)if (e.altKey || e.ctrlKey || e.metaKey || e.keyCode == 27) //[span_19](end_span)
|
| 114 |
-
{
|
| 115 |
-
e.preventDefault();
|
| 116 |
-
e.stopPropagation(); [span_20](start_span)//[span_20](end_span)
|
| 117 |
-
e.stopImmediatePropagation();
|
| 118 |
-
}
|
| 119 |
-
}
|
| 120 |
-
catch(err)
|
| 121 |
-
{
|
| 122 |
-
}
|
| 123 |
-
}
|
| 124 |
-
window.oncontextmenu = function()
|
| 125 |
-
{
|
| 126 |
-
return false; [span_21](start_span)//[span_21](end_span)
|
| 127 |
-
}
|
| 128 |
-
window.addEventListener("load", function()
|
| 129 |
-
{
|
| 130 |
-
document.getElementById("canvas").addEventListener("click",function(event)
|
| 131 |
-
{
|
| 132 |
-
try
|
| 133 |
-
{
|
| 134 |
-
[span_22](start_span)document.getElementById("canvas").requestPointerLock(); //[span_22](end_span)
|
| 135 |
-
}
|
| 136 |
-
catch(err)
|
| 137 |
-
{
|
| 138 |
-
}
|
| 139 |
-
});
|
| 140 |
-
document.addEventListener("keydown",function(e){blockSpecialKeys(e)});
|
| 141 |
-
document.addEventListener("keypress",function(e){blockSpecialKeys(e)});
|
| 142 |
-
document.addEventListener("keyup", function(e){blockSpecialKeys(e)});
|
| 143 |
-
[span_23](start_span)if (window.top == window.self) //[span_23](end_span)
|
| 144 |
-
{
|
| 145 |
-
getISOImage();
|
| 146 |
-
}
|
| 147 |
-
});
|
| 148 |
-
if ("serviceWorker" in navigator)
|
| 149 |
-
{
|
| 150 |
-
[span_24](start_span)navigator.serviceWorker.register("worker.js").then(function(registration) //[span_24](end_span)
|
| 151 |
-
{
|
| 152 |
-
}).catch(function(err)
|
| 153 |
-
{
|
| 154 |
-
});
|
| 155 |
-
}
|
| 156 |
</script>
|
| 157 |
</body>
|
| 158 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html> // यह ब्राउज़र को बताता है कि यह HTML5 दस्तावेज़ है।
|
| 2 |
+
<html lang="en"> // यह दस्तावेज़ की भाषा इंग्लिश सेट करता है।
|
| 3 |
+
<head> // यह सेक्शन मेटाडेटा और स्टाइलिंग के लिए है।
|
| 4 |
+
<meta charset="UTF-8"> // यह कैरेक्टर्स को सही ढंग से दिखाने के लिए है।
|
| 5 |
+
<title>Lalit Gangwani</title> // ब्राउज़र टैब का नाम।
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/> // मोबाइल स्क्रीन फिटिंग के लिए।
|
| 7 |
+
<style> // यहाँ से डिज़ाइन (CSS) शुरू होती है।
|
| 8 |
+
/* पूरे पेज को सेंटर करने और प्रोफेशनल दिखाने के लिए स्टाइल */
|
| 9 |
+
body, html {
|
| 10 |
+
background: radial-gradient(circle, #2b5876 0%, #4e4376 100%); // बैकग्राउंड में एक गहरा नीला शेड।
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 0;
|
| 13 |
+
width: 100%;
|
| 14 |
+
height: 100%;
|
| 15 |
+
display: flex; // कंटेंट को लचीला (Flex) बनाता है।
|
| 16 |
+
justify-content: center; // कंटेंट को आड़ा (Horizontal) सेंटर करता है।
|
| 17 |
+
align-items: center; // कंटेंट को खड़ा (Vertical) सेंटर करता है।
|
| 18 |
+
overflow: hidden; // फालतू स्क्रॉल बार को रोकता है।
|
| 19 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
#canvas {
|
| 23 |
+
box-shadow: 0 0 50px rgba(0,0,0,0.5); // स्क्रीन के चारों तरफ परछाई ताकि वह उभर कर दिखे।
|
| 24 |
+
border: 2px solid #333; // स्क्रीन के चारों तरफ एक पतला बॉर्डर।
|
| 25 |
+
background-color: #000;
|
| 26 |
+
max-width: 100vw; // मोबाइल पर स्क्रीन बाहर न जाए।
|
| 27 |
+
max-height: 100vh;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/* लोडिंग स्क्रीन को सुंदर बनाने के लिए */
|
| 31 |
+
.loading-container {
|
| 32 |
+
position: absolute;
|
| 33 |
+
text-align: center;
|
| 34 |
+
color: white;
|
| 35 |
+
z-index: 10; // इसे स्क्रीन के ऊपर रखने के लिए।
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.percentage {
|
| 39 |
+
font-size: 24px;
|
| 40 |
+
margin-top: 20px;
|
| 41 |
+
font-weight: bold;
|
| 42 |
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
|
| 43 |
+
}
|
| 44 |
|
| 45 |
+
/* स्पिनर एनीमेशन */
|
| 46 |
+
.lds-spinner { color: white; display: inline-block; position: relative; width: 64px; height: 64px; }
|
| 47 |
+
.lds-spinner div { transform-origin: 32px 32px; animation: lds-spinner 1.2s linear infinite; }
|
| 48 |
+
.lds-spinner div:after { content: " "; display: block; position: fixed; top: 3px; left: 29px; width: 5px; height: 14px; border-radius: 20%; background: #fff; }
|
| 49 |
+
@keyframes lds-spinner { 0% { opacity: 1; } 100% { opacity: 0; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
</style>
|
| 51 |
</head>
|
| 52 |
<body>
|
| 53 |
+
<div id="loader" class="loading-container">
|
| 54 |
+
<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>
|
| 55 |
+
<div class="percentage" id="percent-text">0%</div>
|
| 56 |
+
<p>Lalit's Virtual XP is loading...</p>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
<canvas id="canvas" width="800" height="600"></canvas>
|
| 60 |
|
| 61 |
+
<script src="VirtualXPLoader.js"></script> // एमुलेटर की कोर फाइल।
|
| 62 |
<script>
|
| 63 |
var finalResponse;
|
| 64 |
+
function getISOImage() // फाइल डाउनलोड फंक्शन।
|
| 65 |
{
|
| 66 |
var oReq = new XMLHttpRequest();
|
| 67 |
+
oReq.open("GET", "VirtualXP.iso", true);
|
| 68 |
oReq.responseType = "blob";
|
| 69 |
oReq.onload = function (oEvent)
|
| 70 |
{
|
| 71 |
+
if (oReq.readyState==oReq.DONE && oReq.status==200)
|
| 72 |
{
|
| 73 |
+
finalResponse = oReq.response;
|
| 74 |
+
var opts = { mem: "128", vgamem: "8", fast: true, winnt_hack: true }; // स्टेबल सेटिंग्स।
|
| 75 |
+
opts.bios = "VirtualXPBIOS.bin";
|
| 76 |
+
opts.vgabios = "VirtualXPVGA.bin";
|
| 77 |
+
opts.canvas = document.getElementById("canvas");
|
| 78 |
+
opts["cda"] = new File(["empty.txt"], "filename");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
+
var halfix = new Halfix(opts);
|
| 81 |
+
halfix.init(function()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
{
|
| 83 |
+
halfix.run();
|
| 84 |
+
setInterval(function(){try{halfix.updateScreen();}catch(err){}}, 1000);
|
| 85 |
+
setTimeout(function() {
|
| 86 |
+
document.getElementById("loader").style.display = "none"; // लोड होने पर स्पिनर हटाना।
|
| 87 |
+
}, 5000);
|
| 88 |
+
});
|
| 89 |
}
|
| 90 |
};
|
| 91 |
+
oReq.onprogress = function (oEvent) // प्रोग्रेस बार अपडेट।
|
| 92 |
{
|
| 93 |
+
if (oEvent.total > 0) {
|
| 94 |
+
document.getElementById("percent-text").innerHTML = Math.floor(oEvent.loaded * 100 / oEvent.total) + "%";
|
|
|
|
| 95 |
}
|
| 96 |
};
|
| 97 |
+
oReq.send(null);
|
|
|
|
|
|
|
| 98 |
}
|
| 99 |
|
| 100 |
+
// माउस और कीबोर्ड लॉक करने के फंक्शन्स
|
| 101 |
+
window.oncontextmenu = function() { return false; }; // राइट क्लिक बंद।
|
| 102 |
+
document.getElementById("canvas").onclick = function() { this.requestPointerLock(); }; // क्लिक पर माउस लॉक।
|
| 103 |
+
|
| 104 |
+
window.onload = function() { getISOImage(); }; // पेज खुलते ही शुरू करें।
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
</script>
|
| 106 |
</body>
|
| 107 |
</html>
|