Läser in Marked och MathJax för rendrering
This commit is contained in:
@@ -12,15 +12,22 @@
|
|||||||
<!-- messages will be rendered here -->
|
<!-- messages will be rendered here -->
|
||||||
</div>
|
</div>
|
||||||
<textarea id="userInput" placeholder="Type your message..." rows="5"></textarea>
|
<textarea id="userInput" placeholder="Type your message..." rows="5"></textarea>
|
||||||
<button onclick="sendMessage()">Send</button>
|
<button id="sendButton" onclick="sendMessage()">Send</button>
|
||||||
|
|
||||||
<!-- Get the apiEndpoint -->
|
<!-- Get the apiEndpoint -->
|
||||||
<script>
|
<script>
|
||||||
const apiEndpoint = window.apiEndpoint;
|
const apiEndpoint = window.apiEndpoint;
|
||||||
const useModel = window.useModel;
|
const useModel = window.useModel;
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- Marked for markdown rendering -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Include MathJax library to render mathematical notation -->
|
||||||
|
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
||||||
|
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
||||||
|
|
||||||
|
|
||||||
<!-- Get the javascript handling communication with the backend -->
|
<!-- Get the javascript handling communication with the backend -->
|
||||||
<script src="/js/frontend.js"></script>
|
<script src="/js/frontend.js"></script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user