Fixed js issue.

This commit is contained in:
retoor 2025-01-02 02:02:49 +00:00 committed by root
parent cfd10a32fb
commit 9b8f0325f9
3 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,14 @@
<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}}

View File

@ -21,6 +21,14 @@
{{template "base/head_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://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>
<script src="https://alpaca.molodetz.nl/static/chat.js"></script>
<noscript>
<style>
.dropdown:hover > .menu { display: block; }

View File

@ -67,8 +67,13 @@ setTimeout(matrix,100);
</div>
{{end}}
<div class="eight wide center column">
<h3>REGARDING THE USE OF AI</h3>
<p>NOTE: ONLY FAIR USE OF AI REGARDING ALL SOURCE CODE. EVERYTHING ON THIS SITE IS HAND CRAFTED. I'M A PROFESSIONAL DEV FOR MORE THAN 15 YEARS.</p><p>AI is only used for <u>general summaries</u> at the beginning of <u>source files</u>, implementing the MIT license, mentioning my email, and formatting of the source. I automated this process for consistancy. <u>Some project summaries on this site is generated based on content of my projects.</u> Building nice sites is not my favourite hobby. <u>I prefer to build (web) applications having business logic.</u></p>
</div>
<div class="eight wide center column">
<h3>C Development</h3>
<p>With C, I mostly reinvent the wheel and rewrite existing applications from scratch to learn what is under the hood. I am able to write nginx-grade web servers with WebDAV support. I also have experience in writing Redis-quality key-value stores. Projects made:</p>
@ -82,7 +87,7 @@ setTimeout(matrix,100);
</ul>
</div>
<div class="eight wide center column">
<div class="eight wide column">
<h3>Python Development</h3>
<p>Python is my go-to language for software development. Technologies I prefer to work with, but not limited to, are:</p>
<ul class="tag-list">
@ -91,6 +96,8 @@ setTimeout(matrix,100);
<li>FastAPI</li>
<li>dataset</li>
</ul>
<img src="https://retoor.molodetz.nl/retoor/molodetz.nl/raw/branch/main/data/gitea/public/64480230-18ce-4770-8b7c-1e2688e051c6.jpg" style="max-width: 50%;" />
</div>
<div class="eight wide center column">