2023-03-02 15:42:38 -06:00
|
|
|
<!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">
|
2023-03-02 15:47:28 -06:00
|
|
|
<title>F-Stopium</title>
|
2023-03-02 15:42:38 -06:00
|
|
|
</head>
|
|
|
|
<body>
|
2023-03-02 15:47:28 -06:00
|
|
|
<form method="post" target="reverse-browser">
|
2023-03-02 15:55:03 -06:00
|
|
|
<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;"/>
|
2023-03-02 15:47:28 -06:00
|
|
|
</form>
|
|
|
|
<webview id="foo" src="https://www.duckduckgo.com/" style="display:inline-flex; width:100%; height:100%"></webview>
|
2023-03-02 15:55:03 -06:00
|
|
|
<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>
|
2023-03-02 15:42:38 -06:00
|
|
|
</body>
|
|
|
|
</html>
|