journey/server/templates/master.mjs
Linus Miller ed79c5b7a6 convert server files to esm
- update deps
- remove midwest-service-errors
2020-09-06 19:49:49 +02:00

23 lines
1.1 KiB
JavaScript

export default ({ articleUrl, protocol, hostname, websocketsPort, INITIAL_STATE, js, css, cssFile }) => `<!doctype html>
<html>
<head>
<title>Journey</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<link type="text/css" rel="stylesheet" href=${`/app` + (css ? css.suffix : '') + '.css'} />
</head>
<body>
<div class="container">
<div data-location="home" class="location l01"><div data-location="home" class="item"><span>Home</span></div></div>
<div data-location="office" class="location l02"><div data-location="office" class="item"><span>Office</span></div></div>
<div data-location="brother" class="location l03"><div data-location="brother" class="item"><span>Brother</span></div></div>
<div data-location="therapist" class="location l04"><div data-location="therapist" class="item"><span>The Rapist</span></div></div>
</div>
<div id="results"></div>
<script src=${'/app' + (js ? js.suffix : '') + '.js'}></script>
</body>
</html>
}`