forked from egrcc/Mango
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·69 lines (67 loc) · 3.16 KB
/
Copy pathindex.html
File metadata and controls
executable file
·69 lines (67 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Mango Editor for Markdown</title>
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./css/screen.css" media="screen" />
<script src="./js/jquery/jquery.js" type="text/javascript"></script>
<script src="./js/jquery/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="./js/jquery/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/editor.js"></script>
<script type="text/javascript" src="./js/menu.js"></script>
<script type="text/javascript" src="./js/main.js"></script>
<script type="text/javascript" src="./js/preview.js"></script>
<script type="text/javascript">
global.window = window;
global.$ = $;
init();
</script>
</head>
<body>
<!-- Modal -->
<div class="modal fade" id="saveModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="myModalLabel">Save file</h4>
</div>
<div class="modal-body">
<input id="saveFileName" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onClick="saveFile();$('#saveModal').modal('hide');">Save file</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="openModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="myModalLabel">Open file</h4>
</div>
<div class="modal-body">
<input id="openFileDialog" type="file" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onClick="chooseFile('#openFileDialog', function(filename){ loadFile(filename);});$('#openModal').modal();">Open file</button>
</div>
</div>
</div>
</div>
<textarea name="markdown" id="editor" class="md_editor" onscroll="document.getElementById('preview').scrollTop = this.scrollTop;"></textarea>
<div id="preview" class="md_result"></div>
</body>
</html>