First commit.

This commit is contained in:
2018-12-29 11:52:55 +01:00
commit 450ff89f59
12 changed files with 5239 additions and 0 deletions
+17
View File
@@ -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;
}
+8
View File
@@ -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);
});
+15
View File
@@ -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>
+13
View File
@@ -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/");
});