34 lines
1 KiB
HTML
34 lines
1 KiB
HTML
<!doctype html>
|
|
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
|
<script src="https://code.jquery.com/ui/1.14.0/jquery-ui.js"></script>
|
|
<script src="https://unpkg.com/htmx.org@2.0.3"></script>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://code.jquery.com/ui/1.14.0/themes/base/jquery-ui.css"
|
|
/>
|
|
<link rel="stylesheet" href="/resources/demos/style.css" />
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Some fancy template index page</title>
|
|
</head>
|
|
<body>
|
|
<h1>Some Hello {{ .Username}}!!</h1>
|
|
<button hx-put="/messages">Put To Messages</button>
|
|
<div class="ui-widget">
|
|
<label for="tags">Tags: </label>
|
|
<input id="tags" />
|
|
</div>
|
|
<button hx-get="/exercises/render" hx-target="#equipmentData">Press to test</button>
|
|
<div id="equipmentData"></div>
|
|
</body>
|
|
</html>
|
|
<script>
|
|
$(function () {
|
|
var availableTags = {{.TrainingItems}};
|
|
$("#tags").autocomplete({
|
|
source: availableTags,
|
|
});
|
|
});
|
|
</script>
|