forked from Spreadsheets/WickedGrid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
333 lines (309 loc) · 12.8 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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!DOCTYPE html>
<html>
<!--Icons made by Freepik, Elegant Themes, Zurb, Icomoon, SimpleIcon, Catalin Fertu from www.flaticon.com-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="-1"/>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
<meta content="utf-8" http-equiv="encoding"/>
<title>WickedGrid - wicked fast spreadsheets for the web</title>
<!--dependencies-->
<link rel="stylesheet" type="text/css" href="wickedgrid.css">
<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap-theme.css">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://github.com/Spreadsheets/WickedGrid"><img alt="WickedGrid" title="WickedGrid" src="images/svg/logo.svg" width="40" style="margin-top: -10px;"></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="https://github.com/Spreadsheets/WickedGrid/releases">Download</a></li>
<li><a href="http://visop-dev.com/contact+us">Support</a></li>
<li><a href="http://www.VisOp-Dev.com">Sponsor</a></li>
<li><a href="https://github.com/Spreadsheets/WickedGrid/">Code</a></li>
<li><a href="http://visop-dev.com/doc/js3/index.html">API</a></li>
<li><a href="http://visop-dev.com/jQuery.sheet+-+End+User+Documentation">End User Documentation</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Examples <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="examples/lazy.load.test.html">Lazy Load</a>
</li>
<li>
<a href="examples/charts.html" onclick="loadSheet(this);return false;">Charts</a>
</li>
<li>
<a href="examples/inputs.html" onclick="loadSheet(this);return false;">Inputs</a>
</li>
<li>
<a href="examples/inputs.get.html">Get Inputs</a>
</li>
<li>
<a href="examples/dates.html" onclick="loadSheet(this);return false;">Dates</a>
</li>
<li>
<a href="examples/empty.html" onclick="loadSheet(this);return false;">Empty</a>
</li>
<li>
<a href="examples/events.html">Javascript Events</a>
</li>
<li>
<a href="examples/financial.html" onclick="loadSheet(this);return false;">Financial</a>
</li>
<li>
<a href="examples/information.html" onclick="loadSheet(this);return false;">Information</a>
</li>
<li>
<a href="examples/logical.html" onclick="loadSheet(this);return false;">Logical</a>
</li>
<li>
<a href="examples/math.html" onclick="loadSheet(this); return false;">Math</a>
</li>
<li>
<a href="examples/globalize.html">Number and Date Culture Formats</a>
</li>
<li>
<a href="examples/mild.stress.test.html" onclick="loadSheet(this); return false;">Mild Stress Test</a>
</li>
<li>
<a href="examples/mortgage.estimator.html" onclick="loadSheet(this); return false;">Mortgage Estimator</a>
</li>
<li>
<a href="examples/not.editable.html" onclick="loadSheet(this); return false;">Not Editable</a>
</li>
<li>
<a href="examples/readonly.html" onclick="loadSheet(this); return false;">Read Only (partially, formula's don't do anything)</a>
</li>
<li>
<a href="examples/statistical.html" onclick="loadSheet(this); return false;">Statistical</a>
</li>
<li>
<a href="examples/sort.html">Sorting</a>
</li>
<li>
<a href="examples/string.html" onclick="loadSheet(this); return false;">String</a>
</li>
<li>
<a href="examples/cells.hidden.html" onclick="loadSheet(this); return false;">Hidden Cells</a>
</li>
<li>
<a href="examples/cells.merged.html" onclick="loadSheet(this); return false;">Merged Cells</a>
</li>
<li>
<a href="examples/toggle.state.html">Toggle State</a>
</li>
<li>
<a href="examples/dts.test.html">Json & XML Data Transformation Services</a>
</li>
<li>
<a href="examples/behavior.testing.html">Cross Browser Behavior Unit Test</a>
</li>
</ul>
</li>
</ul>
<form class="nav navbar-nav navbar-right" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div class="form-group"></div>
<button class="btn" name="submit">buy me a beer</button>
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" style="position: absolute;"/>
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="X9USQZEMU9934" />
</form>
</div>
</div>
</nav>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1>WickedGrid 4 (alpha)</h1>
<p>Easy & Wicked Fast spreadsheets for the web... Finally!</p>
<div id="sheet" style="height: 450px;"></div>
<p><a class="btn btn-primary btn-lg" href="https://github.com/Spreadsheets/WickedGrid/wiki/WickedGrid,-a-different-approach" role="button">Learn more »</a></p>
</div>
</div>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4">
<h2>Easy</h2>
<p>
Built from the bottom up for simplicity WickedGrid is
</p>
<ul>
<li>100% free and open source</li>
<li>Runs completely in the browser</li>
<li>No strings attached simple architecture</li>
<li>An open and flexible API</li>
<li>Support for HTML, JSON, and XML</li>
<li>Collaborative</li>
<li>Syntax Highlighting</li>
<li><a href="http://www.opensource.org/licenses/mit-license.html">MIT license</a></li>
</ul>
<p><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Wicked Fast</h2>
<p>
We've pulled out all the stops and strapped a rocket to this thing!
</p>
<ul>
<li>Resource light</li>
<li>Multi threading & natural processing</li>
<li>Massive Spreadsheets in under a second</li>
<li>Can handle ANY size spreadsheet</li>
</ul>
<p><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Enterprise Ready</h2>
<p>
WickedGrid has been engineered for speed and is used by many fortune 500 companies.
</p>
<ul>
<li>Stable and tested</li>
<li>Big Data ready</li>
<li>Thousands of installations all over the world!</li>
</ul>
<p><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
</div>
<hr>
<footer>
<p>© Visual Interop Development 2015</p>
</footer>
</div> <!-- /container -->
<a href="https://github.com/Spreadsheets/jQuery.sheet"><img style="position: fixed; top: 50px; right: 0; border: 0;" src="images/fork_me.png" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"></a>
</body>
<!--dependencies-->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/globalize/lib/globalize.js"></script>
<script src="bower_components/MouseWheel/MouseWheel.js"></script>
<script src="bower_components/megatable.js/megatable.js"></script>
<script src="bower_components/infiniscroll.js/infiniscroll.js"></script>
<script src="bower_components/thaw.js/thaw.js"></script>
<script src="wickedgrid.js"></script>
<!--optional-->
<!--Nearest-->
<script src="bower_components/jquery-nearest/src/jquery.nearest.min.js"></script>
<!--/Nearest-->
<!--jQuery UI-->
<script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
<!--/jQuery UI-->
<!--Raphaeljs - for charts-->
<script src="bower_components/raphael/raphael-min.js"></script>
<script src="bower_components/graphael/g.raphael.js"></script>
<script src="bower_components/graphael/g.bar.js"></script>
<script src="bower_components/graphael/g.dot.js"></script>
<script src="bower_components/graphael/g.line.js"></script>
<script src="bower_components/graphael/g.pie.js"></script>
<!--/Raphaeljs-->
<!--ColorPicker-->
<link rel="stylesheet" type="text/css" href="bower_components/really-simple-color-picker/css/colorPicker.css" />
<script src="bower_components/really-simple-color-picker/js/jquery.colorPicker.min.js"></script>
<!--/ColorPicker-->
<!--Elastic-->
<script src="bower_components/jquery-elastic/jquery.elastic.source.js"></script>
<!--/Elastic-->
<!--Advanced_Math-->
<script src="src/WickedGrid/Plugin/advanced.js"></script>
<!--/Advanced_Math-->
<!--Finance-->
<script src="src/WickedGrid/Plugin/finance.js"></script>
<!--/Finance-->
<!--Undo-->
<script src="bower_components/Javascript-Undo-Manager/lib/undomanager.js"></script>
<!--/Undo-->
<!--Zero Clipboard-->
<script src="bower_components/zeroclipboard/dist/ZeroClipboard.min.js"></script>
<!--/Zero Clipboard-->
<!--Bootstrap-->
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!--/Bootstrap-->
<script>
var jS;
$(function(){
var parseHtml = function(html, selector) {
var parent = document.createElement('div');
parent.innerHTML = html;
if (selector) {
return parent.querySelector(selector);
}
return parent.children;
};
//Here is where we initiate the sheets
//every time sheet is created it creates a new WickedGrid.instance (array), to manipulate each sheet, the jQuery object is returned
window.loadSheet = function (loadWhat) {
var url;
switch (typeof loadWhat) {
case 'object':
url = $(loadWhat).attr('href');
break;
case 'string':
url = loadWhat;
break;
}
$.when(
$.get(url),
$.get('menu2.html'))
.done(function(sheetGet, menuGet) {
jS = $('#sheet')
.html(parseHtml(sheetGet[0], 'div#sheetParent table'))
.wickedGrid({
theme: WickedGrid.bootstrapTheme,
title: '',
headerMenu: function() {
var wickedGrid = this,
menu = $(menuGet[0]),
copy = menu.find('.wg-copy').mouseover(function() { $(this).one('mouseout', function() {return false;})}),
cut = menu.find('.wg-cut').mouseover(function() { $(this).one('mouseout', function() {return false;})}),
paste = menu.find('.wg-paste').click(function() {
alert('Press Ctrl + V to paste over highlighted cells');
});
//Give anchors access to jS them
menu.find('a').each(function() {
this.wickedGrid = wickedGrid;
});
var clip = new ZeroClipboard(copy.add(cut), {
moviePath: "bower_components/zeroclipboard/dist/ZeroClipboard.swf"
});
clip.on('mousedown', function(client) {
clip.setText(wickedGrid.tdsToTsv());
$(this).mousedown();
});
cut.mousedown(function() {
wickedGrid.tdsToTsv(null, true);
});
//The following is just so you get an idea of how to style cells
var colorPickerCell = menu.find('.colorPickerCell')
.colorPicker()
.change(function(){
wickedGrid.cellChangeStyle('background-color', $(this).val());
}),
colorPickerFont = menu.find('.colorPickerFont')
.colorPicker()
.change(function(){
wickedGrid.cellChangeStyle('color', $(this).val());
});
colorPickerCell.next()
.html($('<img>').attr('src', colorPickerCell.attr('data-img')));
colorPickerFont.next()
.html($('<img>').attr('src', colorPickerFont.attr('data-img')));
return menu;
}
})
.getWickedGrid();
});
};
loadSheet('examples/charts.html');
});
</script>
</html>