91 lines
3.1 KiB
Plaintext
91 lines
3.1 KiB
Plaintext
@page "/"
|
|
@namespace ErsatzTV.Pages
|
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@{
|
|
Layout = null;
|
|
}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<title>ErsatzTV</title>
|
|
<base href="~/"/>
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet"/>
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" rel="stylesheet">
|
|
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet"/>
|
|
<link href="css/site.css" rel="stylesheet"/>
|
|
<link href="ErsatzTV.styles.css" rel="stylesheet"/>
|
|
<link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet">
|
|
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
|
@await Html.PartialAsync("../Shared/_Favicons")
|
|
<script>
|
|
function sortableCollection(collectionId) {
|
|
$("#sortable-collection").sortable({
|
|
update: function(event, ui) {
|
|
const data = $(this).sortable('serialize');
|
|
$.ajax({
|
|
data: data,
|
|
type: 'POST',
|
|
url: `media/collections/${collectionId}/items`
|
|
});
|
|
}
|
|
});
|
|
$("#sortable-collection").disableSelection();
|
|
}
|
|
|
|
function disableSorting() {
|
|
$("#sortable-collection").sortable("option", "disabled", true);
|
|
}
|
|
|
|
function enableSorting() {
|
|
$("#sortable-collection").sortable("option", "disabled", false);
|
|
}
|
|
|
|
function styleMarkdown() {
|
|
$("h2").addClass("mud-typography mud-typography-h4");
|
|
$("h3").addClass("mud-typography mud-typography-h5");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<component type="typeof(App)" render-mode="ServerPrerendered"/>
|
|
|
|
<div id="blazor-error-ui">
|
|
<environment include="Staging,Production">
|
|
An error has occurred. This application may no longer respond until reloaded.
|
|
</environment>
|
|
<environment include="Development">
|
|
An unhandled exception has occurred. See browser dev tools for details.
|
|
</environment>
|
|
<a href="" class="reload">Reload</a>
|
|
<a class="dismiss">🗙</a>
|
|
</div>
|
|
|
|
<script src="_framework/blazor.server.js"></script>
|
|
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
|
|
<script type="text/javascript">
|
|
window.blazorHelpers = {
|
|
scrollToFragment: (elementId) => {
|
|
const element = document.getElementById(elementId);
|
|
if (element) {
|
|
element.scrollIntoView({
|
|
behavior: 'smooth'
|
|
});
|
|
}
|
|
}
|
|
};
|
|
|
|
window.clipboardCopy = {
|
|
copyText: function (codeElement) {
|
|
navigator.clipboard.writeText(codeElement.textContent)
|
|
.catch(function (error) {
|
|
console.log(error);
|
|
});
|
|
}
|
|
};
|
|
</script>
|
|
</body>
|
|
</html> |