浏览代码

Updated examples for better consistency

dosse91 6 年之前
父节点
当前提交
19c19ac088
共有 3 个文件被更改,包括 17 次插入9 次删除
  1. 7 3
      example-multipleServers-full.html
  2. 7 3
      example-singleServer-full.html
  3. 3 3
      example-singleServer-gauges.html

+ 7 - 3
example-multipleServers-full.html

@@ -59,7 +59,7 @@ function initServers(){
 
 
 var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040";
 var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040";
 var dlColor="#6060AA",
 var dlColor="#6060AA",
-	ulColor="#309030";
+	ulColor="#616161";
 var progColor=meterBk;
 var progColor=meterBk;
 
 
 //CODE FOR GAUGES
 //CODE FOR GAUGES
@@ -384,12 +384,12 @@ function initUI(){
 		<div class="testGroup">
 		<div class="testGroup">
             <div class="testArea2">
             <div class="testArea2">
 				<div class="testName">Ping</div>
 				<div class="testName">Ping</div>
-				<div id="pingText" class="meterText"></div>
+				<div id="pingText" class="meterText" style="color:#AA6060"></div>
 				<div class="unit">ms</div>
 				<div class="unit">ms</div>
 			</div>
 			</div>
 			<div class="testArea2">
 			<div class="testArea2">
 				<div class="testName">Jitter</div>
 				<div class="testName">Jitter</div>
-				<div id="jitText" class="meterText"></div>
+				<div id="jitText" class="meterText" style="color:#AA6060"></div>
 				<div class="unit">ms</div>
 				<div class="unit">ms</div>
 			</div>
 			</div>
 		</div>
 		</div>
@@ -445,6 +445,10 @@ function initUI(){
         </ul>
         </ul>
         No personal information is disclosed to third parties.
         No personal information is disclosed to third parties.
     </p>
     </p>
+    <h4>Your consent</h4>
+    <p>
+        By starting the test, you consent to the terms of this privacy policy.
+    </p>
     <h4>Data removal</h4>
     <h4>Data removal</h4>
     <p>
     <p>
         If you want to have your information deleted, you need to provide either the ID of the test or your IP address. This is the only way to identify your data, without this information we won't be able to comply with your request.<br/><br/>
         If you want to have your information deleted, you need to provide either the ID of the test or your IP address. This is the only way to identify your data, without this information we won't be able to comply with your request.<br/><br/>

+ 7 - 3
example-singleServer-full.html

@@ -13,7 +13,7 @@ s.setParameter("telemetry_level","basic"); //enable telemetry
 
 
 var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040";
 var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040";
 var dlColor="#6060AA",
 var dlColor="#6060AA",
-	ulColor="#309030";
+	ulColor="#616161";
 var progColor=meterBk;
 var progColor=meterBk;
 
 
 //CODE FOR GAUGES
 //CODE FOR GAUGES
@@ -277,12 +277,12 @@ function initUI(){
 		<div class="testGroup">
 		<div class="testGroup">
 			<div class="testArea2">
 			<div class="testArea2">
 				<div class="testName">Ping</div>
 				<div class="testName">Ping</div>
-				<div id="pingText" class="meterText"></div>
+				<div id="pingText" class="meterText" style="color:#AA6060"></div>
 				<div class="unit">ms</div>
 				<div class="unit">ms</div>
 			</div>
 			</div>
 			<div class="testArea2">
 			<div class="testArea2">
 				<div class="testName">Jitter</div>
 				<div class="testName">Jitter</div>
-				<div id="jitText" class="meterText"></div>
+				<div id="jitText" class="meterText" style="color:#AA6060"></div>
 				<div class="unit">ms</div>
 				<div class="unit">ms</div>
 			</div>
 			</div>
 		</div>
 		</div>
@@ -338,6 +338,10 @@ function initUI(){
         </ul>
         </ul>
         No personal information is disclosed to third parties.
         No personal information is disclosed to third parties.
     </p>
     </p>
+    <h4>Your consent</h4>
+    <p>
+        By starting the test, you consent to the terms of this privacy policy.
+    </p>
     <h4>Data removal</h4>
     <h4>Data removal</h4>
     <p>
     <p>
         If you want to have your information deleted, you need to provide either the ID of the test or your IP address. This is the only way to identify your data, without this information we won't be able to comply with your request.<br/><br/>
         If you want to have your information deleted, you need to provide either the ID of the test or your IP address. This is the only way to identify your data, without this information we won't be able to comply with your request.<br/><br/>

+ 3 - 3
example-singleServer-gauges.html

@@ -12,7 +12,7 @@ var s=new Speedtest(); //create speedtest object
 
 
 var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040";
 var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040";
 var dlColor="#6060AA",
 var dlColor="#6060AA",
-	ulColor="#309030";
+	ulColor="#616161";
 var progColor=meterBk;
 var progColor=meterBk;
 
 
 //CODE FOR GAUGES
 //CODE FOR GAUGES
@@ -228,12 +228,12 @@ function initUI(){
         <div class="testGroup">
         <div class="testGroup">
 			<div class="testArea2">
 			<div class="testArea2">
 				<div class="testName">Ping</div>
 				<div class="testName">Ping</div>
-				<div id="pingText" class="meterText"></div>
+				<div id="pingText" class="meterText" style="color:#AA6060"></div>
 				<div class="unit">ms</div>
 				<div class="unit">ms</div>
 			</div>
 			</div>
 			<div class="testArea2">
 			<div class="testArea2">
 				<div class="testName">Jitter</div>
 				<div class="testName">Jitter</div>
-				<div id="jitText" class="meterText"></div>
+				<div id="jitText" class="meterText" style="color:#AA6060"></div>
 				<div class="unit">ms</div>
 				<div class="unit">ms</div>
 			</div>
 			</div>
 		</div>
 		</div>