mirror of
https://github.com/D-Modem/WebOne-go.git
synced 2026-11-28 20:48:05 -08:00
A Go translation of WebOne (github.com/atauenis/webone, commit e940b43), the HTTP 1.x proxy that lets old browsers use today's web: config loader with sets of edits and .NET regular expressions, the HTTP/1.0-1.1 server with keep-alive, HTTPS fetching and patching, code pages, the CONNECT proxy (MITM, pass-through, non-HTTP tunnels), the CA and site certificates (MD5/SHA-1 signing included), internal and error pages, Web Archive fallback, converters, web FTP client and online video. WebOne's licence, configuration files and html pages are kept. Go-only options: SslCaDirectory signs with the D-Modem BBS's proxy sub-CA (or its root), SslTrustOwnCA, and DnsServer. README lists the differences: no SSL 2.0/3.0 in Go's TLS, and the upstream bugs fixed on purpose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRRH4kntyPfrY1bFWC3
47 lines
1.4 KiB
HTML
47 lines
1.4 KiB
HTML
<html>
|
|
<head>
|
|
<title>Video player - HTML5</title>
|
|
<meta charset="utf-8"/>
|
|
<link href="rovp.css" rel="stylesheet" />
|
|
<style type='text/css'></style>
|
|
</head>
|
|
<body class="dark">
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
|
|
<tr>
|
|
<td>
|
|
<center><video id='MediaPlayer' src='%VideoUrl%' controls autoplay>Try another player type, as HTML5 is not supported.</video></center>
|
|
<center id="InfoBar"></center>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script>
|
|
var getJSON = function(url, callback) {
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open('GET', url, true);
|
|
xhr.responseType = 'json';
|
|
xhr.onload = function() {
|
|
var status = xhr.status;
|
|
if (status === 200) {
|
|
callback(null, xhr.response);
|
|
} else {
|
|
callback(status, xhr.response);
|
|
}
|
|
};
|
|
xhr.send();
|
|
document.getElementById('InfoBar').innerHTML = '<p>Loading description...</p>';
|
|
};
|
|
|
|
getJSON('%JsonUrl%',
|
|
function(err, data) {
|
|
document.getElementById('InfoBar').innerHTML = '';
|
|
if (err !== null) {
|
|
document.getElementById('InfoBar').innerHTML = '<p>No details: ' + err + '</p>';
|
|
} else {
|
|
document.getElementById('InfoBar').innerHTML = '<h2>' + data.fulltitle + '</h2>';
|
|
document.getElementById('InfoBar').innerHTML += '<p>Uploaded on ' + data.upload_date + ' by ' + data.uploader + '</p>';
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |