Update index.html
This commit is contained in:
parent
005f6dad3f
commit
8c2a115ea7
1 changed files with 14 additions and 8 deletions
22
index.html
22
index.html
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue