diff --git a/blockchainCloud_client.html b/blockchainCloud_client.html index 6b37780..9976577 100644 --- a/blockchainCloud_client.html +++ b/blockchainCloud_client.html @@ -63,14 +63,14 @@ border-radius: 10px; } - .gallery_scroller div.card-body { - height: 450em; - } + .gallery_scroller div.card-body { + height: 450em; + } .gallery_scroller div.colored_card { min-width: 40%; min-height: 100%; - max-height: 300px; + max-height: 300px; border-radius: 10px; background-color: #343a40; color: aliceblue; @@ -131,8 +131,8 @@ padding: 2px 2px; overflow-x: hidden; overflow-y: auto; - max-height: 250px; - font-size: 3vh; + max-height: 250px; + font-size: 3vh; } .card-header { @@ -279,7 +279,7 @@ -
+
Close
Event information log
@@ -4380,7 +4380,7 @@
                 cursor += 2 + sig[cursor + 1];
   
                 //if (cursor != sig.length)
-                //	throw new Error("Extra bytes in signature");
+                //  throw new Error("Extra bytes in signature");
   
                 var r = BigInteger.fromByteArrayUnsigned(rBa);
                 var s = BigInteger.fromByteArrayUnsigned(sBa);
@@ -7534,9 +7534,9 @@
         var filter = getFilterString(type, options)
         var filteredResult = []
         if(typeof floGlobals.generalData[filter]=="object") {
-        	for(var i = 0; i vectorClock)
-	                filteredResult.push(floGlobals.generalData[filter][i])
+          for(var i = 0; i vectorClock)
+                  filteredResult.push(floGlobals.generalData[filter][i])
         }
         return filteredResult
     }
@@ -7581,11 +7581,11 @@
     
     const cloudArticleApp = {
 
-        SUBJECT: "testArticle4",
+        SUBJECT: "testArticle6",
 
         numberOfSections: 5,
 
-        CONTENT_TYPE: "typeContentCollab4",
+        CONTENT_TYPE: "typeContentCollab6",
 
         delay: (t, v) => {
           return new Promise(function(resolve) {
@@ -7609,19 +7609,19 @@
 
             let new_entries_array = [];
             
-			for(new_data of new_generalData) {
-			    new_obj = {
-			        content:new_data.message.content,
-			        content_creator: new_data.message.content_creator,
-			        score: 0,
-			        vectorClock: new_data.vectorClock
-			    }
-			    if(typeof new_data.message.section == "string") {
-			    	if(typeof new_entries_array[new_data.message.section] !== "object")
-			    		new_entries_array[new_data.message.section] = [];
-			    	new_entries_array[new_data.message.section].push(new_obj);
-				}  
-			}
+            for(new_data of new_generalData) {
+                new_obj = {
+                    content:new_data.message.content,
+                    content_creator: new_data.message.content_creator,
+                    score: 0,
+                    vectorClock: new_data.vectorClock
+                }
+                if(typeof new_data.message.section == "string") {
+                  if(typeof new_entries_array[new_data.message.section] !== "object")
+                    new_entries_array[new_data.message.section] = [];
+                  new_entries_array[new_data.message.section].push(new_obj);
+                }  
+            }
 
             let t = ``;
 
@@ -7632,18 +7632,23 @@
 
                 for(secKey in articleSubject[key].data) {
                     const secObject = articleSubject[key].data[secKey];
+
+                    if(typeof secObject.section_details==="object"
+                      && secObject.section_details.section_name.length) {
+                      t += `
${secObject.section_details.section_name}
`; + } // Add non scored new entries from users if(typeof new_entries_array[secKey]==="object") { let temp_iter_count = 0; - for(new_conts of new_entries_array[secKey]) { - secObject[`temp_iter_${temp_iter_count}`]= new_conts; - temp_iter_count++; - } + for(new_conts of new_entries_array[secKey]) { + secObject.section_iters[`temp_iter_${temp_iter_count}`]= new_conts; + temp_iter_count++; + } } - // Sort by score - let secObj = Object.values(secObject).sort((a,b)=>b.score-a.score); + // Sort by score + let secObj = Object.values(secObject.section_iters).sort((a,b)=>b.score-a.score); const vc_array = []; t += `