mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
added some css
This commit is contained in:
parent
8e4d4868f4
commit
c05c9c0cc2
@ -1,13 +1,22 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>LWS Example</title>
|
<title>LWS Example</title>
|
||||||
<meta charset='UTF-8' />
|
<meta charset="UTF-8">
|
||||||
<script type='text/javascript' src='js/connection.js'></script>
|
<link rel="stylesheet" type="text/css" href="style/main.css">
|
||||||
<script type='text/javascript' src='js/connection_view.js'></script>
|
<script type="text/javascript" src="js/connection.js"></script>
|
||||||
<script type='text/javascript' src='js/filesystem.js'></script>
|
<script type="text/javascript" src="js/connection_view.js"></script>
|
||||||
<script type='text/javascript' src='js/filesystem_handler.js'></script>
|
<script type="text/javascript" src="js/filesystem.js"></script>
|
||||||
<script type='text/javascript' src='js/startup.js'></script>
|
<script type="text/javascript" src="js/filesystem_handler.js"></script>
|
||||||
|
<script type="text/javascript" src="js/startup.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<div class="page">
|
||||||
|
<div class="window">
|
||||||
|
<div class="title">Connection</div>
|
||||||
|
<div id="connection"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -43,8 +43,7 @@ function onmessage(message) {
|
|||||||
function startup() {
|
function startup() {
|
||||||
let connection = new Connection();
|
let connection = new Connection();
|
||||||
let connectionView = new ConnectionView(connection);
|
let connectionView = new ConnectionView(connection);
|
||||||
let body = document.querySelector("body");
|
document.getElementById('connection').appendChild(connectionView.element);
|
||||||
body.appendChild(connectionView.element);
|
|
||||||
|
|
||||||
let fs = new FileSystem({
|
let fs = new FileSystem({
|
||||||
mode: 0755,
|
mode: 0755,
|
||||||
|
47
src/app/www/style/main.css
Normal file
47
src/app/www/style/main.css
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
html, body {
|
||||||
|
font-family: monospace;
|
||||||
|
background-color: #c0c0c0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
margin-left: 50px;
|
||||||
|
margin-right: 50px;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.window {
|
||||||
|
border: 1px solid black;
|
||||||
|
background-color: black;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.window .title {
|
||||||
|
text-align: center;
|
||||||
|
color: #dba329;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #dba329;
|
||||||
|
}
|
||||||
|
|
||||||
|
.commands {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
column-count: 2;
|
||||||
|
column-width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content > div {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#connection {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user