From 9604849dbba416769eff408186335f3e499632c7 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 16 Apr 2019 00:02:09 -0500 Subject: [PATCH] work on making basic board --- onionr/static-data/www/board/board.js | 18 ++---------------- onionr/static-data/www/board/index.html | 8 ++------ onionr/static-data/www/private/index.html | 2 +- 3 files changed, 5 insertions(+), 23 deletions(-) diff --git a/onionr/static-data/www/board/board.js b/onionr/static-data/www/board/board.js index 7f513357..a1ec5dc2 100644 --- a/onionr/static-data/www/board/board.js +++ b/onionr/static-data/www/board/board.js @@ -1,11 +1,7 @@ -webpassword = '' requested = [] -document.getElementById('webpassWindow').style.display = 'block'; - var windowHeight = window.innerHeight; -document.getElementById('webpassWindow').style.height = windowHeight + "px"; - +webpassword = webpass function httpGet(theUrl) { var xmlHttp = new XMLHttpRequest() xmlHttp.open( "GET", theUrl, false ) // false for synchronous request @@ -35,23 +31,13 @@ function getBlocks(){ var blockList = feedText.split(',') for (i = 0; i < blockList.length; i++){ if (! requested.includes(blockList[i])){ - bl = httpGet('/gethtmlsafeblockdata/' + blockList[i]) + bl = httpGet('/getblockdata/' + blockList[i]) appendMessages(bl) requested.push(blockList[i]) } } } -document.getElementById('registerPassword').onclick = function(){ - webpassword = document.getElementById('webpassword').value - if (httpGet('/ping') === 'pong!'){ - document.getElementById('webpassWindow').style.display = 'none' - getBlocks() - } - else{ - alert('Sorry, but that password appears invalid.') - } -} document.getElementById('refreshFeed').onclick = function(){ getBlocks() diff --git a/onionr/static-data/www/board/index.html b/onionr/static-data/www/board/index.html index 7486a910..054f6a15 100644 --- a/onionr/static-data/www/board/index.html +++ b/onionr/static-data/www/board/index.html @@ -9,14 +9,10 @@ - +
None Yet :)
+ \ No newline at end of file diff --git a/onionr/static-data/www/private/index.html b/onionr/static-data/www/private/index.html index b1e50e12..60ce3804 100644 --- a/onionr/static-data/www/private/index.html +++ b/onionr/static-data/www/private/index.html @@ -26,7 +26,7 @@

Onionr Services


-

Mail - Friend Manager +

Mail - Friend Manager - Boards


Stats

🕰️ Uptime: