hope this makes it global

This commit is contained in:
The Ghost of FOSS' Future 2024-09-17 19:41:33 -05:00 committed by GitHub
parent d694477c4e
commit 0b1c5f586c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -231,8 +231,8 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/mode/css/css.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/mode/css/css.min.js"></script>
<script> <script>
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
var codeArea = document.getElementById("code-area"); codeArea = document.getElementById("code-area");
var editor = CodeMirror.fromTextArea(codeArea, { editor = CodeMirror.fromTextArea(codeArea, {
lineNumbers: true, lineNumbers: true,
theme: "dracula", theme: "dracula",
autoCloseBrackets: true, autoCloseBrackets: true,
@ -245,12 +245,12 @@
editor.setSize("100%", "100%"); editor.setSize("100%", "100%");
var fileList = document.getElementById("file-list"); fileList = document.getElementById("file-list");
var files = { files = {
"Welcome2SneedCode.md": "Welcome2SneedCode.md":
"# Welcome to sneedCode\n\nThis is a speedy web-based code editor made \n to look familiar to the user but with a different workflow. \n\n Made with <3 by Sneed Group.", "# Welcome to sneedCode\n\nThis is a speedy web-based code editor made \n to look familiar to the user but with a different workflow. \n\n Made with <3 by Sneed Group.",
}; };
let currentFile = "Welcome2SneedCode.md"; currentFile = "Welcome2SneedCode.md";
function updateFileList() { function updateFileList() {
fileList.innerHTML = ""; fileList.innerHTML = "";