Last active
August 9, 2022 08:59
-
-
Save asharma327/2ecd8b5530aa25adfea205fcf2d2fc55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://www.apispreadsheets.com/import.js"></script> | |
<script type="text/javascript"> | |
function importComplete(success, data) { | |
console.log(success) | |
if (success){ | |
console.log(data); | |
} | |
} | |
function matchComplete(matchRequired, matchSuccess){ | |
if (matchRequired){ | |
// if first uploaded file has finished matching, do something | |
if(matchSuccess[0]){ | |
// close the importer if you wish | |
// importer.closeImporter() | |
} | |
} | |
} | |
let importer = new APISpreadsheetsImporter("3602d167d52a5d6914e6649a4158f672", importComplete, matchComplete); | |
</script> | |
</head> | |
<body> | |
<button class="api-spreadsheets-import-button" onclick="importer.importFiles();">Import Excel and CSV Files</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment