Clean commit: remove all heavy binaries and history
This commit is contained in:
174
index.html
Executable file
174
index.html
Executable file
@@ -0,0 +1,174 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>MKTECH | OpenSpeedTest™</title>
|
||||
<meta name="description" content="Only for internal propose by MKTECH" />
|
||||
|
||||
<!-- Google Fonts for premium typography -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap"
|
||||
rel="stylesheet">
|
||||
|
||||
<link href="assets/css/app.css" rel="stylesheet" type="text/css" />
|
||||
<script>
|
||||
window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches && (document.head.innerHTML += '<link id="darkmode" rel="stylesheet" href="assets/css/darkmode.css" type="text/css"/>');
|
||||
function getCookieValue(b, a) {
|
||||
return (a = document.cookie.match("(^|;)\\s*" + b + "\\s*=\\s*([^;]+)")) ? a.pop() : ""
|
||||
}
|
||||
if ("light" === getCookieValue("mode")) {
|
||||
var darkStyle = document.getElementById("darkmode");
|
||||
darkStyle && darkStyle.parentNode.removeChild(darkStyle)
|
||||
}
|
||||
</script>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta property="og:image" content="assets/images/img.png" />
|
||||
<link rel='canonical' href='https://megakreasitech.com' />
|
||||
<link rel="icon" type="image/svg+xml" href="assets/images/favicon.svg">
|
||||
<link rel="shortcut icon" href="assets/images/favicon.svg">
|
||||
<meta name="msapplication-TileColor" content="#ffc40d">
|
||||
<meta name="msapplication-config" content="assets/images/icons/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
// Add or Remove Server --> Automatically choose the one with the least latency
|
||||
var openSpeedTestServerList = [
|
||||
{ "ServerName": "Home", "Download": "downloading", "Upload": "upload", "ServerIcon": "DefaultIcon" }
|
||||
];
|
||||
|
||||
var pingSamples = 10;
|
||||
var jitterFinalSample = 0.5;
|
||||
var setPingSamples = true;
|
||||
var pingTimeOut = 5000;
|
||||
var setPingTimeout = true;
|
||||
var pingMethod = "GET";
|
||||
var pingFile = "Upload";
|
||||
var ulDataSize = 30;
|
||||
var ulDelay = 300;
|
||||
var dlDelay = 300;
|
||||
var upAdjust = 1.04;
|
||||
var dlAdjust = 1.04;
|
||||
var enableClean = true;
|
||||
var dlDuration = 12;
|
||||
var ulDuration = 12;
|
||||
var dlThreads = 6;
|
||||
var ulThreads = 6;
|
||||
var setHTTPReq = true;
|
||||
var saveData = false;
|
||||
var saveDataURL = "//yourDatabase.Server.com:4500/save?data=";
|
||||
var stressTest = true;
|
||||
var selectTest = true;
|
||||
var selectServer = true;
|
||||
var enableRun = true;
|
||||
|
||||
function ostOnload() {
|
||||
console.log("OpenSpeedTest.com V2.5.4 Loaded!")
|
||||
console.log("Now Press the Start Button or HIT Enter.")
|
||||
}
|
||||
var openChannel = "dev";
|
||||
</script>
|
||||
|
||||
<div class="app-layout">
|
||||
<header class="app-header">
|
||||
<img class="header-logo-img" src="assets/images/logoMKT.png" alt="Logo" />
|
||||
<div class="header-text">
|
||||
<h1>Internal SPEEDTEST</h1>
|
||||
<span class="header-badge">Megakreasitech™</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="app-card">
|
||||
<div id="loading_app" class="spinner">
|
||||
<div class="bounce1"></div>
|
||||
<div class="bounce2"></div>
|
||||
<div class="bounce3"></div>
|
||||
</div>
|
||||
|
||||
<object style="visibility:hidden" id="OpenSpeedTest-UI" data="assets/images/app.svg?v=7"
|
||||
type="image/svg+xml"></object>
|
||||
|
||||
<!-- Informasi IP Client -->
|
||||
<div id="client-ip-container" class="client-ip-container">
|
||||
<span>Your IP Address :</span>
|
||||
<span id="client-ip-text">Fetching...</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Uji Lagi (Refresh) -->
|
||||
<button id="refresh-btn" class="refresh-btn" onclick="window.location.reload()">
|
||||
<span>Refresh</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z" />
|
||||
<path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<div class="Credits">
|
||||
<p>
|
||||
<a href="https://megakreasitech.com">SpeedTest by Megakreasitech™</a>
|
||||
</p>
|
||||
<p class="copyright">© Megakreasitech™ All Rights Reserved.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="assets/js/app-2.5.4.js"></script>
|
||||
<script src="assets/js/darkmode.js"></script>
|
||||
<script>
|
||||
// Fetch IP Address
|
||||
function fetchClientIP() {
|
||||
fetch('/getIP')
|
||||
.then(function (response) {
|
||||
if (!response.ok) throw new Error('Network response was not ok');
|
||||
return response.text();
|
||||
})
|
||||
.then(function (ip) {
|
||||
var ipText = document.getElementById("client-ip-text");
|
||||
if (ipText) {
|
||||
ipText.textContent = ip.trim();
|
||||
}
|
||||
})
|
||||
.catch(function (err) {
|
||||
var ipText = document.getElementById("client-ip-text");
|
||||
if (ipText) {
|
||||
ipText.textContent = "127.0.0.1";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Ambil IP saat halaman dimuat
|
||||
window.addEventListener('DOMContentLoaded', fetchClientIP);
|
||||
|
||||
// MutationObserver untuk memunculkan tombol refresh secara otomatis saat tes selesai
|
||||
window.addEventListener('load', function () {
|
||||
var checkInterval = setInterval(function () {
|
||||
var statusEl = document.getElementById("oDoLiveStatus");
|
||||
if (statusEl) {
|
||||
clearInterval(checkInterval);
|
||||
var observer = new MutationObserver(function (mutations) {
|
||||
mutations.forEach(function (mutation) {
|
||||
var text = statusEl.textContent ? statusEl.textContent.trim().toLowerCase() : "";
|
||||
var speedEl = document.getElementById("oDoLiveSpeed");
|
||||
var speedText = speedEl && speedEl.textContent ? speedEl.textContent.trim().toLowerCase() : "";
|
||||
|
||||
if (text === "all done" || speedText === "network error") {
|
||||
var refreshBtn = document.getElementById("refresh-btn");
|
||||
if (refreshBtn) {
|
||||
refreshBtn.style.display = "flex";
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
observer.observe(statusEl, { childList: true, characterData: true, subtree: true });
|
||||
}
|
||||
}, 500);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user