First commit.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
div#container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body, html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
console.log("API:", mappBoard);
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var board = new mappBoard.Board("container");
|
||||
|
||||
window.addEventListener('resize', () => board.resize(window.innerWidth, window.innerHeight), false);
|
||||
board.resize(window.innerWidth, window.innerHeight);
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Mapp Test Setup</title>
|
||||
<link rel="stylesheet" href="/client.css" />
|
||||
<script src="/dist/mapp-board-umd.js"></script>
|
||||
<script src="/client.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
const express = require("express");
|
||||
const path = require("path");
|
||||
|
||||
const app = express();
|
||||
|
||||
app.get("/", express.static(path.join(__dirname, "./index.html")));
|
||||
|
||||
app.use("/dist", express.static(path.join(__dirname, "../dist")));
|
||||
app.use(express.static(path.join(__dirname, "./")));
|
||||
|
||||
app.listen(8030, () => {
|
||||
console.log("Listening to http://localhost:8030/");
|
||||
});
|
||||
Reference in New Issue
Block a user