Update index.html

This commit is contained in:
NodeMixaholic 2023-03-02 15:47:28 -06:00 committed by GitHub
parent 005f6dad3f
commit 8c2a115ea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,15 +5,21 @@
<!-- 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>Hello World!</title>
<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>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
and Electron <span id="electron-version"></span>.
<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
<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>