-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path#brainstorm.html#
177 lines (117 loc) · 4.49 KB
/
#brainstorm.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
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script type="text/javascript"
src="bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
<script type="text/javascript"
src="shapes.js"></script>
<link rel="stylesheet"
type="text/css"
href="shapes.css" />
<link rel="stylesheet"
type="text/css"
href="bootstrap-3.3.2-dist/css/bootstrap.min.css" />
<link rel="stylesheet"
href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css">
</head>
<body onLoad='init()'>
<div class="pure-menu pure-menu-open pure-menu-horizontal">
<a href="#" class="pure-menu-heading">BrainStorm</a>
<ul>
<li class="pure-menu-selected" id="loadButton"><a href="#">Load</a></li>
<li><a href="#" id="saveAsButton">Save</a></li>
<li><a href="#" id="aboutButton">About</a></li>
</ul>
</div>
<div class="modal bs-example-modal-sm" id="myModal">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Cancel"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Edit node</h4>
</div>
<div class="modal-body">
<p>
<!--<input type="text" name="nodeText" id="nodeText"
value="nodeText">-->
<textarea rows="2" id="nodeText"></textarea>
</p>
<!--<div class="color-box"></div>-->
<input type="text" class="color-box color-box-selected"
title="Set Color"
data-container="body"
id="colorBox1"
readonly>
<input type="text" class="color-box"
title="Set Color"
data-container="body"
id="colorBox2"
readonly>
<input type="text" class="color-box"
title="Set Color"
data-container="body"
id="colorBox3"
readonly>
<input type="text" class="color-box"
title="Set Color"
data-container="body"
id="colorBox4"
readonly>
<input type="text" class="color-box"
title="Set Color"
data-container="body"
id="colorBox5"
readonly>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="modalok">Ok</button>
<button type="button" class="btn btn-default"
data-dismiss="modal">Cancel</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- ABOUT Modal -->
<div class="modal" id="aboutModal" 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" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">About</h4>
</div>
<div class="modal-body">
A light weight application for creating mind maps for
brain storming, built with JavaScript, HTML5 Canvas,
Twitter Bootstrap and Pure. Extended from cool
<h2> Instructions </h2>
Double-click on empty space to create a Node. <br><br>
Click to select a Node.
Select and drag to move a Node. <br><br>
Click and drag on empty space to select multiple
Nodes. Click on one of these nodes and drag to move all
nodes. <br><br>
Double-click on a Node to edit text and color.<br><br>
Click the 'x' on a Node to delete it.<br><br>
Click on the small black box below a Node and drag to create a
Connection. Drag the connection over another Node to
complete a Connection. <br><br>
Hover over a connection and click to reassign it. Not
assigning it while dragging will delete the connection. <br><br>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<canvas id="canvas1" width="800" height="600">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>
<!-- HIDDEN FILE PICKER -->
<input type="file" name="xmlInput" id="filePicker" style="display: none;">
<!-- HIDDEN DOWNLOAD LINK -->
<a download="brainStorm.json" id="downloadlink" style="display: none">Download</a>
</body>
</html>