hope this makes it global
This commit is contained in:
parent
d694477c4e
commit
0b1c5f586c
1 changed files with 5 additions and 5 deletions
10
index.html
10
index.html
|
@ -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 = "";
|
||||||
|
|
Loading…
Reference in a new issue