A markdown editor.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.2 KiB

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="sty/divs.css">
<link rel="stylesheet" type="text/css" href="sty/textarea.css">
<link rel="stylesheet" type="text/css" href="sty/theme.css">
<script src="src/autograph.js"></script>
<script src="src/fileio.js"></script>
<script src="src/theme.js"></script>
<script src="src/events.js"></script>
</head>
<body>
<div id="parent">
<div id="top-bar">
<div id="fname"></div>
<div id="stat"> </div>
</div id="container">
<div id="editor">
<textarea id="input-area"></textarea>
</div>
<div id="render">
</div>
</div>
<script>
let aut_file = "aut_file";
let theme = new Theme({ background: '#000000', f_high: '#ffffff', f_med: '#ff78a9', f_low: '#695f56', f_inv: '#ffffff', b_high: '#fff1e8', b_med: '#c2c3c7', b_low: '#83769c', b_inv: '#00aefe' });
theme.install(document.body);
theme.start();
document.getElementById("input-area").focus();
let autograph = new Autograph();
autograph.setContent(readFile(localStorage.getItem(aut_file)));
</script>
</body>
</html>