diff --git a/package.json b/package.json index ca1922d..86c256d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "keywordshitter2", "version": "0.0.5", "description": "The second generation of keyword shitter. Bigger, better, and more pungent than other products.", - "main": "server.js", + "main": "public/js/main.js", "repository": "https://github.com/wassname/keywordshitter2", "scripts": { "test": "public/test.html", diff --git a/public/index.html b/public/index.html index 7383976..f3ab4c6 100644 --- a/public/index.html +++ b/public/index.html @@ -64,10 +64,6 @@ lying internet

- Load cache - Export cache - - Delete cache
diff --git a/public/js/main.js b/public/js/main.js index fade330..3707496 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -768,16 +768,32 @@ var KWS = function(){ extend: 'csvHtml5', fieldBoundary: "", text: 'Copy keywords', - // 'customize': function(data,options){return data.split('\n').join(',');}, + // 'customize': function(data,options){ + // console.log(data,options);return data.split('\n').join(','); + // }, header: false, exportOptions: { stripNewlines: true, stripHtml: true, decodeEntities: true, - columns: 'keyword', - // format:{ - // body: function(html,i){console.log(html);return html} - // } + columns: 1, + // format:{ + // body: function(html,i){ + // console.log(html);return html + // } + // } + } + }, + { + extend: 'csvHtml5', + fieldBoundary: "", + text: 'Copy visible columns', + header: false, + exportOptions: { + columns: ':visible', + stripNewlines: true, + stripHtml: true, + decodeEntities: true, } }, ]