Implemented widget.
This commit is contained in:
parent
ae0fae745a
commit
68ba785e80
@ -1,4 +1,12 @@
|
|||||||
|
<script>
|
||||||
|
marked.setOptions({
|
||||||
|
highlight: function (code, lang) {
|
||||||
|
const language = hljs.getLanguage(lang) ? lang : 'plaintext';
|
||||||
|
return hljs.highlight(language, code).value;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<chat-widget></chat-widget>
|
||||||
|
|
||||||
{{if false}}
|
{{if false}}
|
||||||
{{/* to make html structure "likely" complete to prevent IDE warnings */}}
|
{{/* to make html structure "likely" complete to prevent IDE warnings */}}
|
||||||
|
@ -21,6 +21,11 @@
|
|||||||
|
|
||||||
{{template "base/head_script" .}}
|
{{template "base/head_script" .}}
|
||||||
{{template "base/terms_script" .}}
|
{{template "base/terms_script" .}}
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css">
|
||||||
|
<script src="https://alpaca.molodetz.nl/static/chat.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.3.0/marked.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<style>
|
<style>
|
||||||
.dropdown:hover > .menu { display: block; }
|
.dropdown:hover > .menu { display: block; }
|
||||||
|
Loading…
Reference in New Issue
Block a user