-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
138 lines (117 loc) · 11.5 KB
/
index.html
File metadata and controls
138 lines (117 loc) · 11.5 KB
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
<!DOCTYPE>
<html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<link rel="stylesheet" href="css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="css/jbpivot.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">jbPivot</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="https://github.com/uniclau/jbPivot">HitHub</a></li>
<li><a href="#license">License</a></li>
<li><a href="#documentation">Documentation</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="row">
<div class="span5">
<h1>jbPivot <small>by</small> <a href='https://www.uniclau.com'><img stype:"float: right" src='img/logo.png'></a></h1>
<p>A simple jQuery pivot table widget</p>
<p><a class="btn btn-primary btn-large" href="https://github.com/uniclau/jbPivot">Download from GitHub »</a></p>
<a href="https://twitter.com/jbPivot" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @jbPivot</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<div class="span7">
<h3>Demo</h3>
<p> You can drag and drop the titles and expand/collapse the groups </p>
<div id='pivot1' style="margin: 20px"></div>
</div>
</div>
<!-- Example row of columns -->
<div class="row">
<div class="span12">
<h3>Usage Example</h3>
<code class="prettyprint linenums">
<!doctype html><br/><html><br/> <head> <br/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script><br/> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script><br/> <script src="http://www.jbPivot.org/js/vendor/jbpivot.min.js"></script><br/> <link rel="stylesheet" href="http://www.jbPivot.org/css/jbpivot.min.css"><br/> </head><br/> <body><br/> <div id="pivot1"></div><br/><br/> <script type="text/javascript"><br/> $(document).ready(function(){<br/> $("#pivot1").jbPivot({<br/> fields: {<br/> Gender : { field: 'gender', sort: "asc", showAll:true, agregateType: "distinct"},<br/> Age : { field: 'age', sort: "asc", age: "Age", showAll:true, agregateType: "distinct"},<br/> Eyes: { field: 'eyes', sort: "asc", showAll:false, agregateType: "distinct"},<br/> Count: { agregateType: "count", groupType:"none" },<br/> },<br/> xfields: [ "Gender","Eyes" ],<br/> yfields: [ "Age" ],<br/> zfields: [ "Count"],<br/> data: [<br/> {id:"1",gender:"male", age:"30-40",eyes:"green", v:"8"},<br/> {id:"2",gender:"male", age:"20-30",eyes:"brown", v:"7"},<br/> {id:"3",gender:"male", age:"30-40",eyes:"brown", v:"2"},<br/> {id:"4",gender:"female", age:"40-50",eyes:"brown", v:"5"},<br/> {id:"5",gender:"male", age:"30-40",eyes:"green", v:"7"},<br/> {id:"6",gender:"male", age:"30-40",eyes:"green", v:"9"},<br/> {id:"7",gender:"female", age:"40-50",eyes:"green", v:"8"},<br/> {id:"8",gender:"female", age:"50-60",eyes:"brown", v:"6"},<br/> {id:"9",gender:"male", age:"30-40",eyes:"brown", v:"9"},<br/> {id:"10",gender:"male", age:"40-50",eyes:"blue", v:"7"},<br/> {id:"11",gender:"male", age:"30-40",eyes:"blue", v:"4"},<br/> {id:"12",gender:"male", age:"20-30",eyes:"black", v:"2"}<br/> ]<br/> });<br/> });<br/> </script><br/> </body><br/></html>
</code>
<p><a class="btn" href="http://jsfiddle.net/jbaylina/yALMx/1/">Test it yourself »</a></p>
</div>
</div>
<div class="row" id="license">
<div class="span12">
<h3>License</h3>
<p><a href='http://www.uniclau.com'>Copyright 2013 Uniclau S.L. (www.uniclau.com)</a>
<a href='http://www.gnu.org/licenses/gpl.html'><img src='http://www.gnu.org/graphics/gplv3-88x31.png'></a>
</p>
<p>If you need a comercial license, please contact us</p>
</div>
</div>
<div class="row" id="documentation">
<div class="span12">
<h3>Documentation</h3>
<p>Please see the <a href='https://github.com/uniclau/jbPivot/blob/master/README.md'>README</a> file. </p>
</div>
</div>
<div class="row" id="contact">
<div class="span12">
<h3>Contact</h3>
<p>You can find us at info@uniclau.com </p>
</div>
</div>
<hr>
<footer>
<p>© 2013 <a href='https://www.uniclau.com'>Uniclau S.L. </a></p>
</footer>
</div> <!-- /container -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
<script src="js/vendor/jbpivot.min.js"></script>
<script src="js/main.js"></script>
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>