Basic IFC load
TODO: separate styles, use CSS library...
This commit is contained in:
24
index.html
24
index.html
@@ -17,9 +17,31 @@
|
||||
}
|
||||
</script>
|
||||
<script src='main.js' type="module"></script>
|
||||
<style>
|
||||
input[type="file"] {
|
||||
opacity: 0;
|
||||
}
|
||||
label[for="load-ifc"] {
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 4rem;
|
||||
background-color: #ddd;
|
||||
border: 1px #333 solid;
|
||||
border-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="scene" style="min-height: 100vh;"></div>
|
||||
<div id="ui" style="position: absolute; top: 2rem; min-width: 100vw; z-index: 5;"></div>
|
||||
<div id="ui" style="position: absolute; top: 2rem; min-width: 100vw; z-index: 5;">
|
||||
<label for="load-ifc">Apri file IFC</label>
|
||||
<input
|
||||
type="file"
|
||||
id="load-ifc"
|
||||
name="load-ifc"
|
||||
accept=".ifc" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user