From 60382bdefae811e02943dbe9835b779c59c32fee Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Sun, 19 Jan 2020 20:54:53 +0530 Subject: [PATCH 1/6] Updated Readme --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ca0394..f640504 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # p2p-content-collaboration -A p2p shared content collaboration platform using FLO Blockchain +A p2p shared content collaboration platform using FLO Blockchain. + +To use the application just download the HTML file and run it in any browser. + +To add/edit contents click in the respective division and add/edit your content. When you focus out +of the division the content is added into the system. Content can only be added or modified. + +Any user running the file gets to edit a shared content. Hence, this application can be used for multiple purposes +like create shared content, write book by multiple authors or reach a consensus through collaborative discussion. + +Please fork the project and contribute. From 2fcc91850bf1ba53494b04ddb6c3d32c4510b9d6 Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Mon, 20 Jan 2020 19:19:36 +0530 Subject: [PATCH 2/6] added export as file functionality --- blockchainCloud_client.html | 113 +++++++++++++++++++++++++++++------- 1 file changed, 93 insertions(+), 20 deletions(-) diff --git a/blockchainCloud_client.html b/blockchainCloud_client.html index ab436ca..c3219c4 100644 --- a/blockchainCloud_client.html +++ b/blockchainCloud_client.html @@ -596,7 +596,14 @@ - - + function buttonVisibility(mode, parent) { + let button = parent.children[2]; + if (parent.firstElementChild.innerText == '') { + button.classList.add('hide') + return; + } + if (mode === 'show' && button.classList.contains('hide')) + button.classList.remove('hide') + if (mode === 'hide' && !button.classList.contains('hide')) + button.classList.add('hide') + } + - - - - + + + - - - - + + + + + //addStartUpFunction('Sample', Promised Function) + //setAppObjectStores({sampleObs1:{}, sampleObs2:{options{autoIncrement:true, keyPath:'SampleKey'}, Indexes:{sampleIndex:{}}}}) + showLoader(); + showMessage("Starting the app! Please Wait!") + floDapps.launchStartUp().then(result => { + console.log(result) + showMessage(result) + showMessage(`Welcome ${myFloID}`) + buidAdminUI(); + cloudArticleApp.retrieveLatestContent(); + }).catch(error => console.error(error)) + } + - + - + + \ No newline at end of file