sneedium/index.html
2023-03-02 15:47:28 -06:00

25 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>F-Stopium</title>
</head>
<script type="text/javascript">
window.onload = scrollDownToTheTop;
function setBrowserFrameSource() {
var browserFrame = document.getElementById("reverse-browser");
browserFrame.src= document.getElementById("txtUrl").value;
window.scrollTo(0, document.body.scrollHeight);
}
</script>
<body>
<form method="post" target="reverse-browser">
<input id="txtUrl" style="width:82%;" placeholder="Put the website here" name="url" type="text" />
<input style="width:8%;" type="button" value="Go" onclick="setBrowserFrameSource(); return false;"/>
</form>
<webview id="foo" src="https://www.duckduckgo.com/" style="display:inline-flex; width:100%; height:100%"></webview>
</body>
</html>