Browse Source

Showing only the AND operator result

apprausch 5 years ago
parent
commit
e83afca845
3 changed files with 7 additions and 11 deletions
  1. 2 6
      client/certaintrust/certainTrustTViz.js
  2. 1 1
      client/controllers/apps.js
  3. 4 4
      client/views/app.html

+ 2 - 6
client/certaintrust/certainTrustTViz.js

@@ -47,12 +47,8 @@ var CertainTrustTViz = function(data, config) {
 	this.ID = config.id;
 	this.config = config;
 
-	var element = document.getElementById(this.ID);
-	if(!element) {
-		element = document.createElement('div');
-		element.setAttribute('id', this.ID);
-	}
-	
+	var element = document.createElement('div');
+	element.setAttribute('id', this.ID);
 	var dom = this.certainTrusts[0]._insertElement(config, element);
 
 	this.update();

+ 1 - 1
client/controllers/apps.js

@@ -403,7 +403,7 @@ myApp.controller('AppsController', ['$scope', '$http', '$location', '$routeParam
 				$scope.$apply();
 			}
 		});
-		new CertainTrustTViz([ct1,ct2], { id: "tvizAverage", middle: "AVERAGE" });
+		//new CertainTrustTViz([ct1,ct2], { id: "tvizAverage", middle: "AVERAGE" });
 
 	}
 

+ 4 - 4
client/views/app.html

@@ -39,14 +39,14 @@
 </div>
 
 <div class="row">
-    <div class="col-md-6">
-        <h1>And operator</h1>
+    <div class="col-md-12">
+        <!-- <h1>And operator</h1> -->
         <div id="tvizAnd" class="text-center"></div>
     </div>
-    <div class="col-md-6">
+    <!-- <div class="col-md-6">
         <h1>Average operator</h1>
         <div id="tvizAverage" class="text-center"></div>
-    </div>
+    </div> -->
 </div>
 
 <div id="reputationHTI" ng-show="reputationHTI">