From 90d3d5b7a447fa4be68c0b0a09aad7f84980eac2 Mon Sep 17 00:00:00 2001 From: ckhordiasma Date: Sat, 26 Sep 2020 02:01:09 -0400 Subject: [PATCH 1/9] added visitor tracker to ea-pods-team site see https://github.com/ckhordiasma/log-bullet-visitors for details --- js/main.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/js/main.js b/js/main.js index 452f225..31dc85f 100644 --- a/js/main.js +++ b/js/main.js @@ -399,3 +399,21 @@ const fontReady = new Promise(function(resolve,rej){ fontReady.then( ()=>{ ReactDOM.render( , document.getElementById('stuff')); }); + +// code for incrementing visitor count +xh = new XMLHttpRequest(); +xh.onreadystatechange = () => { + if(xh.readyState === XMLHttpRequest.DONE) { + var status = xh.status; + if (status === 0 || (status >= 200 && status < 400)) { + // The request has been completed successfully + const count = JSON.parse(xh.response).Count; + console.log("The bullets site(s) have been visited " + count + " times."); + } else { + console.log("Visitor count increment task failed successfully"); + } + } +} +xh.open("POST", "https://g5z50elklh.execute-api.us-east-2.amazonaws.com/default/LogVisitors",true); +xh.send(); + From 5dd925b3b60a19d9689b238bb5c7cecba34b3eb3 Mon Sep 17 00:00:00 2001 From: ckhordiasma Date: Sat, 26 Sep 2020 02:04:04 -0400 Subject: [PATCH 2/9] add deprecation notice added short notice directing users to go to af-vcd instead. --- index.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 71a646d..e4ed196 100644 --- a/index.html +++ b/index.html @@ -61,10 +61,8 @@ -->