Copy the entire /javascript-network-speed-tester directory on your web server. The directory is included in the downloaded archive.
Include the /javascript-network-speed-tester/bins/wl-ng-network-speed-tester.js in your page. The script has bootstrap.css and AngularJS as dependencies, so they should be included also.
The paths are relative to your current HTML page, so please pay attention to that.
<link rel="stylesheet" href="/javascript-network-speed-tester/bins/lib/bootstrap/css/bootstrap.min.css"/> <script type="text/javascript" src="/javascript-network-speed-tester/bins/lib/angular/angular.min.js"></script> <script type="text/javascript" src="/javascript-network-speed-tester/bins/wl-ng-network-speed-tester.js"></script>
UI is shown by adding a div as below:
<div ng-app="wl-ng-network-speed-tester" wl-ng-network-speed-tester></div>
The module needs to know where its files are located. Add the following code at the end of your HTML page but replace the path to your actual path relative to the HTML page:
<script type="text/javascript"> angular.module('wl-ng-network-speed-tester').value('bins', 'javascript-network-speed-tester/bins'); </script>
<html> <head> <link rel="stylesheet" href="javascript-network-speed-tester/bins/lib/bootstrap/css/bootstrap.min.css"/> <script type="text/javascript" src="javascript-network-speed-tester/bins/lib/angular/angular.min.js"></script> <script type="text/javascript" src="javascript-network-speed-tester/bins/wl-ng-network-speed-tester.js"></script> </head> <body> <div ng-app="wl-ng-network-speed-tester" wl-ng-network-speed-tester></div> <script type="text/javascript"> angular.module('wl-ng-network-speed-tester').value('bins', 'javascript-network-speed-tester/bins'); </script> </body> </html>
WiseLoop JavaScript Network Speed Tester is an AngularJS module designed to offer a network bandwidth check against your internet server. Many server types are supported such as Apache HTTP, IIS, Node.js, nginx, Tomcat, Oracle HTTP, jetty and based on the download speed, it can also offer an estimation of internet cost that the user should pay for.