-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (96 loc) · 4.29 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
<!DOCTYPE html>
<html>
<head>
<title>Isharon's Trader Shop Inventory</title>
<script type="text/javascript" src="js/jszip.js"></script>
<script type="text/javascript" src="js/xlsx.js"></script>
<script type="text/javascript" src="js/jquery-1.11.3.js"></script>
<script type="text/javascript" src="js/jquery.dynatable.js"></script>
<script type="text/javascript" src="js/sort.js"></script>
<script type="text/javascript" src="js/view.js"></script>
<link rel="stylesheet" media="all" href="css/dynatable.css" />
<link rel="stylesheet" media="all" href="css/bootstrap.css" />
<link rel="stylesheet" media="all" href="css/view.css" />
<script>
var X = XLSX;
var whiteListOfs = "(\\sof (an|a|the|tiny)\\s)|\\s\\S{2,}ed\\sof|((image|bolt|made|pair|set|(^|\\s)\\S*s) of)";
var nounMatches = ["\\s\\S*set (with|within|on|atop)\\s", "\\s\\S*ing (a|an|the|from)\\s",
"\\s\\S*ly\\s.*ed\\s(with|from|to|of|in|over|like)",
"\\s\\S{2,}ed\\sof\\s.*ed\\s.*with",
"\\swith\\s.*\\S{2,}ed (in|a|by|like a)\\s",
"\\s\\S{2,}(ed|en|aid|hung|bound) (with|and|to|of|in|into|over|like|upon|from|at|close at|together|atop)\\s",
"\\s(hung|bound|wrapped|strung) (in|together|around|on|over|like|upon|from|with|by)\\s",
"\\swith\\s",
"\\s(featuring|trailing|cascading|dangling|displaying)\\s",
"\\sthat (resembles|appears|looks)\\s",
"\\s\\S{2,}ed from\\s", "\\s\\S*made (from|of|to)\\s",
"\\s\\S{2,}ed (a|by|on)\\s",
"\\s\\S*that\\s.*in\\s",
"\\s\\S*in the\\s",
"\\s\\S*(of|from) a\\s"
];
$(document).ready(function() {
$('form').submit(function() {
return false;
});
$("#load-button").mousedown(function(e) {
e.preventDefault();
loadingStarted();
load($("#url").val());
});
$("#file-dialog").change(function(e) {
e.preventDefault();
loadingStarted();
handleFile(e);
});
});
</script>
</head>
<body>
<div id="loader-wrapper">
<div id="loader"></div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
</div>
<div id="load-input">
<!-- <div id="load-ajax">
<form class="form-inline">
<div class="form-group">
<input class="form-control" type="text" id="url" value="http://www.elanthia.org/TraderShops/TraderShopInventory.xls" />
</div>
<button type="button" class="btn btn-default" id="load-button">Load</button>
</form>
</div>
<br/>-->
<div id="load-file" style="width: 400px; margin: 0 auto;">
<form class="form-inline">
<div class="form-group">
<p><input type="file" name="xlfile" id="file-dialog" class="btn btn-file" />Click here to select "TraderShopInventory.xls"</p>
</div>
<br/><br/>
<p style="text-align: center;"><a href="http://www.elanthia.org/TraderShops/TraderShopInventory.xls">[Download TraderShopInventory.xls]</a></p>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-body">
<table id="table" class="table table-bordered table-curved">
<thead>
<tr>
<th data-dynatable-column="City">City</th>
<th data-dynatable-column="Date" class="no-wrap">Date</th>
<th data-dynatable-column="Item" class="highlight">Item</th>
<th data-dynatable-column="Kprice">Kronars</th>
<th data-dynatable-column="Plats">Plats</th>
<th data-dynatable-column="Price">Price</th>
<th data-dynatable-column="Shop">Shop</th>
<th data-dynatable-column="Surface">Surface</th>
<th data-dynatable-column="Time">Time</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</body>
</html>