From 6bdc01b309c6bfc1039cc01a944eec80c29bea82 Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Mon, 15 Feb 2016 16:13:16 +0800 Subject: [PATCH] Added words column --- public/index.html | 1 + public/js/main.js | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index db41bdc..f31b0db 100644 --- a/public/index.html +++ b/public/index.html @@ -457,6 +457,7 @@ lying internet CPC Search Source + Words diff --git a/public/js/main.js b/public/js/main.js index 4701e75..ee5653d 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -359,6 +359,7 @@ var KWS = function(){ id: this.table.rows()[0].length+i, keyword: cleanKw, length: cleanKw.length, + words: cleanKw.trim().split(/ +/).length, volume: null, cpc: null, search: search, @@ -432,11 +433,12 @@ var KWS = function(){ addReq = store.add({ keyword: cleanKw, length: cleanKw.length, + words: cleanKw.trim().split(/ +/).length, search: search, ip: this.myIp, url: url, domain: self.extractDomain(url), - time: (new Date()).toUTCString() + time: (new Date()).toUTCString(), }); addReq.onsuccess = addNext; @@ -817,7 +819,14 @@ var KWS = function(){ "responsivePriority": 2, "targets": 6, "visible": false, - }], + }, { + "name": "words", + "data": "words", + "targets": 7, + "visible": false, + "type": "num" + }, + ], order: [[ 0, 'desc' ]], // colReorder: {}, stateSave: true,