c220e54bb8
This merge request has full JS routing for calling specific endpoints. Game is fully playable but doesn't have polling yet. This version already has the UI changes adressed in MR #43 so first merge MR #43 and then this one or only merge this one because it already has the UI changes :) Co-authored-by: LQ63 <lkhermann@web.de> Reviewed-on: #50 Reviewed-by: Janis <janis-e@gmx.de>
30 lines
1.6 KiB
HTML
30 lines
1.6 KiB
HTML
@*
|
|
* This template is called from the `index` template. This template
|
|
* handles the rendering of the page header and body tags. It takes
|
|
* two arguments, a `String` for the title of the page and an `Html`
|
|
* object to insert into the body of the page.
|
|
*@
|
|
@(title: String)(content: Html)
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
@* Here's where we render the page title `String`. *@
|
|
<title>@title</title>
|
|
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")">
|
|
<link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
|
|
</head>
|
|
|
|
<body class="d-flex flex-column min-vh-100">
|
|
@* And here's where we render the `Html` object containing
|
|
* the page content. *@
|
|
@content
|
|
<script src="@routes.JavaScriptRoutingController.javascriptRoutes()" type="text/javascript"></script>
|
|
<script src="@routes.Assets.versioned("javascripts/main.js")" type="text/javascript"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
</body>
|
|
</html>
|