-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (89 loc) · 6.46 KB
/
index.html
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Editor</title>
<!-- -----------------------------------------------Stylesheets----------------------------------------------- -->
<link rel = "stylesheet" href = "css/styles.css">
<link rel = "stylesheet" href = "fonts/font-awesome/css/font-awesome.min.css">
<link rel = "stylesheet" href = "./node_modules/bootstrap/dist/css/bootstrap.min.css">
<!-- ---------------------------------------------End Stylesheets--------------------------------------------- -->
<!-- -------------------------------------------------Scripts------------------------------------------------- -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src = "./node_modules/jquery/dist/jquery.min.js"></script>
<script src = "./js/FileSaver.js"></script>
<script src = "./js/script.js"></script>
<script src = "./js/files.js"></script>
<script>
require('./renderer.js');
</script>
<script>if (window.module) module = window.module;</script>
<!-- -----------------------------------------------End Scripts----------------------------------------------- -->
</head>
<body>
<div class = "container-fluid">
<div class = "row">
<!-- -----------------------------------------------Editor----------------------------------------------- -->
<div class="col-sm-10 fc">
<div id = "textpart">
<div id = "textarea" contenteditable="true" auofocus></div>
</div>
</div>
<!-- ---------------------------------------------End Editor--------------------------------------------- -->
<!-- ----------------------------------------------Toolbar----------------------------------------------- -->
<div class = "col-sm-2 fc">
<div id = "toolbar">
<br \><br \>
<div class = "btn-group">
<button type="button" class="btn btn-custom" onclick="undo()"><i class="fa fa-undo" title="Undo"></i></button>
<button type="button" class="btn btn-custom" onclick="redo()"><i class="fa fa-repeat" title="Redo"></i></button>
</div>
<br \><hr class = "style">
<div class = "btn-group">
<button type="button" class="btn btn-custom" onclick="bold()"><i class="fa fa-bold" title="Bold"></i></button>
<button type="button" class="btn btn-custom" onclick="underline()"><i class="fa fa-underline" title="Underline"></i></button>
<button type="button" class="btn btn-custom" onclick="italic()"><i class="fa fa-italic" title="Italic"></i></button>
<button type="button" class="btn btn-custom" onclick="strikeThrough()"><i class="fa fa-strikethrough" title="Strikethrough"></i></button>
</div>
<br \><hr class = "style">
<div class = "btn-group">
<button type="button" class="btn btn-custom" onclick="justifyLeft()"><i class="fa fa-align-left" title="Align Left"></i></button>
<button type="button" class="btn btn-custom" onclick="justifyCenter()"><i class="fa fa-align-center" title="Align Center"></i></button>
<button type="button" class="btn btn-custom" onclick="justifyRight()"><i class="fa fa-align-right" title="Align Right"></i></button>
<button type="button" class="btn btn-custom" onclick="justifyAll()"><i class="fa fa-align-justify" title="Justify"></i></button>
</div>
<br \><hr class="style">
<div class = "btn-group">
<button type="button" class="btn btn-custom" onclick="unorderedList()"><i class="fa fa-list-ul" title="Unordered"></i></button>
<button type="button" class="btn btn-custom" onclick="orderedList()"><i class="fa fa-list-ol" title="Ordered"></i></button>
</div>
<!-- <br \><hr class = "style"> -->
<div class = "btn-group">
<button type="button" class="btn btn-custom" onclick="subscript()"><i class="fa fa-subscript" title="Subscript"></i></button>
<button type="button" class="btn btn-custom" onclick="superscript()"><i class="fa fa-superscript" title="Superscript"></i></button>
</div>
<br \><hr class="style">
<div class = "btn-group">
<button type="button" class="btn btn-custom" onclick="selectAll()">Select All</button>
<button type="button" class="btn btn-custom" onclick="copy()"><i class="fa fa-clone" title="Copy"></i></button>
<button type="button" class="btn btn-custom" onclick="cut()"><i class="fa fa-scissors" title="Cut"></i></button>
</div>
<br \><hr class = "style">
<div class = "save-open">
<div class = "btn-group">
<button type="button" class="btn btn-custom" onclick="save()">Save As</button>
<button type="button" class="btn btn-custom" onclick="openfile()">Open</button>
</div>
</div>
</div>
</div>
<!-- ---------------------------------------------End Toolbar--------------------------------------------- -->
</div>
</div>
</body>
</html>
<!-- To do: Implement save feature (not save as) -->
<!-- To do: Implement highlight feature -->
<!-- to do: Highlight feature in right click -->