mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 01:01:30 +02:00
start on the coding assistant
This commit is contained in:
parent
8f6a85d81d
commit
8ba6005c67
546 changed files with 54575 additions and 12 deletions
|
@ -19,9 +19,11 @@
|
|||
|
||||
<script src="/js/jquery-1.11.0.min.js"></script>
|
||||
|
||||
<script src="/js/highlight.pack.js"></script>
|
||||
<script src="/js/highlight/highlight.min.js"></script>
|
||||
<link rel="stylesheet" href="/css/highlight/styles/tomorrow-night.css">
|
||||
<script>hljs.initHighlightingOnLoad()</script>
|
||||
<script>
|
||||
hljs.highlightAll()
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="interior">
|
||||
|
|
|
@ -103,10 +103,26 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row editor">
|
||||
<div class="col col-100">
|
||||
<script src="/js/purify.min.js"></script>
|
||||
<script src="/js/marked.min.js"></script>
|
||||
<script src="/js/sse.min.js"></script>
|
||||
<script src="/js/chat.js"></script>
|
||||
|
||||
<div class="row editor" style="display: flex; flex-wrap: wrap;">
|
||||
<div class="col col-66" style="flex: 66%; padding: 10px">
|
||||
<div id="editor"><h3>Loading...</h3></div>
|
||||
</div>
|
||||
<div class="col col-33" style="flex: 33%; padding: 10px">
|
||||
<div class="chat-container">
|
||||
<div id="chat-box" class="chat-box"></div>
|
||||
<form id="chat-form">
|
||||
<input name="csrf_token" value="<%= csrf_token %>" type="hidden">
|
||||
<input type="text" id="chat-input" placeholder="Ask a coding question..." value="give me a hello world html file" autocomplete="off">
|
||||
<button type="submit" class="btn-Action">Send</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
@ -157,7 +173,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
$('#saveButton').tooltip('show')
|
||||
$('#editorUpdates span').text(errorMessage)
|
||||
$('#editorUpdates').fadeIn()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue