From 098ebf53781a9343199e3a1017d08ba03cbc9f26 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Sun, 12 Sep 2021 05:16:01 -0400 Subject: [PATCH] fix demo links --- Makefile | 2 +- index.html | 115 +++++++++++++++++++++++++++-------------------------- 2 files changed, 60 insertions(+), 57 deletions(-) diff --git a/Makefile b/Makefile index 40570fc..24db46a 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ index: rm -rf js-xlsx git clone --depth=1 https://github.com/SheetJS/js-xlsx - cd js-xlsx; grip --title "SheetJS Community Edition" --export README.md; cd .. + cd js-xlsx; sed -i .bak 's/](d/](https:\/\/github.com\/SheetJS\/SheetJS\/tree\/master\/d/g' README.md; grip --title "SheetJS Community Edition" --export README.md; cd .. mv js-xlsx/README.html index.html mv js-xlsx/*.png . git add index.html *.png diff --git a/index.html b/index.html index 77a50fe..9d38ddc 100644 --- a/index.html +++ b/index.html @@ -73,7 +73,7 @@

-SheetJS +SheetJS

Parser and writer for various spreadsheet formats. Pure-JS cleanroom implementation from official specifications, related documents, and test files. @@ -81,11 +81,15 @@ Emphasis on parsing and writing robustness, cross-format feature compatibility with a unified JS representation, and ES3/ES5 browser compatibility back to IE6.

This is the community version. We also offer a pro version with performance enhancements, additional features like styling, and dedicated support.

-

Pro Version

-

Commercial Support

-

Rendered Documentation

-

In-Browser Demos

-

Source Code

+

Community Translations of this README:

+ +

Pro Version

+

Commercial Support

+

Rendered Documentation

+

In-Browser Demos

+

Source Code

Issues and Bug Reports

File format support for known spreadsheet data formats:

@@ -93,10 +97,10 @@ enhancements, additional features like styling, and dedicated support.

circo graph of format support

graph legend

-

Browser Test

+

Browser Test

Build Status

Build Status -Coverage Status +Coverage Status Dependencies Status npm Downloads Analytics

@@ -301,7 +305,7 @@ enhancements, additional features like styling, and dedicated support.

CDNjs -http://cdnjs.com/libraries/xlsx +https://cdnjs.com/libraries/xlsx packd @@ -314,49 +318,49 @@ enhancements, additional features like styling, and dedicated support.

With npm:

$ npm install xlsx
-

With bower:

+

With bower:

$ bower install js-xlsx

JS Ecosystem Demos

-

The demos directory includes sample projects for:

+

The demos directory includes sample projects for:

Frameworks and APIs

Bundlers and Tooling

Platforms and Integrations

-

Other examples are included in the showcase.

+

Other examples are included in the showcase.

Optional Modules

@@ -380,7 +384,7 @@ be configured to remove support with resolve.alias:

ECMAScript 5 Compatibility

Since the library uses functions like Array#forEach, older browsers require -shims to provide missing functions.

+shims to provide missing functions.

To use the shim, add the shim before the script tag that loads xlsx.js:

<!-- add the shim first -->
 <script type="text/javascript" src="shim.min.js"></script>
@@ -440,7 +444,7 @@ The specified path should be an absolute path:

/* Read test.xlsx from the Documents folder */ var workbook = XLSX.readFile(Folder.myDocuments + '/' + 'test.xlsx'); /* DO SOMETHING WITH workbook HERE */
-

The extendscript demo includes a more complex example.

+

The extendscript demo includes a more complex example.

Browser read TABLE element from page (click to show) @@ -468,7 +472,7 @@ element and iterate through the child nodes.

Browser download file (ajax) (click to show)

Note: for a more complete example that works in older browsers, check the demo -at http://oss.sheetjs.com/sheetjs/ajax.html. The xhr demo +at http://oss.sheetjs.com/sheetjs/ajax.html. The xhr demo includes more examples with XMLHttpRequest and fetch.

var url = "http://oss.sheetjs.com/test_files/formula_stress_test.xlsx";
 
@@ -519,15 +523,15 @@ as in the drag-and-drop example:

reader.readAsArrayBuffer(f); } input_dom_element.addEventListener('change', handleFile, false);
-

The oldie demo shows an IE-compatible fallback scenario.

+

The oldie demo shows an IE-compatible fallback scenario.

More specialized cases, including mobile app file processing, are covered in the -included demos

+included demos

Parsing Examples

Note that older versions of IE do not support HTML5 File API, so the Base64 mode is used for testing.

@@ -642,7 +646,7 @@ error if the workbook is empty.

Parsing and Writing Examples
Browser add TABLE element to page (click to show) @@ -698,7 +702,7 @@ any DOM element.

Browser upload file (ajax) (click to show) -

A complete example using XHR is included in the XHR demo, along +

A complete example using XHR is included in the XHR demo, along with examples for fetch and wrapper libraries. This example assumes the server can handle Base64-encoded files (see the demo for a basic nodejs server):

/* in this example, send a base64 string to the server */
@@ -753,9 +757,9 @@ to generate local files, suitable for environments where ActiveX is unavailable:
 	append: false,
 	dataType: 'base64'
 });
-

The oldie demo shows an IE-compatible fallback scenario.

+

The oldie demo shows an IE-compatible fallback scenario.

-

The included demos cover mobile apps and other special deployments.

+

The included demos cover mobile apps and other special deployments.

Writing Examples