Coding/BinaryDad.Coding/Views/Home/Index.cshtml

34 lines
811 B
Plaintext
Raw Normal View History

2021-07-22 23:48:43 +00:00
@{
2022-10-31 18:38:50 +00:00
ViewData["Title"] = "Welcome!";
2021-07-19 00:56:02 +00:00
}
2021-07-19 01:24:08 +00:00
@section Scripts
{
2021-07-20 02:02:14 +00:00
<script src="~/js/ace/ace.js"></script>
2021-07-19 02:17:18 +00:00
<script src="~/js/jotted/jotted.min.js"></script>
<script>
2021-07-20 02:02:14 +00:00
window.jotted = new Jotted(document.querySelector('#editor'), {
2021-07-19 02:17:18 +00:00
files: [{
type: 'html',
2021-07-20 02:02:14 +00:00
content: '<html>\n <body>\n <h1>Hello SFKA!</h1>\n </body>\n</html>'
2021-07-19 02:17:18 +00:00
}, {
type: 'css',
2021-07-20 02:02:14 +00:00
content: 'body {\n\tcolor: green;\n}'
}],
2021-07-21 16:43:14 +00:00
plugins: ['ace']
2021-07-20 02:02:14 +00:00
});
2021-07-19 02:17:18 +00:00
</script>
2021-07-20 02:02:14 +00:00
<script src="~/js/signalr/dist/browser/signalr.js"></script>
<script src="~/js/hub.js"></script>
2021-07-19 02:17:18 +00:00
}
2021-07-19 01:24:08 +00:00
2021-07-19 02:17:18 +00:00
@section Css
{
<link href="~/css/jotted/jotted.min.css" rel="stylesheet" />
}
2021-07-21 16:43:14 +00:00
<div id="editor" class="jotted-theme-bin"></div>
2021-07-21 01:53:39 +00:00