A Pen by Andy Andreas Hulstkamp on CodePen.
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
/** | |
* Created by andy hulstkamp | |
*/ | |
var webpage = require("webpage"), | |
fs = require("fs"); | |
var debug = false, | |
pageIndex = 0, | |
allLinks = [], |
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
(function (window, document, undefined) { | |
'use strict'; | |
window.FS = window.FS || (function () { | |
//use fallback if fileSystem is prefixed in specifc UA | |
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; | |
var saveTextFile = function (fileName, value, saveCompleteCallback) { |