-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (164 loc) · 8.79 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="OXML.JS implementation examples to export or create open xml documents">
<meta name="keywords" content="Export grid, export documents, xlsx, docx, xlsx creator js, oxml document creator, oxml exporter">
<meta name="author" content="Jitesh Kumawat">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>OXML.JS implementation examples to export or create open xml documents</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
crossorigin="anonymous">
<link href="styles/style.css" rel="stylesheet" type="text/css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
crossorigin="anonymous"></script>
<script src="scripts/fileSaver.min.js"></script>
<script src="scripts/jszip.min.js"></script>
<script src="scripts/oxml.min.js"></script>
<script>
$(document).ready(function () {
if (window.location.hash && window.location.hash === '#read') {
// smooth scroll to the anchor id
$('html,body').scrollTop($(".container").offset().top);
}
});
</script>
</head>
<body>
<div class="parallax">
<div class="scroll-title">SCROLL DOWN</div>
</div>
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top">
<a class="navbar-brand" href="#">OXML.JS</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="./index.html#read" id="installation" role="button">
Setup
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="excelDropdown" role="button" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="fa fa-file-excel-o" aria-hidden="true"></i>
Excel
</a>
<div class="dropdown-menu" aria-labelledby="excelDropdown">
<a class="dropdown-item" href="./excel/basic.html#read">Basic Usage</a>
<a class="dropdown-item" href="./excel/tables.html#read">Tables</a>
<a class="dropdown-item" href="./excel/styling.html#read">Styling</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle disabled" href="#" id="documentDropdown" role="button" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="fa fa-file-word-o" aria-hidden="true"></i>
Document
</a>
<div class="dropdown-menu" aria-labelledby="documentDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
</div>
</nav>
<nav aria-label="breadcrumb" class="bg-dark">
<ol class="breadcrumb bg-dark">
<li class="breadcrumb-item active breadcrumb-link" aria-current="page" style="color: #ffffff">
<a href="./index.html#read">Home</a>
</li>
</ol>
</nav>
<!-- Image and text -->
<div class="jumbotron">
<h1>OXML.JS Examples</h1>
<hr/>
<p>Export / Create OXML documents from Javascript</p>
<p>
<a class="btn btn-primary btn-lg" href="https://jiteshkumawat.github.io/oxml.js/" target="_blank" role="button">
<i class="fa fa-github"></i> Git Hub</a>
</p>
</div>
<div class="row justify-content-md-center">
<div class="col">
OXML.JS is a small javascript library, which can let you download / export data in open xml documents like docx and xlsx
which can be opened in any desktop or online document processing application such as Microsoft Excel, Google
Sheets, etc. User can export data from charts or grid without making any server calls and thus saving processing
units. Open XML documents are just a ziped collection of XML files, thus only library required for oxml.js
to work is JSZip, for compressing data in zip format and downloading.
</div>
</div>
<div style="margin-top: 25px;">
<div class="alert alert-dark">
Distribution Files
</div>
</div>
<div class="row justify-content-md-center">
<div class="col">
OXML.js comes with following distribution files as per the requirement of user.
<ul>
<li>
<b>oxml.min.js (~40KB): </b> This is minified file for using document and excel exports. This is complete minified
package of oxml.js library. This version of file is not optimal for development, but it is a good
utility for production or usage. Right now only excel is supported.
</li>
<li>
<b>oxml.js (~90KB): </b> This is uncompressed file for using document and excel exports. This is complete package
of oxml.js library and a pick for development usage if user want to modify some of the functionality.
Right now only excel is supported.
</li>
</ul>
</div>
</div>
<div style="margin-top: 25px;">
<div class="alert alert-dark">
Installation / Setup
</div>
</div>
<div class="row justify-content-md-center">
<div class="col">
Download and include oxml.js / oxml.min.js file from github repository. Only dependency for this library is JSZip, include
JSZip as well. For better performance include Filesaver. It supports download functionality in most of the
browsers.
</div>
</div>
<div style="margin-top: 25px;">
<div class="alert alert-light">
<pre>
<script src="../scripts/fileSaver.min.js"></script>
<script src="../scripts/jszip.min.js"></script>
<script src="../scripts/oxml.min.js"></script> </pre>
</div>
</div>
<nav aria-label="footer-navigation">
<ul class="pagination justify-content-center">
<li class="page-item active">
<a class="page-link" href="./index.html#read" tabindex="-1">Home</a>
</li>
<li class="page-item">
<a class="page-link" href="./excel/basic.html#read">OXML - Excel</a>
</li>
<li class="page-item disabled">
<a class="page-link" href="#">OXML - Document</a>
</li>
<li class="page-item">
<a class="page-link" href="./excel/basic.html#read">Next</a>
</li>
</ul>
</nav>
</div>
</body>
</html>