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

29 lines
1.3 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>
<body>
<form method="post" target="reverse-browser">
<input id="txtUrl" style="width:72%;" placeholder="Put the website here" name="url" type="text" />
<input style="width:8%;" type="button" value="Go" onclick="setBrowserFrameSource(); return false;"/> <input style="width:8%;" type="button" value="<--" onclick="back(); return false;"/> <input style="width:8%;" type="button" value="-->" onclick="forward(); return false;"/>
</form>
<webview id="foo" src="https://www.duckduckgo.com/" style="display:inline-flex; width:100%; height:100%"></webview>
<script type="text/javascript">
var browserFrame = document.getElementById("foo");
function setBrowserFrameSource() {
browserFrame.loadURL(document.getElementById("txtUrl").value);
}
function back() {
browserFrame.goBack()
}
function forward() {
browserFrame.goForward()
}
</script>
</body>
</html>