mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Co-authored-by: Selis <selis@xynolabs.com> Co-authored-by: Selis <sirlionfur@hotmail.de> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: SatinIsle <thesatinisle@gmail.com> Co-authored-by: Heroman <alesha3000@list.ru> Co-authored-by: Casey <a.roaming.shadow@gmail.com> Co-authored-by: Raeschen <rycoop29@gmail.com>
30 lines
760 B
HTML
30 lines
760 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
</head>
|
|
<body>
|
|
<script>
|
|
//this is used over window.location because window.location has a character limit in IE.
|
|
function sendbyond(text) {
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open('GET', '?'+text, true);
|
|
xhr.send(null);
|
|
}
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open('GET', 'asset_data.json', true);
|
|
xhr.responseType = 'text';
|
|
xhr.onreadystatechange = function () {
|
|
if (xhr.readyState === 4) {
|
|
var status = xhr.status;
|
|
if (status >= 200 && status < 400) {
|
|
sendbyond('asset_cache_preload_data=' + encodeURIComponent(xhr.responseText));
|
|
}
|
|
}
|
|
};
|
|
xhr.send(null);
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|