forked from JabRef/scimappr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
218 lines (179 loc) · 11.6 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<html>
<!-- Section Head -->
<head>
<title>Scimappr</title>
<!-- Requirements for JsMind, JQuery, Bootstrap, JsTree -->
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> -->
<!--<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> -->
<link type="text/css" rel="stylesheet" href='./build/assets/jsmind.css'/>
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -->
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href='./build/assets/mindmap.css'/>
<link rel="stylesheet" href="./node_modules/bootstrap-treeview/dist/bootstrap-treeview.min.css" />
</head>
<!-- Section Body -->
<body onload="programCaller('init')">
<div id="header" class="navbar navbar-default navbar-fixed-top">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
<i class="icon-reorder"></i>
</button>
<a class="navbar-brand" href="#">Scimappr</a>
</div>
<nav class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<!-- Menu for Project -->
<li>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Project<b class="caret"></b></a>
<ul class="dropdown-menu">
<!--<li><a data-toggle="modal" href="#myModal" data-target="#myModal">New Project</a></li> -->
<li><a href="javascript:programCaller('newProjectModal')"><span class="glyphicon glyphicon-file"></span> New Project</a></li>
<li><a href="javascript:programCaller('openProjectModal')"><span class="glyphicon glyphicon-folder-open"></span> Open Project</a></li>
<li><a href="javascript:programCaller('saveProject')"><span class="glyphicon glyphicon-floppy-save"></span> Save Project</a></li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#"><span class="glyphicon glyphicon-level-up"></span> Recent Projects</a>
<ul id="recentProjectsList" class="dropdown-menu"></ul>
</li>
<li><a href="javascript:programCaller('closeProject')"><span class="glyphicon glyphicon-folder-close"></span> Close Project</a></li>
</ul>
</li>
<!-- Menu for Files -->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Files<b class="caret"></b></a>
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
<li><a href="javascript:programCaller('newMindmap')">New MindMap</a></li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Save MindMap</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="javascript:programCaller('saveFileMM')">Save As Freemind (.mm)</a></li>
<li><a tabindex="-1" href="javascript:programCaller('saveFileJM')">Save As jsMind (.jm)</a></li>
</ul>
</li>
</ul>
</li>
<!-- Menu for Refresh PDF -->
<li>
<a href="javascript:programCaller('refresh')"><span class="glyphicon glyphicon-refresh"></span> Refresh PDF</a>
<ul class="dropdown-menu">
</ul>
</li>
</ul>
<!-- User Name -->
<ul class="nav navbar-nav pull-right">
<li class="dropdown">
<a href="#" id="nbAcctDD" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i>Username<i class="icon-sort-down"></i></a>
<ul class="dropdown-menu pull-right">
<li><a href="#">Log Out</a></li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="wrapper">
<!-- Side Bar Section -->
<div id="sidebar-wrapper" class="col-md-2">
<ul class="nav nav-tabs">
<li class="active">
<a href="#Project-tab" data-toggle="tab">Project</a>
</li>
<li>
<a href="#Annotation-tab" data-toggle="tab">Annotation</a>
</li>
</ul>
<div class="tab-content ">
<div class="tab-pane active" id="Project-tab" style="overflow-y: auto">
<div id="tree" style="overflow-y: auto"></div>
</div>
<div class="tab-pane" id="Annotation-tab" style="overflow-y: auto">
<form class="form-inline">
<input type="text" id="annotSearch" class="form-control" name="annotSearch" style="max-width:100%;margin-left:10px; margin-top:10px;" placeholder="Search Annotation" autofocus>
<button type="button" class="btn btn-lg" style="margin-top:10px" onclick="programCaller('searchAnnotation')"><span class="glyphicon glyphicon-search"></span></button>
</form>
<ul class="list-group" id="annotation-group" style="overflow-y: auto; height: 89%">
</ul>
</div>
</div>
</div>
<!-- Main Section of MindMap -->
<div id="main-wrapper" class="col-md-10 pull-right">
<div id="jsmind_container" class="panel-resizable drop"> </div>
<div style="display:none">
<input class="file" type="file" id="image-chooser" accept="image/*"/>
<input class="file" type="file" id="file-chooser" accept=".json"/>
</div>
</div>
</div>
<!-- Context Menu for Right Click -->
<div id="push"></div>
<div id="contextMenu" style="display: none; z-index: 200">
<div class="dropdown open">
<ul class="dropdown-menu">
<!--<li class="actionOpenPdf" onClick="programCaller('openPDFMenu')">View PDF</li> -->
<li class="actionOpenPdf" onClick="programCaller('openPDFUserDefine')">Edit PDF</li>
<li class="actionCopy" onClick="programCaller('copyMenu')">Copy</li>
<li class="actionPaste" onClick="programCaller('pasteMenu')">Paste</li>
<li class="actionDelete" onClick="programCaller('deleteMenu')">Delete</li>
<li class="actionCancel" onClick="programCaller('cancelMenu')">Cancel</li>
</ul>
</div>
</div>
<!-- Modal for New Project -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Create New Project</h4>
</div>
<div class="modal-body">
<form>
<p style="color:red; font-weight:bold">Before Creating a new Project, please add project name and the directory for the new project </p>
<p></p>
<p style="font-weight:bold; display:inline">Project Name: </p> <p style="color:red; display:inline"> *required </p>
<input type="text" id="projectName" class="form-control" name="projectName" placeholder="Project Name" required autofocus><br>
<p style="font-weight:bold; display:inline">Project Home: </p> <p style="color:red; display:inline"> *required </p>
<input type="text" id="projectHome" class="form-control" name="projectHome" placeholder="Project Home Folder" style="background: lightgray" required readonly>
<input type="file" id="folder-chooser" style="display:none" webkitdirectory directory multiple/>
<input type="button" value="Browse..." style="margin-top:10px; margin-bottom:10px; font-weight:bold" onclick="document.getElementById('folder-chooser').click();" /><br>
<p style="font-weight:bold; display:inline">Project PDF: </p> <p style="color:red; display:inline"> *required </p>
<input type="text" id="projectPdf" class="form-control" name="projectPdf" placeholder="Project PDFs" style="background: lightgray" required readonly>
<input type="file" id="pdf-chooser" style="display:none" webkitdirectory directory multiple/>
<input type="button" value="Browse..." style="margin-top:10px; margin-bottom:10px; font-weight:bold" onclick="document.getElementById('pdf-chooser').click();" /><br>
<p hidden class="ProjName" style="color:red"> *Project Name must be fulfilled </p>
<p hidden class="ProjHome" style="color:red"> *Project Home Folder must be specified </p>
<p hidden class="ProjPdf" style="color:red"> *PDF must be specified </p>
</form>
</div>
<div class = "modal-footer">
<button class="btn btn-default" data-dismiss="modal">Close</button>
<button id="buttonSave" type="button" class="btn btn-primary" onclick="programCaller('newProject')">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<input style="display:none" type="file" id="mindmap-chooser" accept=".jm,.mm" />
<script type="text/javascript">window.$ = window.jQuery = require('./node_modules/jquery/dist/jquery.min.js');</script>
<script type="text/javascript" src="./node_modules/jqueryui/jquery-ui.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<!--<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> -->
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- JSMind Code Section -->
<script type="text/javascript" src='./build/assets/jsmind.js'></script>
<script type="text/javascript" src='./build/assets/jsmind.draggable.js'></script>
<script type="text/javascript" src='./build/assets/jsmind.screenshot.js'></script>
<!-- Pouch DB Section -->
<!--<script type="text/javascript" src='./build/assets/pouchdb-6.3.4.min.js'></script> -->
<!-- MindMap Main Code Section -->
<!-- For mindmap in general Purposes -->
<!-- <script type="text/javascript" src='/scimappr/build/assets/mindmap.js'></script> -->
<script type="text/javascript" src='./build/assets/mindmap.main.js'></script>
<!-- For GUI Purposes -->
<!-- <script type="text/javascript" src="/scimappr/build/assets/mindmap.gui.js"></script> -->
<script type="text/javascript" src="./build/assets/pdf.js"></script> <!-- Main Code of PDF.js -->
<!-- For PDF Parsing Purposes -->
<!-- <script type="text/javascript" src="/scimappr/build/assets/mindmap.pdf.js"></script> -->
<script type="text/javascript" src='./build/assets/sha1-min.js'></script> <!-- For PDF ID Using sha1 Hash Purposes -->
<!--<script src="./node_modules/jstree/dist/jstree.min.js"></script> For Side Bar Tree View -->
<script type="text/javascript" src='./node_modules/bootstrap-treeview/dist/bootstrap-treeview.min.js'></script> <!-- For Treeview Purposes -->
</body>
</html>